Skip to main content
Glama

Trustbase Lab · Trusted Data Infrastructure for the AI Era

Search Policies & Regulations

query_policies
Read-onlyIdempotent

Purpose: search the global rCB regulation library - EU CBAM / EUDR / ESPR / ELV / REACH / ISCC PLUS / PPWR /CSRD, China MIIT waste-tyre rules, solid-waste and circular-economy law, VAT incentives, plus India and Korea EPR and US rules. Guidelines: combine keyword with region and category; set verified=true when the answer must rest on government documents; each hit carries issuing body, policy type, scope, rCB impact, compliance deadline and source link. Limits: policy documents only - no legal advice and no ruling on how a rule applies to a specific company or shipment; B/C-grade entries (media or company statements) are excluded only when verified=true is set. Ex: query_policies(keyword='CBAM'), query_policies(region='中国', category='税收优惠'), query_policies(keyword='ISCC', language='en').

Input Schema

NameRequiredDescriptionDefault
limitNo返回条数上限(默认 20,最大 100)
offsetNo起始偏移,默认 0;返回体 has_more=true 时用 next_cursor 作为下一页 offset
regionNo辖区过滤,如 '欧盟'、'中国'、'印度'、'韩国'、'美国'、'国际'
keywordNo关键词模糊匹配,如 'CBAM'、'增值税'、'ESPR'、'碳'
categoryNo类别过滤,如 '碳定价'、'循环经济'、'税收优惠'、'认证体系'、'化学品监管'
languageNo输出语言zh
verifiedNotrue=只看 A 级已核实条目
confidenceNo置信度:A=政府文件核实, B=企业自述/权威媒体, C=待核实
response_formatNo输出格式:markdown=人类阅读, json=Agent 处理友好markdown

Output Schema

NameRequiredDescriptionDefault
textYesHuman-readable result (markdown, or a JSON string when response_format=json).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "起始偏移,默认 0;返回体 has_more=true 时用 next_cursor 作为下一页 offset",
      +  "type": "integer"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "text": {
      +      "description": "Human-readable result (markdown, or a JSON string when response_format=json).",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "text"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds genuine context beyond that: the fields carried in each hit (issuing body, policy type, scope, rCB impact, deadline, source link) and the non-obvious fact that B/C-grade entries are excluded only when verified=true is set. This exceeds the annotation bar.

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?

Front-loaded with labeled Purpose/Guidelines/Limits/Examples sections, which makes it skimmable and easy to parse. The enumeration of regulations and the example block are somewhat dense, but each element earns its place by showing valid filter combinations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter, optional-only search tool with an output schema and full annotation coverage, the description supplies purpose, filter guidance, limits and worked examples. The one missing piece is sibling disambiguation against get_policy, which leaves a residual routing gap.

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 and the schema already documents every parameter including enums for language, confidence and response_format. The description still adds value by explaining cross-parameter behavior (keyword should be combined with region and category) and clarifying the contradictory-looking relationship between verified and the B/C confidence grades.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (search the global rCB regulation library) and enumerates exactly what regimes are covered, so an agent knows the scope precisely. It loses a point for not distinguishing itself from the sibling get_policy (singular), which an agent would otherwise need to disambiguate against.

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?

Gives explicit when-to-use guidance ('combine keyword with region and category', 'set verified=true when the answer must rest on government documents') and clear limits (policy documents only, no legal advice, no company/shipment-specific rulings). It does not name alternatives such as get_policy or query_articles, so routing guidance is one-sided.

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.

Resources