Skip to main content
Glama

BeaconMFG – China Supplier Directory

get_entity_risk

取某法人主体的政务事实卡:税务、社保、司法、行政处罚、政府采购失信五类公开事实,压成 6 个法定资格核验项(三态 hit/clear/unknown)。用于政府采购资格审查、招商尽调、投标前自查。 三种入口,按优先级取第一个有值的: ① uscc —— 18 位统一社会信用代码(营业执照上那个,最权威); ② id —— search_vendors / get_vendor 返回的 8 位 token。用于查已收录商户:服务端会自己从该商户的登记信息或主体挂靠表取 USCC 再查。 ③ name(可配 city)—— 只用于既没有代码也没有 token 时。不做名称反查,直接按这个名字出一张空骨架卡,明确标「未核验」。 ⚠ 没有数据不等于查不到:三种入口在「该主体尚无任何已接入数据」时,都会返回结构完整的卡(五节齐全、六项 ? 未核验、覆盖度全 none),不是 404、不是空对象。把它呈现出来,并说明缺的是哪一类数据、怎么补;绝不能说成「无记录 / 无异常」。 ⚠ content[0].text 是已经排好版的事实卡,请原样呈现给用户,不要重排表格、不要改小节顺序、不要把符号换成 emoji。需要精确取值时读 structuredContent。 ⚠ 任何 actionable=false 的核验项,不得表述为「无记录 / 无异常」,必须写明数据时点(as_of)并提示实时核验。 ⚠ unknown 是「没查过」,不是「没问题」;hit 只表示「有记录」,不表示「不合格」。本工具只给事实,不给结论、评分或建议 —— 结论由采购人依法自行判断。 ⚠ content[0].text 同样受 detail 影响:compact 下是一张精简卡,仍须原样呈现,不要自行补回被省略的明细。

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": "get_entity_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo已收录商户的 8 位 token(search_vendors / get_vendor 返回的 id)。服务端据此取该商户的登记 USCC(gov.uscc 或 linked_entity.uscc)再查事实卡。该商户尚未归集到法人主体时,返回以商户名与地区为卡头的**空骨架卡**,不是 404。
cityNo配合 name 使用,写入卡头地区(如「贵阳」)。对 uscc / id 入口无效。
nameNo企业名称。只在既无 uscc 也无 id 时使用:**不做反查**,直接以该名称出一张空骨架卡(六项 `? 未核验`)。要真数据请补 uscc 或 id。
usccNo18 位统一社会信用代码(GB 32100 校验位会当场验)。可从营业执照、招标文件、或 get_vendor 回执的 linked_entity.uscc 取得
detailNo返回详略。`card`(默认)=完整事实卡:六项核验带记录来源、经营实力、司法明细、阅读说明,单次约 1.2k token,用于呈现给用户或留档。`compact`=精简摘要:只保留六项核验结论、覆盖度与「须实时核验」清单,**不返回任何原始明细**(处罚条目、案件列表、经营指标表),单次约 0.6k token。一次比对多家(招标名单、招商候选池)时用 compact;其中某家需要看明细,再用同一 uscc 以 `detail=card` 查一次。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / city
      Added value: +{
      +  "description": "配合 name 使用,写入卡头地区(如「贵阳」)。对 uscc / id 入口无效。",
      +  "type": "string"
      +}
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "返回详略。`card`(默认)=完整事实卡:六项核验带记录来源、经营实力、司法明细、阅读说明,单次约 1.2k token,用于呈现给用户或留档。`compact`=精简摘要:只保留六项核验结论、覆盖度与「须实时核验」清单,**不返回任何原始明细**(处罚条目、案件列表、经营指标表),单次约 0.6k token。一次比对多家(招标名单、招商候选池)时用 compact;其中某家需要看明细,再用同一 uscc 以 `detail=card` 查一次。",
      +  "enum": [
      +    "card",
      +    "compact"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "已收录商户的 8 位 token(search_vendors / get_vendor 返回的 id)。服务端据此取该商户的登记 USCC(gov.uscc 或 linked_entity.uscc)再查事实卡。该商户尚未归集到法人主体时,返回以商户名与地区为卡头的**空骨架卡**,不是 404。",
      +  "type": "string"
      +}
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "企业名称。只在既无 uscc 也无 id 时使用:**不做反查**,直接以该名称出一张空骨架卡(六项 `? 未核验`)。要真数据请补 uscc 或 id。",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "uscc"
      -]New value: +[]
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

No annotations exist, so the description carries the entire behavioral burden, and it does: it discloses that no-data returns a structurally complete card rather than a 404 or empty object, that `unknown` means "never checked" and `hit` only means "a record exists", and that actionable=false items must not be phrased as "no issues". It also specifies that content[0].text is pre-formatted and must be presented verbatim while structuredContent carries exact values. Gaps are minor for a read-style tool (no auth/permission or rate-limit statement), but the failure-mode semantics disclosed here are exactly what would otherwise be catastrophically misread.

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?

Purpose is front-loaded, then entry points, then warnings – a sensible order for a high-stakes tool where the ⚠ items are load-bearing. It is long and partially redundant, though: the content[0].text fidelity warning is restated twice and the empty-skeleton behavior appears in both the body and the `id` parameter description.

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?

Five parameters with none required, no annotations, and no output schema, so the description must cover both invocation and returns – and it does, explaining the content[0].text vs structuredContent split, the compact-mode omissions, and the guaranteed shape of a no-data response. Nothing an agent needs to call this correctly or interpret the result honestly is missing.

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 description coverage is 100%, so the baseline is 3. The description still earns credit by establishing the mutual-exclusion/priority relationship among uscc, id, and name+city (the schema documents each parameter in isolation), by noting city is inert for the uscc/id paths, and by quantifying the cost/loss tradeoff of detail=card vs compact (~1.2k vs ~0.6k tokens, compact drops all raw detail).

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?

Opens with a concrete verb + resource ("取某法人主体的政务事实卡") and states exactly what the card contains: five classes of public facts compressed into six statutory-qualification checks. It also names the use cases (procurement qualification review, investment due diligence, pre-bid self-check) and mentions the sibling-supplied tokens (search_vendors / get_vendor), so an agent can distinguish it from get_vendor without opening any schema.

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?

Gives an explicit priority ladder across the three entry points (uscc → id → name+city) with the condition that selects each, and an explicit exclusion: name does NOT do reverse lookup and only yields an unverified skeleton card. The `detail` guidance even prescribes a two-pass workflow (compact for bulk comparison, re-query with card for detail), which is when-to-use guidance at the parameter level.

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.