Skip to main content
Glama
skypier-jp-works

mcp-jp-corporate-id

2つの法人名が同一法人を指すか判定

compare_company_names

Determine if two Japanese corporate names refer to the same legal entity by normalizing notation and comparing structural evidence, returning a verdict with reasons and confidence.

Instructions

2つの法人名を表記正規化した上で比較し、同一法人を指す可能性を判定理由・確信度とともに返します。応答には判定の根拠となった構造化データ(evidence: 本体名の一致状態・共通トークン・法人格ラベルの一致・前株後株の位置の一致・文字種の相違)を含み、reasonsはこの根拠から機械生成されます(手書きの固定文ではありません)。verdictは"likely_same"/"likely_different"/"unknown"の3値です。本体名の文字種が大きく異なる場合(一方がラテン文字のみ、他方が日本語を含む等)は、比較自体が原理的に無意味なためスコアリング前に必ずunknownを返します。"likely_different"は、共通の接頭辞・接尾辞(2文字以上)を持ちつつ、残りの識別要素が両方とも2文字以上あり明確に異なる場合(例: 「東京電力」と「東北電力」)に限定して返し、単に文字列が一致しない・重ならないというだけではlikely_differentにしません(文字列の不一致は別法人である証拠にはならないため)。前株・後株の位置が異なる場合(例: 「株式会社サンプル」と「サンプル株式会社」)は、前株・後株が商号の一部であり登記上まったく別の商号になりうるため、confidenceを下げるのではなくunknownを返します(verdictのみで分岐する呼び出し側が誤ってlikely_sameとして扱うことを避けるため)。法人格の種類自体が異なる場合(例: 株式会社と合同会社)も、組織変更では法人番号が変わらず時点の異なる同一法人のレコードである可能性があるためunknownを返します。2006年の会社法施行で類似商号規制が撤廃され、本店所在地が異なれば同一商号の別法人が登記できるため、商号の一致のみを根拠とする確信度は"medium"を上限とし"high"は使いません。confidenceはverdictと矛盾しないよう型で制約しており、unknownでconfidence:medium/highが返ることはありません。確実な同一性判定には法人番号での突合が必要です。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameAYes比較する法人名A
nameBYes比較する法人名B
Behavior5/5

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

With no annotations provided, the description carries the full burden and exeeds it. It discloses return structure (verdict, evidence, machine-generated reasons), constraints on 'likely_different' (only when common prefix/suffix and clearly different remaining elements), the rationale for returning 'unknown' in ambiguous cases, confidence cap at 'medium' due to 2006 company law, and type-level enforcement that confidence cannot contradict verdict. This is exhaustive and non-redundant.

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?

The description is long but highly dense and well-structured. It front-loads the core purpose in the first sentence, then systematically addresses response format, verdict rules, edge cases, confidence constraints, and verification caveats. Each sentence introduces a distinct behavioral rule with rationale, so nothing is redundant. However, its length slightly exceeds minimal conciseness, though appropriate for the tool's complexity.

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?

There is no output schema, so the description must explain return values; it does so comprehensively by specifying the three verdict values, the evidence structure, the machine-generated nature of reasons, and the confidence constraints. It also covers all critical edge cases and the legal background for confidence capping. Given the tool's complexity and lack of structured output metadata, this description is complete and self-sufficient.

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%—both parameters (nameA and nameB) have descriptions ('比較する法人名A/B'). The tool description does not add parameter-specific semantics (e.g., required format, examples) beyond the schema. Since the schema fully documents parameters, the baseline of 3 is appropriate; the description's behavioral details don't directly enhance parameter understanding.

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 the tool's function: it normalizes and compares two corporate names, then returns a likelihood of them referring to the same entity along with reasoning and confidence. It distinguishes itself from siblings like normalize_company_name (which normalizes a single name) and generate_matching_key (which creates keys) by focusing on pairwise comparison and verdict output.

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 provides strong contextual usage guidance without explicitly naming sibling tools. It explains edge cases where the tool returns 'unknown' (character-type mismatch, prefix/suffix position difference, entity type difference), which helps an agent decide when output is unreliable. It also states that '確実な同一性判定には法人番号での突合が必要です' (definite identity requires corporate number matching), implicitly steering users to other tools for definitive verification.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/skypier-jp-works/mcp-jp-corporate-id'

If you have feedback or need assistance with the MCP directory API, please join our Discord server