Skip to main content
Glama

fetch

Read-only

Fetch full details for a specific item returned by search. The id encodes the item type: • 'expense:' — the durable Column-Q Receipt ID returned by search, URL-encoded, e.g. 'expense:RR-123%3A%3Adrive%2Ffile%209'. Never a sheet row number: rows move when the sheet is prepended. • 'report:' — the alphanumeric Firestore document id from search or list_reports, e.g., 'report:FQqDglExofsyyQv7aYy4' • 'kb:' — the knowledge-base entry id from search Always use the id exactly as returned by search or list_reports — do not invent or modify the trailing portion. Returns the full text content + metadata for the AI to cite.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesItem ID from a previous `search` or `list_reports` call. Format: 'expense:<URL-encoded Column-Q expenseId>', 'report:<reportId>' (alphanumeric Firestore doc id, ~20 chars), or 'kb:<entryId>' (knowledge-base entry id).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesEchoed back from the input
urlNo
textYesFull text content for the AI to cite
titleYes
metadataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"Item ID from a previous `search` or `list_reports` call. Format: 'expense:<row>' (integer row number) or 'report:<reportId>' (alphanumeric Firestore doc id, ~20 chars)."New value: +"Item ID from a previous `search` or `list_reports` call. Format: 'expense:<URL-encoded Column-Q expenseId>', 'report:<reportId>' (alphanumeric Firestore doc id, ~20 chars), or 'kb:<entryId>' (knowledge-base entry id)."
    • changedInput schema / properties / id / pattern
      Previous value: -"^(expense:\\d+|report:[A-Za-z0-9_-]+)$"New value: +"^(expense:.+|report:[A-Za-z0-9_-]+|kb:.+)$"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description adds useful context beyond that: the return payload ('full text content + metadata for the AI to cite') and a concrete failure warning (expense ids are never sheet row numbers because rows shift), which is genuinely non-obvious behavioral information.

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-loads the core action, then bullets the three id families with examples. The encoded example strings ('expense:RR-123%3A%3Adrive%2Ffile%209') are somewhat dense, but each sentence carries actionable content rather than filler.

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?

For a single-parameter read tool with an output schema, this is complete: it covers every accepted id form, how to obtain each, the exact-usage constraint, and what comes back. Nothing an agent needs to invoke it correctly is missing.

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 100%, so the baseline is 3. The description exceeds that by expanding the id grammar with real examples, the URL-encoding requirement, and the row-number pitfall — meaning the agent understands more than the regex pattern alone conveys.

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+resource (fetch full details for a specific item) and constrains it to items previously returned by `search`. It distinguishes itself from the list-oriented `search` sibling, but does not differentiate from detail-oriented siblings like `get_expense_by_id` or `get_report_details`, so an agent may not know which detail tool to pick.

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?

Gives clear context: use it on an id returned by `search` or `list_reports`, and 'always use the id exactly as returned... do not invent or modify.' It names the producing tools but offers no when-not-to-use guidance or routing against the other detail tools.

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.