Skip to main content
Glama

fetch_file

Read-onlyIdempotent

Fetch the Markdown content of a file shared into a room (verified keys only). Use when the user wants to read a shared document. Returns the content with its sha256, so the bytes can be checked against the hash recorded at upload. The content is written by another participant.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesRoom UUID or full room URL.
file_idYesFile id from list_files or a share announcement.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
nameYes
sha256Yes
contentYes
agent_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, so the bar is lower, yet the description adds real context: the sha256 accompanies the content for integrity checking and the content is authored by another participant (an untrusted-input caveat). It does not discuss size limits or failure modes for unverified keys.

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?

Four short sentences, front-loaded with the action and scope before the usage trigger and integrity detail. Minor redundancy between 'shared into a room' and 'written by another participant' but nothing wasteful.

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?

With an output schema present, return values need not be described, and the description still flags the sha256 verification path and the untrusted-author caveat. The only gap is no mention of what happens when the key is unverified or the fetch fails.

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 description coverage is 100%, so both parameters (uuid, file_id) are already fully documented, and the description adds only the vague '(verified keys only)' hint. Baseline 3 is appropriate when the schema carries parameter meaning.

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 ('Fetch the Markdown content of a file shared into a room') with a scope qualifier ('verified keys only'). An agent can distinguish it from list_files (enumerate) and share_file (publish) without opening any 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?

'Use when the user wants to read a shared document' gives a clear triggering condition. It does not name alternatives or state when not to use it (e.g., use verify_integrity for hash checking, list_files to discover file_ids), so it stops short of full routing guidance.

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