Skip to main content
Glama

read_section

Read-only

Retrieves a single LaTeX section by heading title, including its heading and deeper subsections, and reports duplicate titles instead of guessing.

Instructions

Read one LaTeX section, including its heading.

Read-only. project is a project name or id. title is the heading text inside the braces, such as Introduction. The result runs from that heading through the line before the next heading of the same or higher level. Deeper headings are included. If the title appears more than once, the tool reports the line numbers and does not guess.

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": {
      "project": "<project>",
      "file_path": "<file_path>",
      "title": "<title>"
    },
    "name": "read_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYes
projectYes
file_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint true, destructiveHint false), and the description adds substantive behavior beyond them: exact extraction boundaries (from the heading through the line before the next same-or-higher-level heading, deeper headings included) and an ambiguity policy (report line numbers rather than guess when the title repeats). That boundary and failure-mode disclosure is exactly the context an agent cannot get from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short paragraphs, front-loaded with purpose, then safety, then parameter meaning and extraction semantics. No filler; the ambiguity clause is the longest but is genuinely load-bearing.

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?

The definition covers what is returned at a high level (a slice of the file) and the ambiguity branch, and an output schema exists so return-value detail needn't be restated. The only real gap is the undocumented file_path parameter, which is minor but leaves the agent to infer how a file is addressed within a project.

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 project ("a project name or id") and title ("the heading text inside the braces, such as Introduction"), but says nothing about file_path, leaving one of three required parameters defined only by its name.

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?

"Read one LaTeX section, including its heading" names a specific verb (read) and a narrow resource (a single section of a LaTeX file), which is enough to separate it from whole-file reads. It stops short of explicitly contrasting itself with read_file or get_sections, so an agent must infer the granularity distinction rather than being told.

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?

The usage context is implied — you call this when you know the heading text of a section you want. There is no explicit when-to-use/when-not-to-use statement and no named alternative for the case where the section title is unknown, which would point to project_outline or get_sections.

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