Skip to main content
Glama

read_section

Read-onlyIdempotent

Read only the content under a specific heading in an Obsidian note, stopping before the next same-or-higher-level heading, to retrieve a targeted section without the rest of the note.

Instructions

Read just the content under one heading (until the next heading of the same or higher level).

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

Input Schema

NameRequiredDescriptionDefault
fileYesNote path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]]
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
headingYesHeading text or "Parent > Child"
include_headingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description's real contribution is the boundary semantics of what content is returned, which is useful beyond the annotations, but it says nothing about behavior when the heading is absent, whether the heading line itself is included, or the shape of the result.

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?

A single front-loaded sentence with the core operation first and the scope qualifier second; no filler, nothing repeated from the schema or annotations.

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?

For a 4-parameter read tool with no output schema, the definition covers the essential extraction semantics but leaves include_heading unexplained and says nothing about missing-heading behavior, which an agent would need to call this confidently.

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 coverage is 75%, so the baseline is 3. The description reinforces the heading hierarchy notion ("same or higher level") but adds nothing about the undocumented include_heading flag or how heading text matching works, so it does not compensate for the remaining gap.

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 just the content under one heading" names a specific verb and resource, and the parenthetical defines the exact extraction boundary (up to the next same-or-higher-level heading). That distinguishes it in substance from a whole-note read, but no sibling such as read_note or read_block is named to make the routing explicit.

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 scoping rule implies when this tool is appropriate (you want one section, not the whole note), but there is no explicit when-to-use statement, no exclusion of alternatives like read_note or read_block, and no guidance on preconditions such as the heading existing.

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