Skip to main content
Glama

read_source

Read-onlyIdempotent

Read numbered original source lines by source_id to verify cited passages, check scope and version, and paginate truncated results for grounded support replies.

Instructions

Read numbered original lines using a source_id returned by search_knowledge.

Check scope, updated date and version. Continue at next_start_line if relevant conditions were truncated. The server reads a startup snapshot; restart after editing documents to refresh it. It cannot read arbitrary filesystem paths.

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": {
      "source_id": "<source_id>"
    },
    "name": "read_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_linesNo
source_idYes
start_lineNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds material context they do not: the server reads a startup snapshot, so edits require a restart to appear, and truncation is signalled via next_start_line. That staleness warning is exactly the kind of behavior an agent would otherwise get wrong. It says nothing about output shape, but an output schema exists.

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?

Four short sentences, front-loaded with the core action and prerequisite before paging and environment caveats. The telegraphic phrasing ('Check scope, updated date and version.') reads like clipped notes but is not padded. No redundancy.

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 3-parameter read tool with an output schema and full annotations, the description covers the prerequisite, the paging loop, the snapshot staleness caveat, and a negative constraint. The one real omission is how max_lines interacts with truncation, which is the parameter most likely to cause an incomplete 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 description coverage is 0%, so the description must carry parameter meaning. It does explain source_id's provenance and the start_line/next_start_line paging relationship, but max_lines is never mentioned and neither is its 200-line ceiling or 80-line default, which directly affects whether results truncate.

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 names a specific verb and resource ('Read numbered original lines'), ties the required input to its origin ('using a source_id returned by search_knowledge'), and adds a scope boundary ('cannot read arbitrary filesystem paths') that separates it from a generic file reader. An agent can tell what this tool returns 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 Guidelines4/5

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

It establishes the call sequence by pointing back to search_knowledge as the source of the id, and gives concrete continuation guidance ('Continue at next_start_line if relevant conditions were truncated'). It also states a hard exclusion about filesystem paths. It stops short of explicitly stating when not to use it relative to other retrieval tools, so it is not a full 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools