Skip to main content
Glama

Get doc section

get_section
Read-onlyIdempotent

Get the full text of one section of a doc by heading, for example a section that a search_docs or search_all result shows truncated. file accepts the source label exactly as search results print it ('skill/SKILL.md', 'skill/xy', 'extended/charts/xy-chart/cursor', 'reference/xycursor') as well as a bare skill file name ('SKILL', 'xy', 'map').

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": {
      "heading": "<heading>"
    },
    "name": "get_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoDoc identifier: a skill file ('SKILL', 'xy', 'pie', 'map') or a source label from search results ('skill/SKILL.md', 'extended/concepts/events', 'reference/xycursor'). '.md' and 'skill/' / 'extended/' prefixes are optional.
headingYesSection heading to retrieve (case-insensitive substring), e.g. 'Core setup pattern', 'Axis types', 'Common pitfalls', 'Recent API changes'. A ### subsection heading returns just that subsection, and a bold lead (e.g. 'Plain HTML, no bundler') its paragraphs.
chartTypeNoThe same as `file`, for a chart type's reference ('hierarchy', 'xy'), as get_chart_reference takes it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / chartType
      Added value: +{
      +  "description": "The same as `file`, for a chart type's reference ('hierarchy', 'xy'), as get_chart_reference takes it.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "file",
      -  "heading"
      -]New value: +[
      +  "heading"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / heading / description
      Previous value: -"Section heading to retrieve (case-insensitive substring), e.g. 'Core setup pattern', 'Axis types', 'Common pitfalls', 'Recent API changes'. A ### subsection heading returns just that subsection."New value: +"Section heading to retrieve (case-insensitive substring), e.g. 'Core setup pattern', 'Axis types', 'Common pitfalls', 'Recent API changes'. A ### subsection heading returns just that subsection, and a bold lead (e.g. 'Plain HTML, no bundler') its paragraphs."
  3. Changed1 schema field changed
    • changedInput schema / properties / heading / description
      Previous value: -"Section heading to retrieve (case-insensitive substring), e.g. 'Core setup pattern', 'Axis types', 'Common pitfalls', 'Recent API changes'"New value: +"Section heading to retrieve (case-insensitive substring), e.g. 'Core setup pattern', 'Axis types', 'Common pitfalls', 'Recent API changes'. A ### subsection heading returns just that subsection."
  4. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false, and destructiveHint=false, so safety is covered. The description adds useful behavioral context about untruncated full-text retrieval, but says nothing about output shape, section-not-found behavior, or resolution rules when multiple headings match the substring.

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?

Two sentences, front-loaded with the purpose and followed by the parameter convenience note. The example-heavy second sentence is slightly redundant with the schema but still reads efficiently.

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?

For a simple read-only, three-parameter retrieval tool with no output schema, the description conveys enough: what is returned (full untruncated section text) and how to specify the source. The only real gap is heading-match ambiguity and not-found handling, which is minor at this complexity.

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%, and the schema already documents all three parameters, including the file-label formats and heading substring matching. The description's restatement of accepted file formats ('skill/SKILL.md', bare names) largely duplicates the schema, so it earns only the baseline.

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 ('Get the full text of one section of a doc by heading') and frames it around a concrete scenario, retrieving a section that search results show truncated. It does not explicitly contrast with get_doc, but the scope (one section, by heading) is clear enough to distinguish it from whole-document siblings.

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

Usage Guidelines4/5

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

Gives a clear trigger: use this when a search_docs or search_all result shows a section truncated. It names the sibling tools that produce the cue but doesn't state a when-not condition (e.g. when to prefer get_doc for a whole file).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.