Skip to main content
Glama

Torify — Japan Locale APIs for AI Agents

Invoice T-number → Company Profile [Torify namespace — official]

torify_invoice.companyProfile
Read-onlyIdempotent

One-call composite: T-number (T + 13 digits) → invoice registration status (NTA 適格請求書 API) + corporate details (NTA 法人番号 API). 日本語: T番号 1 つでインボイス登録状態と法人詳細を同時取得。Use when an AI agent receives a T-number (e.g. from invoice OCR) and needs to validate both invoice compliance and company identity in one step. Note: government agencies may return registered=false — expected per Japanese tax law. [Torify namespace — official]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
numberYesインボイス番号(T + 13桁、例: T1180301018771)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
houjinNo法人詳細(registered=true のときに取得)
sourcesYesデータソース一覧
cancelDateNo取消日(null の場合は未取消)
confidenceYes信頼度スコア(0〜0.99)
registeredYes適格請求書発行事業者として登録されているか
invoiceNumberYesT番号(T + 13桁)
registrantNameNo登録事業者名
registrantNameEnNo登録事業者名(ローマ字)
registrationDateNo登録日
registrantAddressNo登録事業者住所
registrantAddressEnNo登録事業者住所(英語)

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint=true, idempotentHint=true, openWorldHint=true. The description adds value by noting that 'government agencies may return registered=false — expected per Japanese tax law,' which is a behavioral disclosure beyond annotations. No contradictions.

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

Conciseness5/5

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

The description is three sentences with no fluff. It front-loads the core functionality, includes a Japanese translation, provides usage guidance, and adds a behavioral note. Every sentence earns its place.

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?

With one parameter, 100% schema coverage, and presence of an output schema, the description is complete. It explains the return includes invoice status and corporate details, covers the expected behavior (registered=false), and gives a clear use case. No gaps.

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% with one parameter described as 'インボイス番号(T + 13桁、例: T1180301018771)'. The description adds context by explaining the parameter is a T-number and how it is used in the composite call, including a Japanese example. This exceeds the schema alone.

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?

The description clearly states it is a composite tool that takes a T-number and returns invoice registration status and corporate details. It uses specific verbs ('one-call composite') and distinguishes itself from siblings like torify_invoice.validate and torify_houjin.lookup by being a combined endpoint.

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 explicitly states when to use the tool: 'when an AI agent receives a T-number... and needs to validate both invoice compliance and company identity in one step.' It provides a clear use case but does not explicitly state when not to use it (e.g., if only one aspect is needed).

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.

TDQS

A3.7/5.0
Disambiguation1/5

The tool set contains exact duplicates for 10 tools (e.g., company.fullProfile and torify_company.fullProfile). An agent cannot distinguish between them, leading to confusion and potential misselection. The purpose of having both namespaced and non-namespaced versions is unclear.

Naming Consistency2/5

Naming is inconsistent: some tools use a dot-separated namespace (e.g., company.fullProfile), while others have a prefix (torify_company.fullProfile). Some tools lack the prefix (e.g., geo.geocode) while their duplicates have it (torify_geo.geocode). No consistent verb_noun pattern; naming conventions are mixed.

Tool Count2/5

With 24 tools, the count is high, and half are duplicates. The effective unique tool count is 12, which is reasonable for the domain, but the duplication inflates the count unnecessarily, making the surface seem bloated and confusing.

Completeness4/5

The tool set covers key Japanese locale operations: corporate lookup, invoice validation/verification, geocoding, postal lookup, name romanization, kanji conversion, law search, and wareki conversion. However, there are no tools for updating or deleting data, which is expected since these are read-only or verification APIs. Minor gaps like missing station/landmark geocoding are noted but acceptable.