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

NameRequiredDescriptionDefault
idNo实体 ID,如 rcb-pol-001
nameNo名称关键词或文号(与 id 二选一),如 'CBAM'、'2023/956'
languageNo输出语言zh
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 / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "id"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "name"
      +    ]
      +  }
      +]
  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.4/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 the safety profile is covered. The description adds real behavioral context beyond them: single-record scope, the absence of legal opinion/applicability output, and the JSON-for-pipelines option. It does not mention auth or rate-limit behavior, so not a full 5.

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 a labeled Purpose/Guidelines/Limits/Ex structure that is easy to scan and contains no filler prose. The three closing examples are slightly redundant (name='CBAM' and name='2023/956' illustrate the same idea), keeping it short of a 5.

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?

An output schema exists, so return-value documentation is not required, yet the description still names the fields returned. Combined with the id/name alternative explanation, the query_policies dependency, and the exclusions, an agent has everything needed to call this correctly.

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 description coverage is 100%, so the schema already documents id, name, language, and response_format. The description reinforces with concrete value formats (rcb-pol-001, 'CBAM', '2023/956') and ties id to its source query_policies, but adds little syntax the schema lacks. Baseline 3 applies.

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+resource ('fetch one regulation record in full') and enumerates the returned fields (issuing body, policy type, scope, impact, deadline, source link, AI summary). It clearly distinguishes itself from the list-oriented sibling query_policies by emphasizing 'one record per call'.

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?

Explicitly routes the agent: use the id from query_policies (rcb-pol-xxx) or a name keyword, and 'run query_policies first when the id is unknown.' It also states the exclusions (no legal opinion, no applicability assessment) and the response_format='json' path for agent pipelines, so when-to-use and when-not are both covered.

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