Skip to main content
Glama
BeaconMFG

BeaconMFG

lookup_uscc

Verify a Chinese business entity by its 18-character Unified Social Credit Code and identify whether it exists in the directory.

Instructions

按统一社会信用代码(营业执照上 18 位那串,如 91330100MA2AB1CD2N)精确查库,回答「这个代码在我们名录里吗?是哪一家?」。

什么时候必须用它: · 对方给了营业执照/代码 —— 这是唯一不会串号的锚(名称会改、简称会重); · 个体工商户 —— 它们的名称只在登记辖区内唯一(白云区有「XX五金店」,南明区也可以有同名),按名字搜必然串号,只能按代码查; · 认领/签约/开票前核对主体身份。

查不到 ≠ 不存在:存量主体多数来自公开地图 POI,本来就不带代码,索引覆盖率见返回体 index_coverage。没命中时用 search_vendors(query=<登记全称>, city=<城市>) 按名称再试。

返回:found / ids / count;with_profile=true(默认)时附完整档案 vendors(单条时顶层还有 vendor)。同一代码命中多条会标 ambiguous。

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": {
      "uscc": "<uscc>"
    },
    "name": "lookup_uscc"
  }
}

Input Schema

NameRequiredDescriptionDefault
usccYes统一社会信用代码(必填)。带空格/连字符/全角字符会自动归一,大小写不敏感
with_profileNo是否连档案一起返回。只要「在不在库、id 是多少」就传 false,省一次取档

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it warns that a miss does not mean non-existence because most records come from POI data without codes, points to index_coverage in the response, and notes that multiple hits are flagged ambiguous. It falls short of stating read-only/no-side-effect status or any permission/latency constraints.

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?

Front-loads the core question, then uses short labeled blocks (when to use, false-negative caveat, return shape). Despite being longer than a one-liner, every block changes how an agent would invoke or interpret the tool.

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 two-parameter read tool with no output schema, the description covers the missing piece — return values (found/ids/count, vendors, vendor, ambiguous) — as well as the coverage caveat that would otherwise cause false 'not found' conclusions. Nothing an agent needs to call it correctly is missing.

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 coverage is 100%, so both parameters are already documented in the schema, including normalization and the with_profile cost tradeoff. The description adds only the return-shape consequence of with_profile (attaching full `vendors`, or top-level `vendor` for a single hit), which is modest value over structured fields. Baseline 3 is appropriate.

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 — exact lookup by 统一社会信用代码 — and frames the question it answers ("这个代码在我们名录里吗?是哪一家?"). It is immediately distinguishable from name-based search_vendors, which the description also names.

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?

Provides an explicit "什么时候必须用它" block with three concrete triggers (营业执照/代码 present, 个体工商户 whose names are only unique within a registration district, and pre-contract/invoice identity verification), plus a negative-path instruction: when not found, retry with search_vendors(query=<登记全称>, city=<城市>). When-to-use, when-not, and the alternative are all spelled out.

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