Skip to main content
Glama

Read a file

get_file
Read-onlyIdempotent

Read a file: name, description, type, size, linked notes and tasks, and its content (with_content), as text if it is readable as UTF-8, otherwise as base64 (encoding). version: an earlier version. Read it before saving a next version (save_file).

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": {
      "file_id": "<file_id>"
    },
    "name": "get_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes
versionNo
with_contentNo

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
sizeYesSize in bytes.
spaceYes
authorYes
sha256Yes
contentNoThe content of the version read, if requested (`with_content`).
versionYes
archivedYes
encodingNoHow to read `content`: UTF-8 text, or base64 for binary content.
client_idYes
updated_atYes
descriptionYes
content_typeYes
linked_notesNo
linked_tasksNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedOutput schema / $defs / LinkedNoteOut / properties / space / description
      Previous value: -"Espace de la note liée : le même, ou un autre espace de l'organisation."New value: +"Space of the linked note: the same one, or another space of the organization."
    • changedOutput schema / properties / content / description
      Previous value: -"Le contenu de la version lue, si demandé (`with_content`)."New value: +"The content of the version read, if requested (`with_content`)."
    • changedOutput schema / properties / encoding / description
      Previous value: -"Comment lire `content` : texte UTF-8, ou base64 pour un contenu binaire."New value: +"How to read `content`: UTF-8 text, or base64 for binary content."
    • changedOutput schema / properties / size / description
      Previous value: -"Taille en octets."New value: +"Size in bytes."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real value by explaining that content comes back as UTF-8 text when readable and base64 otherwise, and that version yields an earlier revision — but it references an `encoding` field that does not exist in the schema, which muddies the disclosure.

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?

Dense and front-loaded: the resource and returned fields come first, then the two optional parameters, then the save_file hand-off. Some phrasing ('as text if it is readable as UTF-8, otherwise as base64') is slightly compressed but still parseable, with no filler sentences.

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 read annotations, an output schema, and only three simple parameters, this is close to complete; return-value structure needn't be restated. The remaining gaps are the unexplained `file_id` and the stray `encoding` mention, neither of which blocks correct invocation.

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 0%, so the description must carry parameter meaning; it explains `version` and `with_content` reasonably well. However, `file_id` is not characterized (format, where to obtain it) and the `encoding` reference has no corresponding parameter, so the compensation is incomplete.

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 and resource ('Read a file') and enumerates what is returned (name, description, type, size, linked notes and tasks, content), which makes the scope concrete. It does not disambiguate against near neighbors like get_document or list_files, so it falls short of full sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

One explicit workflow rule is given: read before saving a next version (save_file). Beyond that, the when-to-use context is only implied, and there is no guidance on when to prefer get_document/get_note or how version browsing should be sequenced.

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