Skip to main content
Glama

list_documents

Read-onlyIdempotent

List entries in the WattAnalysis policy document register (Chinese and trade-partner policy documents, tracked from the primary text). Optional free-text query (title, issuer, document number), issue year, and a result limit (default 20).

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

Input Schema

NameRequiredDescriptionDefault
yearNoIssue-year filter, e.g. 2025 matches documents whose issue date falls in that year. 0 (default) disables the year filter.
limitNoMaximum number of register entries to return. Default 20; values are clamped to the range 1–100.
queryNoFree-text filter matched case-insensitively against document register id, document number, title, issuer and domain tags. Empty string (default) disables the text filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of register entries to return. Default 20; values are clamped to the range 1–100."
    • addedInput schema / properties / query / description
      Added value: +"Free-text filter matched case-insensitively against document register id, document number, title, issuer and domain tags. Empty string (default) disables the text filter."
    • addedInput schema / properties / year / description
      Added value: +"Issue-year filter, e.g. 2025 matches documents whose issue date falls in that year. 0 (default) disables the year filter."
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered. The description contributes corpus context (Chinese and trade-partner policy documents, tracked from the primary text) but says nothing about result ordering, pagination beyond the limit cap, or what a returned entry looks like.

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?

Two sentences, front-loaded with the resource and its scope before the optional filters. The only waste is restating the default limit of 20, which the schema already declares.

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

Completeness3/5

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

For a simple read-only list tool with full annotation coverage and 100% schema coverage, the essentials are present. However, there is no output schema, and the description does not describe the return shape or the sort order of entries, leaving the agent unable to predict what comes back from a call.

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 coverage is 100%, so the schema already fully documents all three parameters including defaults and clamping behavior. The description adds little: it lists 'title, issuer, document number' as query targets, which is actually narrower than the schema's match list (register id, document number, title, issuer, and domain tags), so it offers no meaning beyond the schema and slightly understates it.

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 ('List entries') and a precisely scoped resource ('WattAnalysis policy document register'), and the parenthetical narrows the corpus to Chinese and trade-partner policy documents tracked from primary text. It never names a sibling, but the resource is distinct enough from list_measures, list_series, and search_tenders that an agent can separate them without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains what can be filtered but gives no when-to-use guidance, no exclusions, and no pointer to get_document for retrieving a single document or to search_tenders for a different corpus. An agent must infer from the tool name alone when this is the right choice versus its siblings.

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.