Skip to main content
Glama

read_code_block

Extract a precise range of lines from Pumpkin API or WIT files by specifying file path, start line, and end line to inspect code or documentation.

Instructions

Reads a specific range of lines from a file in the Pumpkin API or WIT interface

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endLineYesThe ending line number (1-indexed, inclusive)
filePathYesPath to the file relative to the API or WIT root, e.g. 'src/lib.rs'
startLineYesThe starting line number (1-indexed)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. While 'Reads' implies a non-mutating operation, it says nothing about error behavior (e.g. out-of-range lines, missing file), size limits, or encoding, all of which matter for a line-range reader. This is a notable gap for a tool with zero annotation coverage.

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 efficient sentence with the action front-loaded. The trailing 'in the Pumpkin API or WIT interface' is useful scoping rather than filler, though the sentence could be tightened slightly.

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?

The tool is simple and its three required parameters are fully documented in the schema, so little is needed. However, with no output schema the description does not indicate what is returned (raw lines, line-numbered, etc.), which would help an agent use the result correctly.

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%: the schema already documents filePath, startLine (1-indexed), and endLine (inclusive). The description adds no syntax or format detail beyond the schema, so the baseline of 3 applies.

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 (Reads) and resource (a range of lines from a file), with a scope constraint (Pumpkin API or WIT interface). It is clear what the tool does, but it never names the obvious alternative read_api_file, so the boundary between reading a range and reading a whole file is left implicit.

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 instead of read_api_file or search_api_code. The 'range of lines' phrasing implies a targeted-read use case, but no explicit condition or exclusion is stated, leaving the agent to infer the distinction from the siblings' names alone.

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