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
| Name | Required | Description | Default |
|---|---|---|---|
| uscc | Yes | 统一社会信用代码(必填)。带空格/连字符/全角字符会自动归一,大小写不敏感 | |
| with_profile | No | 是否连档案一起返回。只要「在不在库、id 是多少」就传 false,省一次取档 |