Skip to main content
Glama

Get one government permit record (South Korea and Japan)

get_permit_record
Read-onlyIdempotent

Fetch one accommodation permit record from official government data. For Korea: by its government management number (e.g. AGCV065100002024000451), optionally with its Korean issuing region, or by registered business name together with the Korean issuing region (e.g. name 'Jobs', region '서울특별시 종로구'). For Japan: by a minpaku (住宅宿泊事業) notification number only (e.g. M130012345); hotel and inn and special-zone licences have no lookup number, so check those with verify_listing_registration. SelectBNBs Verify covers South Korea and parts of Japan today; more countries are coming. It takes one of these identifiers and does not read text copied from a listing. Returns one record (status, category, permit date, record page link, citation, and for Japan the list's source credit) or says why no single record could be chosen. Never lists or browses records.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "country": "<country>"
    },
    "name": "get_permit_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoFor Korea: registered business name (사업장명). Send together with region. Not used for Japan.
regionNoFor Korea: the issuing region in Korean, e.g. 서울특별시 종로구. Required with name; optional with management_number, where it picks the local government that issued a shared number. Not used for Japan.
countryYesISO 3166-1 alpha-2 code of the country where the stay is, e.g. KR. Only KR (South Korea) and JP (parts of Japan) are covered today; other countries return 'not covered yet'.
management_numberNoFor Korea: full government management number, e.g. AGCV065100002024000451. Urban-homestay and hanok numbers (CDFI...) repeat across local governments; send those with region. For Japan: a minpaku notification number, e.g. M130012345.

Output Schema

NameRequiredDescriptionDefault
errorNo
foundNo
detailNo
recordNoStatus, category, permit date, record page link and citation.
statusNo
countryNo
next_stepNo
check_pageNo
matched_onNo
covered_countriesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / country / description
      Previous value: -"ISO 3166-1 alpha-2 code of the country where the stay is, e.g. KR. Only KR (South Korea) is covered today; other countries return 'not covered yet'."New value: +"ISO 3166-1 alpha-2 code of the country where the stay is, e.g. KR. Only KR (South Korea) and JP (parts of Japan) are covered today; other countries return 'not covered yet'."
    • changedInput schema / properties / management_number / description
      Previous value: -"Full government management number, e.g. AGCV065100002024000451. Urban-homestay and hanok numbers (CDFI...) repeat across local governments; send those with region."New value: +"For Korea: full government management number, e.g. AGCV065100002024000451. Urban-homestay and hanok numbers (CDFI...) repeat across local governments; send those with region. For Japan: a minpaku notification number, e.g. M130012345."
    • changedInput schema / properties / name / description
      Previous value: -"Registered business name (사업장명). Send together with region."New value: +"For Korea: registered business name (사업장명). Send together with region. Not used for Japan."
    • changedInput schema / properties / region / description
      Previous value: -"Korean issuing region in Korean, e.g. 서울특별시 종로구. Required with name; optional with management_number, where it picks the local government that issued a shared number."New value: +"For Korea: the issuing region in Korean, e.g. 서울특별시 종로구. Required with name; optional with management_number, where it picks the local government that issued a shared number. Not used for Japan."
  2. Changed3 schema fields changed
    • changedInput schema / properties / management_number / description
      Previous value: -"Full government management number, e.g. AGCV065100002024000451. Send this alone. Urban-homestay and hanok numbers (CDFI...) repeat across districts; for those, send name and region instead."New value: +"Full government management number, e.g. AGCV065100002024000451. Urban-homestay and hanok numbers (CDFI...) repeat across local governments; send those with region."
    • changedInput schema / properties / region / description
      Previous value: -"Korean issuing region in Korean, e.g. 제주특별자치도 제주시. Send together with name."New value: +"Korean issuing region in Korean, e.g. 서울특별시 종로구. Required with name; optional with management_number, where it picks the local government that issued a shared number."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "One permit record, a reason no single record was chosen, COUNTRY_NOT_COVERED, or an error.",
      +  "properties": {
      +    "check_page": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Check Page"
      +    },
      +    "country": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Country"
      +    },
      +    "covered_countries": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Covered Countries"
      +    },
      +    "detail": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Detail"
      +    },
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Error"
      +    },
      +    "found": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Found"
      +    },
      +    "matched_on": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Matched On"
      +    },
      +    "next_step": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Next Step"
      +    },
      +    "record": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Status, category, permit date, record page link and citation.",
      +      "title": "Record"
      +    },
      +    "status": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Status"
      +    }
      +  },
      +  "title": "PermitLookupResult",
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuine context beyond them: the coverage boundary (KR and parts of Japan, other countries return 'not covered yet') and the failure mode ('says why no single record could be chosen'). It does not discuss rate limits or result size, but the output schema carries the return shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the 'never lists' boundary are front-loaded and the per-country rules are compact, but it is a single dense paragraph and 'SelectBNBs Verify covers South Korea and parts of Japan today; more countries are coming' duplicates coverage already stated in the country parameter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-record lookup with a full output schema, an agent has everything needed: which identifiers work per country, how region interacts with name and management_number, what is out of scope, and what happens on failure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and every parameter already carries a detailed description including examples and the CDFI/region caveat. The description restates the same identifier rules rather than adding new semantics, so the schema does the heavy lifting and baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Fetch one accommodation permit record from official government data') and bounds the scope explicitly with 'Never lists or browses records', which separates it from the verify_listing_registration sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use routing per country (Korea: management number, optionally with region, or name+region; Japan: minpaku notification number only) and names the alternative for the cases this tool cannot handle ('hotel and inn and special-zone licences have no lookup number, so check those with verify_listing_registration'). It also rules out pasted listing text.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources