Skip to main content
Glama

PlugRail JP Corporate

lookup_corporate

Read-only

法人番号の確定照会と名称・所在地の候補探索を分離して返す。名称だけでは断定せず複数候補と根拠別scoreを返す。候補探索は name 指定時は prefecture 任意(省略時は全国前方一致で searchedNationwide:true・候補に県コード付き・県か住所を足すと絞り込める)。prefecture は '13' または '東京都' のどちらでも可。address が「東京都渋谷区…」のように都道府県名で始まれば prefecture は省略可(推定)。address のみの検索は prefecture または推定が必須(全国非対応)。番号確定例: {"corporateNumber": "1180301018771"}/候補例: {"name": "渋谷", "prefecture": "13", "limit": 10}/全国例: {"name": "山田工業"}corporateNumber はハイフンなし13桁の文字列(数値・ハイフン付き・先頭 T 付きは不可)。番号と name は併用不可。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lookup_corporate"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo法人名の検索語(候補探索)。例: "渋谷"
limitNo取得件数 1〜20(省略時は10)
cursorNo前回応答の nextCursor(透過・省略可)。
addressNo所在地の絞込語(候補探索の任意)。例: "渋谷"
prefectureNo都道府県(name 指定時は任意・省略時は全国検索。address のみのときは必須。address 先頭の都道府県名から推定できれば省略可)。JISコード "13"・13・"1" または都道府県名 "東京都"・"東京" のどちらでも可
corporateNumberNo13桁の法人番号(確定照会)。例: "1180301018771"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / corporateNumber / description
      Previous value: -"13桁の法人番号(確定照会)。例: \"8000000000001\""New value: +"13桁の法人番号(確定照会)。例: \"1180301018771\""
  2. Changed1 schema field changed
    • changedInput schema / properties / prefecture / description
      Previous value: -"都道府県(候補探索で必須。address 先頭の都道府県名から推定できれば省略可)。JISコード \"13\"・13・\"1\" または都道府県名 \"東京都\"・\"東京\" のどちらでも可"New value: +"都道府県(name 指定時は任意・省略時は全国検索。address のみのときは必須。address 先頭の都道府県名から推定できれば省略可)。JISコード \"13\"・13・\"1\" または都道府県名 \"東京都\"・\"東京\" のどちらでも可"
  3. Changed4 schema fields changed
    • addedInput schema / properties / prefecture / anyOf
      Added value: +[
      +  {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  }
      +]
    • changedInput schema / properties / prefecture / description
      Previous value: -"都道府県コード2桁(候補探索は必須)。例: \"13\"(東京)"New value: +"都道府県(候補探索で必須。address 先頭の都道府県名から推定できれば省略可)。JISコード \"13\"・13・\"1\" または都道府県名 \"東京都\"・\"東京\" のどちらでも可"
    • removedInput schema / properties / prefecture / pattern
      Removed value: -"^\\d{2}$"
    • removedInput schema / properties / prefecture / type
      Removed value: -"string"
  4. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description adds substantive behavior beyond that, including that name-only searches are deliberately non-definitive, that nationwide prefix matching sets searchedNationwide:true and attaches prefecture codes to candidates, and how narrowing via prefecture or address behaves. It does not fully describe response shape or ordering, but for a read-only lookup the added context is meaningful.

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?

Content is front-loaded with the two-mode split, then constraints, then compact JSON call examples that make invocation unambiguous. It is dense but each block carries information. Minor redundancy exists where the 13-digit requirement restates the schema's ^\d{13}$ pattern, but the clarification of rejected input forms still earns its place.

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

Completeness4/5

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

With six optional parameters, no output schema, and thin annotations, the description does the necessary work: it explains both operating modes, all parameter interactions, inference rules, the mutual exclusion, and partial return-value semantics such as scores and searchedNationwide. What remains unstated — pagination via cursor and result ordering — is minor given the cursor field's own schema description.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description goes further: prefecture accepts JIS code '13', integer 13, or names like '東京都'/'東京'; prefecture can be inferred from an address prefix; address-only search cannot run nationwide; corporateNumber must be a bare 13-digit string with numeric, hyphenated, and T-prefixed forms rejected; name and corporateNumber are mutually exclusive — a constraint absent from the schema.

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

Purpose4/5

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

The opening sentence names both modes precisely: exact inquiry by corporate number and candidate exploration by name/location, and notes they are returned separately. This is a specific verb+resource statement an agent can act on. It does not, however, differentiate itself from look-alike siblings such as search_corporate_by_name or search_corporate_by_number, leaving the agent to infer why a combined tool exists.

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

Usage Guidelines4/5

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

The description gives concrete conditional rules: name alone never asserts a match and returns multiple candidates with per-basis scores; prefecture is optional when name is given but required when only address is supplied; prefecture may be omitted if the address string starts with a prefecture name; corporateNumber and name cannot be combined. These are real when-to-use constraints. It stops short of naming alternative sibling tools for either mode.

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.