Skip to main content
Glama

Fetch a search result

fetch
Read-onlyIdempotent

Fetch a result using its exact typed ID from search. Tasks and Docs include body content, messages include bounded text, and files return metadata. A legacy bare ID is treated as a task. Requires the read permission for that source.

Input Schema

NameRequiredDescriptionDefault
idYesExact result ID returned by search, including its type prefix. A bare ID refers to a task.

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
textYes
titleYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"Existing task ID returned by list_tasks or search. Do not invent IDs."New value: +"Exact result ID returned by search, including its type prefix. A bare ID refers to a task."
    • removedInput schema / properties / id / maxLength
      Removed value: -100
    • removedInput schema / properties / id / minLength
      Removed value: -1
    • changedInput schema / properties / id / pattern
      Previous value: -"^[A-Za-z0-9_-]+$"New value: +"^(?:(task|doc|file|message):)?[A-Za-z0-9_-]{1,100}$"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds real value beyond them: what content each type returns (task/doc bodies, bounded message text, file metadata), the legacy bare-ID fallback, and the required permission.

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?

Three tightly packed sentences, front-loaded with the retrieval mechanism, then per-type return behavior, then the permission requirement. No filler or restatement of the tool name.

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?

With an output schema present, return-value structure need not be spelled out, yet the description still summarizes what content arrives per type. Annotations cover safety and the description covers auth, ID format, and fallback behavior — nothing an agent needs to call it is missing.

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% and the single parameter's description already documents the type prefix and the bare-ID-as-task rule. The description restates the bare-ID behavior rather than adding new semantics, so the 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 (fetch) and resource (a result by its exact typed ID from search), and the typed-ID framing distinguishes it from the ID-based siblings get_task/get_doc. An agent can tell this is the search-result retrieval path without opening the schema.

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?

The description establishes context — you fetch IDs that came out of search — and names a prerequisite (read permission for that source). It does not explicitly say when to prefer this over get_task/get_doc for the same entity, so the alternative routing is left to inference.

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.