Skip to main content
Glama

tmh_read

Reads built-in domain KBs, living knowledge pages, or repo source files by line range, with secret files blocked.

Instructions

Read a built-in domain KB (e.g. builtin:crypto-sm.md), a living knowledge page (.tmh/knowledge/...), or a repository source file by line range (secret files are automatically blocked).

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": {
      "path": "<path>"
    },
    "name": "tmh_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo1-based end line number (0 = default window).
pathYesDocument path such as builtin:db-dialects.md or a repo-relative path.
startNo1-based start line number (0 = beginning).
repoPathNoLocal repository path (required when reading repo files).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose one important trait beyond the schema: secret files are automatically blocked, and 'Read' implies a non-mutating operation. It is silent on error behavior for missing paths, output/truncation limits, and whether repoPath is validated, which are real gaps for an unannotated tool.

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?

A single front-loaded sentence with no filler; every clause carries information (three modes, line-range scope, secret-file blocking). It is dense to the point of being slightly hard to parse, with nested parentheticals, which costs it a point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 no annotations and no output schema, the description covers modes and one safety constraint but leaves return-format, error, and truncation behavior unaddressed. Adequate to call correctly, incomplete for predicting what comes back.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a baseline of 3 would be acceptable, but the description adds meaning the schema does not: it identifies the '.tmh/knowledge/...' path form as a valid mode and frames start/end as a line-range window. The repoPath requirement is already documented in the schema, so the gain is modest rather than substantial.

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 description gives a concrete verb ('Read') and enumerates three distinct resource kinds with concrete path examples (builtin:crypto-sm.md, .tmh/knowledge/..., repo source files), plus the line-range scope. It is immediately clear what the tool returns. It does not explicitly distinguish itself from siblings such as tmh_search, which is the only thing keeping it from 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?

Usage is implied by the enumerated resource types: read a built-in KB, a living knowledge page, or a repo file. There is no explicit when-to-use statement, no when-not, and no pointer to tmh_search for keyword lookup, so the agent must infer the boundary itself.

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