Skip to main content
Glama

Read a file on a ticket

read_file
Read-only

Fetch one of the ticket's files by its number. A text file (Markdown, JSON, a log) comes back as text; an image comes back as the image. Anything else is described: name, type, size.

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": {
      "project": "<project>",
      "number": "<number>",
      "file": "<file>"
    },
    "name": "read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe file's number in the ticket: file 1, file 2.
numberYesThe ticket's number in this project, like 12.
projectYesThe project: its id, or its exact name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so safety is covered. The description adds genuinely useful behavior beyond that: the return form depends on file type (text returns as text, images return as images, others are described with name/type/size). It omits edge behavior such as what happens when the file number does not exist or size limits.

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 short sentences, front-loaded with the action and scoping, followed by exactly the return-value information an agent needs. No filler or restatement of the title.

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 no output schema, the description carries the burden of explaining returns and does so well by enumerating the three result forms. It is nearly complete for a simple 3-parameter read tool; only failure modes and any size constraints are unaddressed.

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 all three parameters (project, number, file) are already documented in the schema. The description reinforces that file is addressed by its number within a ticket but adds no format or syntax detail beyond that, making the baseline 3 appropriate.

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?

The description gives a specific verb ('Fetch') and a precisely scoped resource ('one of the ticket's files by its number'), which is naturally distinct from read_ticket (ticket content) and attach_file (upload). An agent can identify the operation without opening the schema.

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?

Usage is implied: call this when you need the contents of a file attached to a ticket. There is no explicit when-not guidance and no routing to read_ticket or attach_file, so the agent must infer the boundary from resource names alone.

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