Skip to main content
Glama

Trustbase Lab · Trusted Data Infrastructure for the AI Era

Get Policy Detail

get_policy
Read-onlyIdempotent

Purpose: fetch one regulation record in full - issuing body, policy type, scope, impact on the rCB industry, compliance deadline, source link and an AI-readable summary. Guidelines: accepts the id from query_policies(rcb-pol-xxx) or a name/identifier keyword such as 'CBAM' or '2023/956'; run query_policies first when the id is unknown; add response_format='json' for agent pipelines. Limits: one record per call; no legal opinion and no applicability assessment for a given company, product or shipment. Ex: get_policy(id='rcb-pol-001'), get_policy(name='CBAM'), get_policy(name='2023/956', language='en').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo实体 ID,如 rcb-pol-001
nameNo名称关键词或文号(与 id 二选一),如 'CBAM'、'2023/956'
languageNo输出语言zh
response_formatNo输出格式:markdown=人类阅读, json=Agent 处理友好markdown

Output Schema

TableJSON 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
    • 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"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds useful behavioral context: it returns exactly one record, accepts either id or name keyword, and explicitly disclaims legal opinion and applicability assessment. It doesn't describe pagination or error behavior, but for a single-record read tool with strong annotations, this is solid.

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?

The description is well-structured with clear sections (Purpose, Guidelines, Limits, Ex) and every sentence earns its place. It front-loads the purpose, then gives actionable usage guidance, then limits, then examples. No fluff or repetition of schema content.

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 single-record read tool with an output schema present, the description covers everything an agent needs: what the tool returns, how to identify the record, when to use the sibling search tool, and what the tool does not do. The output schema handles return-value details, and annotations handle safety. No critical gaps.

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 schema already documents all four parameters. The description adds value by explaining the id/name mutual exclusivity ('与 id 二选一' is in schema, but description reinforces it), giving concrete example values (rcb-pol-001, CBAM, 2023/956), and clarifying that response_format='json' is for agent pipelines. This goes beyond the schema's terse descriptions.

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 states a specific verb ('fetch') and resource ('one regulation record in full') and enumerates the exact fields returned (issuing body, policy type, scope, impact, compliance deadline, source link, AI-readable summary). It clearly distinguishes from siblings like query_policies (search) and get_announcements_timeline (timeline) by focusing on a single regulation record.

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?

The description explicitly says to run query_policies first when the id is unknown, and provides concrete examples for both id and name/identifier keyword usage. It also states limits (one record per call, no legal opinion, no applicability assessment), which helps the agent decide when not to use this tool.

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