{
  "openapi": "3.1.0",
  "info": {
    "title": "都市と建築基準法（YamakenBlog） Urban & Building Tools API",
    "version": "0.9.1",
    "description": "建築確認の号区分、設計・監理報酬、木造梁、べた基礎、地鎮祭候補、用途変更に加え、重要事項説明のその他の法令一覧を提供する読み取り専用APIです。最終的な法令判断等を代替しません。"
  },
  "servers": [
    {
      "url": "https://blog-architect.me"
    }
  ],
  "paths": {
    "/wp-json/yamaken/v1/building-category": {
      "get": {
        "operationId": "getBuildingCategoryToolSchema",
        "summary": "入力仕様・MCP情報・根拠資料を取得",
        "responses": {
          "200": {
            "description": "ツール仕様"
          }
        }
      },
      "post": {
        "operationId": "classifyBuildingUnderArticle6",
        "summary": "新築計画の1号・2号・3号区分を簡易判定",
        "description": "増築、改築、移転、大規模修繕・模様替、用途変更には使用できません。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "location",
                  "buildings"
                ],
                "properties": {
                  "location": {
                    "type": "string",
                    "enum": [
                      "inside",
                      "landscape",
                      "governor",
                      "excluded",
                      "outside"
                    ],
                    "description": "計画地の法第6条第1項第3号に関する区域区分"
                  },
                  "buildings": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 5,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "above_ground_floors",
                        "basement_floors",
                        "uses"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 80
                        },
                        "above_ground_floors": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100
                        },
                        "basement_floors": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 20
                        },
                        "uses": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 60,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "use_code",
                              "area_m2"
                            ],
                            "properties": {
                              "use_code": {
                                "type": "string",
                                "pattern": "^08[0-9]{3}$"
                              },
                              "area_m2": {
                                "type": "number",
                                "exclusiveMinimum": 0,
                                "maximum": 10000000
                              },
                              "floor": {
                                "type": "string",
                                "maxLength": 16
                              },
                              "custom_use": {
                                "type": "string",
                                "maxLength": 120
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "判定結果",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClassificationResult"
                }
              }
            }
          },
          "400": {
            "description": "入力エラー"
          },
          "413": {
            "description": "本文が64KBを超過"
          },
          "429": {
            "description": "1分あたりの呼び出し上限を超過"
          }
        }
      }
    },
    "/wp-json/yamaken/v1/design-fee": {
      "get": {
        "operationId": "getDesignFeeToolSchema",
        "summary": "入力仕様・建築物類型・根拠資料を取得",
        "responses": {
          "200": {
            "description": "ツール仕様"
          }
        }
      },
      "post": {
        "operationId": "calculateDesignAndSupervisionFeeUnderNotice8",
        "summary": "設計・工事監理報酬を略算",
        "description": "新築・単一用途・標準業務を対象とし、略算表の範囲外は外挿しません。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "new_construction",
                  "standard_work",
                  "itemized_cost_estimate_difficult",
                  "building_type",
                  "floor_area_m2",
                  "works",
                  "design_scope",
                  "hourly_rate_yen",
                  "direct_indirect_multiplier",
                  "special_expense_yen",
                  "technical_fee_yen",
                  "tax_rate_percent"
                ],
                "properties": {
                  "new_construction": {
                    "type": "boolean",
                    "const": true
                  },
                  "standard_work": {
                    "type": "boolean",
                    "const": true
                  },
                  "itemized_cost_estimate_difficult": {
                    "type": "boolean",
                    "const": true
                  },
                  "building_type": {
                    "type": "string"
                  },
                  "floor_area_m2": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "works": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 6,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "design_general",
                        "design_structure",
                        "design_equipment",
                        "supervision_general",
                        "supervision_structure",
                        "supervision_equipment"
                      ]
                    }
                  },
                  "design_scope": {
                    "type": "string",
                    "enum": [
                      "full",
                      "basic",
                      "detailed"
                    ]
                  },
                  "difficulty_conditions": {
                    "type": "array",
                    "maxItems": 4,
                    "uniqueItems": true,
                    "items": {
                      "type": "string"
                    }
                  },
                  "additional_work_items": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "name",
                        "hours"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 80
                        },
                        "hours": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1000000
                        }
                      }
                    }
                  },
                  "design_change_hours": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "deduction_hours": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "hourly_rate_yen": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 1000000
                  },
                  "direct_indirect_multiplier": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10
                  },
                  "special_expense_yen": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000
                  },
                  "technical_fee_yen": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000
                  },
                  "tax_rate_percent": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "略算結果",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignFeeResult"
                }
              }
            }
          },
          "400": {
            "description": "入力エラーまたは略算対象外"
          },
          "413": {
            "description": "本文が64KBを超過"
          },
          "429": {
            "description": "1分あたりの呼び出し上限を超過"
          }
        }
      }
    },
    "/wp-json/yamaken/v1/wood-beam": {
      "get": {
        "operationId": "getWoodBeamToolSchema",
        "summary": "入力仕様・材料プリセット・根拠資料を取得",
        "responses": {
          "200": {
            "description": "ツール仕様"
          }
        }
      },
      "post": {
        "operationId": "checkWoodBeamSpanAndSection",
        "summary": "木造梁・登り梁・垂木の断面を簡易判定",
        "description": "正算または候補断面の逆算を行います。初期設計の簡易検討であり、最終的な構造設計を代替しません。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "mode",
                  "type",
                  "material",
                  "tributaryWidth"
                ],
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "reverse"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "girder",
                      "cantilever",
                      "sloped",
                      "rafter"
                    ]
                  },
                  "material": {
                    "type": "string",
                    "enum": [
                      "sugi-ungraded",
                      "hinoki-ungraded",
                      "baymatsu-ungraded",
                      "sugi-e70",
                      "hinoki-e90",
                      "karamatsu-e90",
                      "baymatsu-e110",
                      "glulam-sugi-e65-f225",
                      "glulam-hinoki-e95-f270",
                      "glulam-karamatsu-e95-f270",
                      "glulam-redwood-e105-f300",
                      "custom"
                    ]
                  },
                  "width": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 2000,
                    "description": "梁幅mm"
                  },
                  "depth": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3000,
                    "description": "梁せいmm。standardで必須"
                  },
                  "span": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 30000,
                    "description": "柱心間または水平投影スパンmm"
                  },
                  "backSpan": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 30000,
                    "description": "室内側スパンmm"
                  },
                  "overhang": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10000,
                    "description": "跳ね出し・軒出長mm"
                  },
                  "tributaryWidth": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 20000
                  },
                  "pitch": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 50,
                    "description": "屋根勾配（寸）"
                  },
                  "supportLength": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 2000
                  },
                  "supportMethod": {
                    "type": "string",
                    "enum": [
                      "",
                      "full",
                      "custom",
                      "hardware",
                      "unknown"
                    ]
                  },
                  "skipBearing": {
                    "type": "boolean"
                  },
                  "girderLoadMode": {
                    "type": "string",
                    "enum": [
                      "floor",
                      "roof",
                      "floorRoof"
                    ]
                  },
                  "deadLoad": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 50
                  },
                  "liveLoad": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 50
                  },
                  "bathLoad": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 50
                  },
                  "wallLineLoad": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "roofDeadLoad": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 50
                  },
                  "pvLoad": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 50
                  },
                  "snowLoad": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "heavySnow": {
                    "type": "boolean"
                  },
                  "atticStorageLoad": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 50
                  },
                  "exposed": {
                    "type": "boolean"
                  },
                  "overhangLoadFactor": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 20
                  },
                  "pointLoads": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "load",
                        "position"
                      ],
                      "properties": {
                        "load": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1000
                        },
                        "position": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 30000
                        }
                      }
                    }
                  },
                  "customE": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "customFb": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "customFs": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "customFcv": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "density": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 20
                  },
                  "defect_present": {
                    "type": "boolean",
                    "const": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "簡易判定結果",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WoodBeamResult"
                }
              }
            }
          },
          "400": {
            "description": "入力エラーまたは対象外"
          },
          "413": {
            "description": "本文が64KBを超過"
          },
          "429": {
            "description": "呼び出し上限を超過"
          }
        }
      }
    },
    "/wp-json/yamaken/v1/mat-foundation-slab": {
      "get": {
        "operationId": "getMatFoundationSlabToolSchema",
        "summary": "入力仕様・配筋表・根拠資料を取得",
        "responses": {
          "200": {
            "description": "ツール仕様"
          }
        }
      },
      "post": {
        "operationId": "checkMatFoundationSlabPanelAndReinforcement",
        "summary": "木造べた基礎のスラブ区画と配筋を簡易判定",
        "description": "入力配筋で成立する455mm刻みの立上り内法区画を逆算し、住宅用配筋表とも比較します。最終的な基礎設計を代替しません。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "use",
                  "stories",
                  "roof",
                  "wall",
                  "snowMode",
                  "thickness",
                  "concreteStrength",
                  "layers",
                  "shortBar",
                  "shortSpacing",
                  "longBar",
                  "longSpacing",
                  "passThrough"
                ],
                "properties": {
                  "use": {
                    "type": "string",
                    "enum": [
                      "residential",
                      "office",
                      "shop",
                      "restaurant"
                    ]
                  },
                  "stories": {
                    "type": "integer",
                    "enum": [
                      1,
                      2
                    ]
                  },
                  "roof": {
                    "type": "string",
                    "enum": [
                      "metal",
                      "tile"
                    ]
                  },
                  "wall": {
                    "type": "string",
                    "enum": [
                      "metal-siding",
                      "fiber-siding",
                      "mortar"
                    ]
                  },
                  "pvLoad": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 2
                  },
                  "energyLoad": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 5
                  },
                  "otherLoad": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10
                  },
                  "weightOverride": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "light",
                      "heavy"
                    ]
                  },
                  "snowMode": {
                    "type": "string",
                    "enum": [
                      "general-none",
                      "general-input",
                      "heavy"
                    ]
                  },
                  "snowDepth": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 2000
                  },
                  "snowUnit": {
                    "type": "number",
                    "minimum": 20,
                    "maximum": 100
                  },
                  "thickness": {
                    "type": "integer",
                    "enum": [
                      120,
                      150,
                      180,
                      200
                    ]
                  },
                  "concreteStrength": {
                    "type": "integer",
                    "enum": [
                      21,
                      24
                    ]
                  },
                  "layers": {
                    "type": "string",
                    "enum": [
                      "single",
                      "double"
                    ]
                  },
                  "shortBar": {
                    "type": "string",
                    "enum": [
                      "D10",
                      "D13",
                      "D16"
                    ]
                  },
                  "shortSpacing": {
                    "type": "integer",
                    "enum": [
                      100,
                      150,
                      200,
                      250,
                      300
                    ]
                  },
                  "longBar": {
                    "type": "string",
                    "enum": [
                      "D10",
                      "D13",
                      "D16"
                    ]
                  },
                  "longSpacing": {
                    "type": "integer",
                    "enum": [
                      100,
                      150,
                      200,
                      250,
                      300
                    ]
                  },
                  "passThrough": {
                    "type": "string",
                    "enum": [
                      "no",
                      "yes"
                    ]
                  },
                  "panelShort": {
                    "type": "integer",
                    "minimum": 455,
                    "maximum": 7280,
                    "multipleOf": 455
                  },
                  "panelLong": {
                    "type": "integer",
                    "minimum": 455,
                    "maximum": 7280,
                    "multipleOf": 455
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "簡易判定結果",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MatFoundationSlabResult"
                }
              }
            }
          },
          "400": {
            "description": "入力エラーまたは対象外"
          },
          "413": {
            "description": "本文が64KBを超過"
          },
          "429": {
            "description": "呼び出し上限を超過"
          }
        }
      }
    },
    "/wp-json/yamaken/v1/jichinsai-date-weather": {
      "get": {
        "operationId": "getJichinsaiDateWeatherToolSchema",
        "summary": "入力仕様・予報区域一覧・出典を取得",
        "responses": {
          "200": {
            "description": "ツール仕様と予報区域一覧"
          }
        }
      },
      "post": {
        "operationId": "findJichinsaiCandidateDatesAndWeather",
        "summary": "地鎮祭の日取り候補と天気を検索",
        "description": "開催月、希望曜日、六曜、時間帯から上位6候補を返します。予報区域指定時は気象庁とMET Norwayの最新予報を重ねます。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "month"
                ],
                "properties": {
                  "month": {
                    "type": "string",
                    "pattern": "^(202[6-9]|203[0-2])-(0[1-9]|1[0-2])$"
                  },
                  "weekday": {
                    "type": "string",
                    "enum": [
                      "any",
                      "weekend",
                      "weekday"
                    ],
                    "default": "any"
                  },
                  "rokuyo": {
                    "type": "string",
                    "enum": [
                      "taian",
                      "avoid-butsumetsu",
                      "none"
                    ],
                    "default": "taian"
                  },
                  "time": {
                    "type": "string",
                    "enum": [
                      "any",
                      "morning",
                      "afternoon"
                    ],
                    "default": "any"
                  },
                  "office_code": {
                    "type": "string",
                    "pattern": "^\\d{6}$"
                  },
                  "subarea_code": {
                    "type": "string",
                    "pattern": "^\\d{6}$"
                  },
                  "include_weather": {
                    "type": "boolean",
                    "default": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "候補日と予報比較",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JichinsaiDateWeatherResult"
                }
              }
            }
          },
          "400": {
            "description": "入力エラーまたは過去月"
          },
          "413": {
            "description": "本文が64KBを超過"
          },
          "429": {
            "description": "呼び出し上限を超過"
          }
        }
      }
    },
    "/wp-json/yamaken/v1/use-change-checker": {
      "get": {
        "operationId": "getUseChangeCheckerSchema",
        "summary": "用途変更判定の入力仕様・用途コード・出典を取得",
        "responses": {
          "200": {
            "description": "ツール仕様"
          }
        }
      },
      "post": {
        "operationId": "checkChangeOfUseConfirmationAndZoning",
        "summary": "用途変更の確認申請・類似用途・用途地域を簡易判定",
        "description": "1〜5区画の変更前後用途と面積を合算し、200㎡基準、類似用途、用途地域、既存不適格の補助判定を返します。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "area_category",
                  "zone",
                  "above_stories",
                  "basement_stories",
                  "existing_area_m2",
                  "zoning_status",
                  "composition",
                  "input_scope",
                  "sections"
                ],
                "properties": {
                  "area_category": {
                    "type": "string",
                    "enum": [
                      "urbanized",
                      "control",
                      "unlined",
                      "quasi",
                      "outside"
                    ]
                  },
                  "zone": {
                    "type": "string",
                    "enum": [
                      "low1",
                      "low2",
                      "mid1",
                      "mid2",
                      "res1",
                      "res2",
                      "quasi_res",
                      "rural",
                      "neigh_com",
                      "commercial",
                      "semi_ind",
                      "industrial",
                      "ind_exclusive",
                      "none"
                    ]
                  },
                  "above_stories": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10
                  },
                  "basement_stories": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3
                  },
                  "existing_area_m2": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 1000000
                  },
                  "zoning_status": {
                    "type": "string",
                    "enum": [
                      "conforming",
                      "nonconforming",
                      "unknown"
                    ]
                  },
                  "composition": {
                    "type": "string",
                    "enum": [
                      "single",
                      "combined",
                      "mixed"
                    ]
                  },
                  "input_scope": {
                    "type": "string",
                    "enum": [
                      "full",
                      "partial"
                    ]
                  },
                  "circulation": {
                    "type": "string",
                    "enum": [
                      "connected",
                      "separated"
                    ]
                  },
                  "sections": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 5,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "before_use",
                        "after_use",
                        "area_m2",
                        "top_floor"
                      ],
                      "properties": {
                        "before_use": {
                          "type": "string",
                          "enum": [
                            "house",
                            "rowhouse",
                            "office",
                            "clinic0",
                            "factory",
                            "theater",
                            "cinema",
                            "playhouse",
                            "stand",
                            "publichall",
                            "assembly",
                            "hospital",
                            "clinic",
                            "welfare",
                            "hotel",
                            "ryokan",
                            "boarding",
                            "dorm",
                            "apartment",
                            "school_basic",
                            "school_higher",
                            "gym",
                            "museum",
                            "art",
                            "library",
                            "bowling",
                            "skate",
                            "swim",
                            "ski",
                            "golf",
                            "batting",
                            "department",
                            "market",
                            "retail",
                            "retail_small",
                            "exhibit",
                            "cabaret",
                            "cafe",
                            "nightclub",
                            "bar",
                            "dance",
                            "amusement",
                            "waiting",
                            "ryoriten",
                            "restaurant",
                            "bath",
                            "warehouse_business",
                            "warehouse_private",
                            "garage",
                            "repair",
                            "movie_studio",
                            "tv_studio",
                            "other"
                          ]
                        },
                        "after_use": {
                          "type": "string",
                          "enum": [
                            "house",
                            "rowhouse",
                            "office",
                            "clinic0",
                            "factory",
                            "theater",
                            "cinema",
                            "playhouse",
                            "stand",
                            "publichall",
                            "assembly",
                            "hospital",
                            "clinic",
                            "welfare",
                            "hotel",
                            "ryokan",
                            "boarding",
                            "dorm",
                            "apartment",
                            "school_basic",
                            "school_higher",
                            "gym",
                            "museum",
                            "art",
                            "library",
                            "bowling",
                            "skate",
                            "swim",
                            "ski",
                            "golf",
                            "batting",
                            "department",
                            "market",
                            "retail",
                            "retail_small",
                            "exhibit",
                            "cabaret",
                            "cafe",
                            "nightclub",
                            "bar",
                            "dance",
                            "amusement",
                            "waiting",
                            "ryoriten",
                            "restaurant",
                            "bath",
                            "warehouse_business",
                            "warehouse_private",
                            "garage",
                            "repair",
                            "movie_studio",
                            "tv_studio",
                            "other"
                          ]
                        },
                        "area_m2": {
                          "type": "number",
                          "exclusiveMinimum": 0,
                          "maximum": 1000000
                        },
                        "top_floor": {
                          "type": "integer",
                          "enum": [
                            1,
                            2,
                            3
                          ]
                        },
                        "before_other": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 40
                        },
                        "after_other": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 40
                        }
                      }
                    }
                  },
                  "residual": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "use",
                      "top_floor"
                    ],
                    "properties": {
                      "use": {
                        "type": "string",
                        "enum": [
                          "house",
                          "rowhouse",
                          "office",
                          "clinic0",
                          "factory",
                          "theater",
                          "cinema",
                          "playhouse",
                          "stand",
                          "publichall",
                          "assembly",
                          "hospital",
                          "clinic",
                          "welfare",
                          "hotel",
                          "ryokan",
                          "boarding",
                          "dorm",
                          "apartment",
                          "school_basic",
                          "school_higher",
                          "gym",
                          "museum",
                          "art",
                          "library",
                          "bowling",
                          "skate",
                          "swim",
                          "ski",
                          "golf",
                          "batting",
                          "department",
                          "market",
                          "retail",
                          "retail_small",
                          "exhibit",
                          "cabaret",
                          "cafe",
                          "nightclub",
                          "bar",
                          "dance",
                          "amusement",
                          "waiting",
                          "ryoriten",
                          "restaurant",
                          "bath",
                          "warehouse_business",
                          "warehouse_private",
                          "garage",
                          "repair",
                          "movie_studio",
                          "tv_studio",
                          "other"
                        ]
                      },
                      "top_floor": {
                        "type": "integer",
                        "enum": [
                          1,
                          2,
                          3
                        ]
                      },
                      "other": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 40
                      }
                    }
                  },
                  "nonconforming": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "baseline_legality": {
                        "type": "string",
                        "enum": [
                          "confirmed",
                          "unconfirmed"
                        ]
                      },
                      "post_baseline_history": {
                        "type": "string",
                        "enum": [
                          "none",
                          "exists",
                          "unknown"
                        ]
                      },
                      "use_group": {
                        "type": "string",
                        "enum": [
                          "same",
                          "different",
                          "unknown"
                        ]
                      },
                      "reason": {
                        "type": "string",
                        "enum": [
                          "area",
                          "equipment",
                          "both",
                          "unknown"
                        ]
                      },
                      "baseline_area_m2": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "after_area_m2": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "equipment_ratio": {
                        "type": "string",
                        "enum": [
                          "within",
                          "over",
                          "unknown"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "用途変更判定結果",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UseChangeResult"
                }
              }
            }
          },
          "400": {
            "description": "入力エラー"
          },
          "413": {
            "description": "本文が64KBを超過"
          },
          "429": {
            "description": "呼び出し上限を超過"
          }
        }
      }
    },
    "/wp-json/yamaken/v1/property-restrictions": {
      "get": {
        "operationId": "getPropertyRestrictionsDataset",
        "summary": "重要事項説明の全64法の範囲とその他62法の解説記事一覧を取得",
        "description": "宅地建物取引業法施行令第3条第1項と、国土交通省の重要事項説明書様式第九面に対応する公開データです。",
        "responses": {
          "200": {
            "description": "法令一覧、解説記事URL、国土交通省の出典と確認日",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyRestrictionsDataset"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ClassificationResult": {
        "type": "object",
        "required": [
          "ok",
          "tool_id",
          "schema_version",
          "legal_basis_date",
          "results",
          "disclaimer",
          "sources"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "tool_id": {
            "type": "string"
          },
          "schema_version": {
            "type": "string"
          },
          "legal_basis_date": {
            "type": "string",
            "format": "date"
          },
          "scope": {
            "type": "string",
            "const": "new_construction_only"
          },
          "location": {
            "type": "string"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "disclaimer": {
            "type": "string"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "DesignFeeResult": {
        "type": "object",
        "required": [
          "ok",
          "tool_id",
          "schema_version"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "tool_id": {
            "type": "string"
          },
          "schema_version": {
            "type": "string"
          },
          "legal_basis_date": {
            "type": "string",
            "format": "date"
          },
          "result": {
            "type": "object"
          },
          "errors": {
            "type": "array"
          },
          "disclaimer": {
            "type": "string"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "WoodBeamResult": {
        "type": "object",
        "required": [
          "ok",
          "tool_id",
          "schema_version"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "tool_id": {
            "type": "string"
          },
          "schema_version": {
            "type": "string"
          },
          "calculation_basis_date": {
            "type": "string",
            "format": "date"
          },
          "mode": {
            "type": "string"
          },
          "result": {
            "type": "object"
          },
          "errors": {
            "type": "array"
          },
          "disclaimer": {
            "type": "string"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MatFoundationSlabResult": {
        "type": "object",
        "required": [
          "ok",
          "tool_id",
          "schema_version"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "tool_id": {
            "type": "string"
          },
          "schema_version": {
            "type": "string"
          },
          "calculation_basis_date": {
            "type": "string",
            "format": "date"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "conditional",
              "ng"
            ]
          },
          "notice_compliant": {
            "type": "boolean"
          },
          "weight": {
            "type": "object"
          },
          "snow": {
            "type": "object"
          },
          "load": {
            "type": "object"
          },
          "calculation": {
            "type": "object"
          },
          "table": {
            "type": [
              "object",
              "null"
            ]
          },
          "comparison": {
            "type": "object"
          },
          "panel_check": {
            "type": [
              "object",
              "null"
            ]
          },
          "errors": {
            "type": "array"
          },
          "disclaimer": {
            "type": "string"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "JichinsaiDateWeatherResult": {
        "type": "object",
        "required": [
          "ok",
          "tool_id",
          "schema_version"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "tool_id": {
            "type": "string"
          },
          "schema_version": {
            "type": "string"
          },
          "calculation_basis_date": {
            "type": "string",
            "format": "date"
          },
          "settings": {
            "type": "object"
          },
          "location": {
            "type": [
              "object",
              "null"
            ]
          },
          "weather_status": {
            "type": "object"
          },
          "candidate_count": {
            "type": "integer"
          },
          "candidates": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "maxItems": 6
          },
          "errors": {
            "type": "array"
          },
          "disclaimer": {
            "type": "string"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "UseChangeResult": {
        "type": "object",
        "required": [
          "ok",
          "tool_id",
          "schema_version"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "tool_id": {
            "type": "string"
          },
          "schema_version": {
            "type": "string"
          },
          "decision": {
            "type": "object"
          },
          "summary": {
            "type": "object"
          },
          "zoning_summary": {
            "type": "object"
          },
          "nonconforming_assessment": {
            "type": [
              "object",
              "null"
            ]
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "errors": {
            "type": "array"
          },
          "disclaimer": {
            "type": "string"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "PropertyRestrictionsDataset": {
        "type": "object",
        "required": [
          "schema_version",
          "dataset_id",
          "name",
          "canonical_url",
          "source",
          "verified_date",
          "scope",
          "laws"
        ],
        "properties": {
          "schema_version": {
            "type": "string",
            "example": "1.0"
          },
          "dataset_id": {
            "type": "string",
            "const": "important-matters-property-restrictions"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "canonical_url": {
            "type": "string",
            "format": "uri"
          },
          "api_url": {
            "type": "string",
            "format": "uri"
          },
          "download_url": {
            "type": "string",
            "format": "uri"
          },
          "source": {
            "type": "object",
            "required": [
              "name",
              "url",
              "effective_date"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "effective_date": {
                "type": "string",
                "format": "date"
              }
            }
          },
          "verified_date": {
            "type": "string",
            "format": "date"
          },
          "scope": {
            "type": "object",
            "required": [
              "transaction",
              "statutory_basis",
              "total_laws_including_core",
              "core_laws",
              "listed_other_laws"
            ],
            "properties": {
              "transaction": {
                "type": "string"
              },
              "statutory_basis": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "total_laws_including_core": {
                "type": "integer",
                "const": 64
              },
              "core_laws": {
                "type": "array",
                "minItems": 2,
                "maxItems": 2,
                "items": {
                  "type": "string"
                }
              },
              "listed_other_laws": {
                "type": "integer",
                "const": 62
              }
            }
          },
          "notice": {
            "type": "string"
          },
          "laws": {
            "type": "array",
            "minItems": 62,
            "maxItems": 62,
            "items": {
              "type": "object",
              "required": [
                "number",
                "name",
                "article_url"
              ],
              "properties": {
                "number": {
                  "type": "integer",
                  "minimum": 3,
                  "maximum": 64
                },
                "name": {
                  "type": "string"
                },
                "article_url": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-mcp": {
    "endpoint": "https://blog-architect.me/mcp",
    "transport": "streamable-http",
    "protocolVersion": "2026-07-28",
    "supportedProtocolVersions": [
      "2026-07-28",
      "2025-11-25",
      "2025-06-18",
      "2025-03-26"
    ],
    "tool": "classify_building_under_article6",
    "tools": [
      "classify_building_under_article6",
      "calculate_design_and_supervision_fee_under_notice8",
      "check_wood_beam_span_and_section",
      "check_mat_foundation_slab_panel_and_reinforcement",
      "find_jichinsai_candidate_dates_and_weather",
      "check_change_of_use_confirmation_and_zoning"
    ]
  }
}
