Skip to main content
Glama

Read file

read_file
Read-only

A file's content with line numbers. Large files: ask for a line range.

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_id": "<project_id>",
      "path": "<path>"
    },
    "name": "read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesA path inside the project, such as index.html or js/game.js.
end_lineNo
project_idYesThe project's id, from list_projects or create_project.
start_lineNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds that output is line-numbered and that large files should be paged via a range, which is genuine behavioral context, but it says nothing about truncation limits, missing-file behavior, or whether output is capped.

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, zero filler, with the return shape front-loaded and the pagination hint immediately after. Nothing could be removed without losing information.

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 four-parameter read tool with a readOnly annotation and no output schema, the description covers the essential contract: what comes back and how to page it. The remaining gap is edge-case behavior (nonexistent path, very large file caps), which is minor for a simple read.

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%: path and project_id are documented in the schema, while start_line and end_line have no descriptions. "Ask for a line range" implies the two range parameters exist and are meant to bound output, but it does not state whether the bounds are inclusive or how line numbers relate to the returned content.

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?

"A file's content with line numbers" names the resource and the return shape precisely, so an agent knows this is the read-content tool rather than a listing or mutation tool. It stops short of naming a sibling contrast (e.g. list_files to discover paths, get_asset for assets), so it is clear but not fully differentiated.

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?

"Large files: ask for a line range" gives one concrete conditional hint about when to use the optional range parameters. There is no guidance on when to prefer this over siblings such as get_asset or list_files, nor any prerequisite note beyond what the schema implies.

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