Skip to main content
Glama

Read snapshot file

src_read
Read-onlyIdempotent

Use this tool to read a stored source file by app_id and path (file_path is also accepted). Optionally set version, zero-based line offset and limit. Omitted version reads the latest attempted snapshot. MCP version 2.13.

Input Schema

NameRequiredDescriptionDefault
pathNoPath to the file to read. Required unless file_path is supplied.
limitNoNumber of lines to return (max 2000)
app_idYesTarget app id
offsetNoLine offset to start reading from (0-indexed)
versionNoVersion to read from. Omit to use the latest stored snapshot (last_attempt_version).
file_pathNoCompatibility alias for path. Prefer path; if both are supplied they must match.
mcp_versionNoSet to "2.13", the MCP version in this tool's description. Use this tool's version, not another tool's version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / mcp_version / description
      Previous value: -"Set to \"2.12\", the MCP version in this tool's description. Use this tool's version, not another tool's version."New value: +"Set to \"2.13\", the MCP version in this tool's description. Use this tool's version, not another tool's version."
  2. Changed1 schema field changed
    • changedInput schema / properties / mcp_version / description
      Previous value: -"Set to \"2.11.7\", the MCP version in this tool's description. Use this tool's version, not another tool's version."New value: +"Set to \"2.12\", the MCP version in this tool's description. Use this tool's version, not another tool's version."
  3. Changed1 schema field changed
    • changedInput schema / properties / mcp_version / description
      Previous value: -"Set to \"2.11.0\", the MCP version in this tool's description. Use this tool's version, not another tool's version."New value: +"Set to \"2.11.7\", the MCP version in this tool's description. Use this tool's version, not another tool's version."
  4. Changed5 schema fields changed
    • addedInput schema / anyOf
      Added value: +[
      +  {
      +    "required": [
      +      "path"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "file_path"
      +    ]
      +  }
      +]
    • changedInput schema / properties / file_path / description
      Previous value: -"Path to the file to read"New value: +"Compatibility alias for path. Prefer path; if both are supplied they must match."
    • addedInput schema / properties / mcp_version
      Added value: +{
      +  "description": "Set to \"2.11.0\", the MCP version in this tool's description. Use this tool's version, not another tool's version.",
      +  "maxLength": 32,
      +  "minLength": 1,
      +  "pattern": "^\\d+\\.\\d+(?:\\.\\d+)?$",
      +  "type": "string"
      +}
    • addedInput schema / properties / path
      Added value: +{
      +  "description": "Path to the file to read. Required unless file_path is supplied.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "app_id",
      -  "file_path"
      -]New value: +[
      +  "app_id"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / version / description
      Previous value: -"Version to read from (defaults to applied version)"New value: +"Version to read from. Omit to use the latest stored snapshot (last_attempt_version)."
  6. Changed1 schema field changed
    • changedInput schema / properties / version / description
      Previous value: -"Version to read from. Omit to use the latest stored snapshot (last_attempt_version)."New value: +"Version to read from (defaults to applied version)"
  7. Changed1 schema field changed
    • changedInput schema / properties / version / description
      Previous value: -"Version to read from (defaults to applied version)"New value: +"Version to read from. Omit to use the latest stored snapshot (last_attempt_version)."
  8. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds real behavior beyond that: the default version resolution (latest attempted snapshot / last_attempt_version), the path/file_path alias equivalence, and line-window pagination via offset and limit.

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?

One compact sentence pair leads with the core action and selectors, then adds the optional controls and the version default. The trailing 'MCP version 2.13.' is a redundant echo of the schema's mcp_version default and is the only wasted line.

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 seven parameters, no output schema and full annotation coverage, the description covers selection, version defaulting and pagination adequately. It does not say what the response looks like (raw lines vs. numbered lines, truncation signaling), which is a modest gap for a read tool with no output schema.

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 every one of the seven parameters is already documented in the schema, including the alias rule and the version-omission behavior. The description restates rather than extends that meaning, so the baseline 3 is appropriate.

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 stored source file') plus the key selectors (app_id, path), which is enough to distinguish it from src_glob/src_grep. It never names those siblings or explicitly contrasts listing/searching with reading, so it stops 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?

The description implies usage through the version semantics ('Omitted version reads the latest attempted snapshot'), which tells an agent what happens by default without saying when to pin a version versus take the latest. There is no explicit when-to-use or when-not-to-use guidance relative to src_glob or src_grep.

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