Skip to main content
Glama

Fetch search result

fetch
Read-onlyIdempotent

Returns the full content of a search result (id like doc:123 or url:456).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety is covered. The description adds that the call returns full content rather than a snippet, which is useful context about output bulk. It says nothing about truncation, content format, or cost of large pages, leaving the main behavioral question unanswered.

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?

One sentence, front-loaded with the verb and return value, with the id format tucked into a parenthetical. Nothing is padded and nothing needs reordering.

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 single-parameter read with full annotation coverage and no output schema, this is close to sufficient: the agent knows what it does and what to pass. The remaining gap is return-value shape (raw text, markdown, length limits), which the description could reasonably have covered since no output schema exists.

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 coverage is 0% – the `id` property is a bare string with no description. The description compensates by naming the parameter's expected shape with two concrete prefixed-id examples, which is exactly the meaning the schema omits. A 4 rather than 5 because it doesn't say whether the prefix is mandatory or what happens with a bare numeric id.

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 concrete verb and resource: returns the full content of a search result. The parenthetical id examples (doc:123, url:456) further pin down what a 'search result' is. It does not differentiate from get_document, which is the nearest potential overlap, so it stops short of a 5.

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

Usage Guidelines3/5

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

Use is only implied by the phrase 'search result' – the agent must infer that this is the follow-up to a `search` call that yields ids. There is no explicit when-to-use, no statement of when get_document would be preferred, and no note on whether the id must come from this session's search results.

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.