Skip to main content
Glama

Fetch a record

fetch
Read-onlyIdempotent

Retrieve one full record by the id returned from search (for example "property:42" or "tenant:sam@example.com").

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
idYesAn id from `search`, shaped "<kind>:<id>".

Output Schema

NameRequiredDescriptionDefault
idNo
urlNo
noteNoWhy the result was truncated, when it was.
textNo
titleNo
metadataNo
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile needs no elaboration. The description adds genuine operational context beyond that: it returns one *full* record (not a summary) and the id must be a value sourced from `search`, which prevents guess-the-id failures. Invalid-id or not-found handling is the only unstated behavior, a minor gap given the annotations.

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?

A single sentence, front-loaded with the verb and scope, with the id-provenance rule and examples following immediately. Nothing is padded and nothing essential is buried.

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 one-parameter read tool with full annotations and an output schema, the description covers what remains: scope, id provenance, and id format. Only failure behavior for a malformed or unknown id is left implicit, which is a small omission relative to the tool's simplicity.

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?

With one parameter at 100% schema coverage the baseline is 3, but the description earns an increment by giving two concrete id examples ("property:42", "tenant:sam@example.com") that instantiate the schema's abstract "<kind>:<id>" pattern with real kind values. That is meaning the schema does not supply on its own.

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 ("Retrieve") and a precisely scoped resource ("one full record"), and it distinguishes itself from the `search` sibling by noting that search produces the id while this returns the full record. The agent can tell the two apart without opening either 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?

It says exactly where the id must come from ("the id returned from `search`"), which is a prerequisite that effectively routes the agent to `search` first, and it gives concrete id shapes. It stops short of an explicit when-not-to-use statement, but the single-record scope makes the boundary clear.

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