Skip to main content
Glama

get_sections

Read-only

Extract LaTeX section headings from a .tex file to outline a project; returns line numbers, heading commands, and titles for each chapter, section, or subsection.

Instructions

Extract LaTeX section headings from a .tex file.

Read-only. project is a project name or id. Returns one heading per
line: line number, heading command (chapter, section, subsection, and
so on), then the heading title. Starred commands such as \section*
are included.

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>"
    },
    "name": "get_sections"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYes
file_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), so the 'Read-only' sentence adds nothing; however, the description goes further by specifying the exact output shape (line number, heading command, title, one per line) and that starred commands like \section* are included. That behavioral detail about result content and edge-case inclusion is genuinely useful beyond the structured fields.

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?

Front-loaded with the action, then constraints and output format in short lines; nothing is padded. The 'Read-only' line is redundant with the readOnlyHint annotation and could be dropped.

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?

Although an output schema exists, the description still conveys the returned line structure and starred-command handling, and it covers both required parameters at least implicitly. For a two-parameter read tool this is close to complete.

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 two parameters carry no structured documentation. The description clarifies that 'project' accepts a name or id and implies file_path is the .tex file being read, but file_path's format/path expectations are never stated explicitly.

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 and resource: 'Extract LaTeX section headings from a .tex file', with the scope narrowed to one file. It does not differentiate itself from plausible siblings such as project_outline or read_section, so an agent must infer the boundary.

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 or when-not-to-use guidance and no named alternative. The only contextual hint is that it works on a .tex file, leaving the choice against project_outline/read_section entirely to inference.

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