Skip to main content
Glama
knowledge-mcp

knowledge-mcp

by bmdy6

read_range

Read-onlyIdempotent

Reads a specific 1-based inclusive line range from a Markdown document, letting you inspect exact sections without loading the entire file.

Instructions

Read a 1-based inclusive line range from a Markdown document.

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": {
      "scope": "<scope>",
      "path": "<path>",
      "start_line": "<start_line>",
      "end_line": "<end_line>"
    },
    "name": "read_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
scopeYes
end_lineYes
start_lineYes
include_archiveNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/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 the safety profile is covered. The description adds the meaningful behavioral detail that the range is 1-based and inclusive, but says nothing about out-of-range behavior, whether the whole document is bounded, or how include_archive alters results.

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 tight sentence with the key constraint front-loaded, no filler. It is efficient, though its brevity is part of why the parameter gaps exist.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need no explanation, but a five-parameter tool with zero schema documentation coverage needs the description to explain scope, path and include_archive, and it does not. For a tool whose indexing and scoping conventions are non-obvious, this is under-specified.

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

Parameters2/5

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

Schema description coverage is 0% across five parameters, so the description must carry the load and it only clarifies start_line/end_line semantics. The meaning of scope, path (vault-relative?), and include_archive is left entirely undefined in both the schema and the description.

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 (Read) plus resource (a Markdown document) and the exact unit of retrieval (a 1-based inclusive line range). It does not, however, distinguish itself from the sibling 'read' tool, so an agent must guess whether read_range is the ranged variant of the same operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to use this versus 'read' or 'search', no mention of prerequisites (scope/vault selection), and no exclusions. The 1-based inclusive detail is the only usage-relevant hint and it concerns indexing, not tool selection.

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