Skip to main content
Glama

artifact.read_lines

Read-only

Read an inclusive, 1-indexed line window from a text artifact by specifying start and end lines to inspect targeted content.

Instructions

Read a line window from a text artifact, 1-indexed and inclusive.

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": {
      "artifact_id": "<artifact_id>"
    },
    "name": "artifact.read_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo
startNo
artifact_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description usefully adds the windowing semantics (1-indexed, inclusive bounds), but it omits out-of-range behavior, what happens when start/end are omitted, and whether binary or oversized artifacts are rejected.

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; the most important qualifier (1-indexed, inclusive) is stated up front. It is efficient but so terse that it borders on under-specification given the 0% schema coverage.

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?

This is a simple three-parameter read tool with no output schema, so the description does not need to explain return values. The remaining gaps (defaults for the optional bounds, error behavior for invalid ranges, artifact type expectations) are real but modest for a tool this narrow.

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 carries the burden. It clarifies the meaning of start/end by stating the window is 1-indexed and inclusive, which is genuine added meaning, but artifact_id and the optional parameters' defaults and range constraints remain undocumented.

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 specific verb (Read) and resource (a line window from a text artifact), so the agent knows this returns a subset of lines. It is clear enough to separate from a whole-artifact reader like artifact.read, but it never explicitly contrasts itself with siblings or states what a 'text artifact' excludes.

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 when-to-use guidance: nothing says whether to prefer this over artifact.read, artifact.export, or artifact.search, nor when a line window is the right approach. The agent must infer the selection criteria entirely from the tool name.

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