Skip to main content
Glama

Get a file from a session

get_file
Read-only

A file a session downloaded or was given (get_job lists them). Up to 5 MB comes back in the result (an image as an image, text as text, anything else as an embedded file); larger ones are linked in the app.

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

Input Schema

NameRequiredDescriptionDefault
idYesAny job of the session.
file_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and closed-world; the description adds real behavioral value by disclosing the 5 MB inline threshold and the polymorphic return shape (image as image, text as text, else embedded file, larger items as app links). It does not cover failure modes such as missing or expired files, which keeps it from a 5.

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?

Two compact sentences: the first establishes what the resource is and where to enumerate it, the second front-loads the size threshold and then enumerates return formats. Every clause carries information and nothing is repeated from the schema or annotations.

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 simple two-parameter read tool with no output schema, the description covers provenance and the shape of the response, which is the main unknown. Annotations already handle the safety profile, so the remaining gap is only error/expiry behavior, a minor omission.

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 coverage is 50%: 'id' is documented as 'Any job of the session' while 'file_id' has no schema description. The description partially compensates by pointing to get_job as the source of the file identifier, giving provenance for file_id, but it adds no format, scope, or constraint details beyond that.

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?

The definition identifies the resource precisely as 'a file a session downloaded or was given', which combined with the get_file name/title leaves no ambiguity about what is retrieved. It also distinguishes itself from get_job, the sibling that lists these files. The explicit verb is carried by the name rather than the description, keeping it just short of a 5.

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?

Mentioning '(get_job lists them)' implies the workflow: use get_job to discover a file_id, then call this tool to fetch it. However, there is no explicit when-to-use statement, no exclusion of alternatives, and no note on error or expiry cases when a file is no longer available. Usage is inferable but not stated.

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.