Skip to main content
Glama

Fetch a map document

fetch
Read-only

Read one map item by the id search or next gave you: object:, finding:, process:, metric:, rule:, source:, document:, playbook:, workflow:. It is the search/fetch pair that connector clients such as ChatGPT require; if your client can call the direct tools, use them instead: get_object, get_process, get_metric or list_findings. Details: maplith://docs/mcp.

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 or next, e.g. object:invoice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Search reference, or finding:<finding_key> (stable); row ids are run-scoped"New value: +"An id from search or next, e.g. object:invoice."
  2. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Search reference (including statement:<id>), or finding:<finding_key> (stable); row ids are run-scoped"New value: +"Search reference, or finding:<finding_key> (stable); row ids are run-scoped"
  3. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Search reference, or finding:<finding_key> (stable across rescans); finding:<id> remains the run-scoped reference"New value: +"Search reference (including statement:<id>), or finding:<finding_key> (stable); row ids are run-scoped"
  4. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Document id from search: object:<name>, finding:<id>, process:<object type> or metric:<name>"New value: +"Search reference, or finding:<finding_key> (stable across rescans); finding:<id> remains the run-scoped reference"
  5. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuine context beyond that: this is a polymorphic dispatcher over many item types, it exists as a client-compatibility shim, and a docs URI is offered for deeper detail. It stops short of describing the returned document shape, though with no output schema that would have been a useful addition.

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 the core action and the id forms, then the routing guidance, then the docs pointer — a sensible order with no filler. The single long sentence enumerating prefixes is dense but each token is load-bearing; minor cost is readability.

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 annotations covering safety, the definition supplies the id grammar, the routing decision, and a docs pointer — enough to call it correctly. The only gap is that it does not hint at what a returned "map document" looks like, which matters given no output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the schema only says "An id from search or next, e.g. object:invoice." The description adds real meaning by listing all accepted id prefixes and their payload conventions (name, id or finding_key, object type, path), which is information the schema does not convey.

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 and resource ("Read one map item") and then enumerates the full id namespace it accepts (object:, finding:, process:, metric:, rule:, source:, document:, playbook:, workflow:), so an agent knows exactly what universe of items this covers. It also distinguishes itself from the direct-access siblings by naming get_object, get_process, get_metric and list_findings.

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?

Gives an explicit when (search/fetch pair required by connector clients such as ChatGPT) and an explicit when-not with named alternatives ("if your client can call the direct tools, use them instead: get_object, get_process, get_metric or list_findings"). It also establishes the upstream dependency: the id must come from search or next.

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