Skip to main content
Glama

section

Extract content under a specified heading from a browser session, returning text or structure until the next same- or higher-level heading.

Instructions

Extracts content from under a heading. Finds a heading containing the specified text and returns all content until the next same-or-higher level heading.

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": {
      "session": "<session>",
      "name": "<name>"
    },
    "name": "section"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesText to match in the heading (case-insensitive)
depthNoMaximum depth for structure extraction. Default: 10
limitNoCharacter limit for text extraction (0 = no limit). Default: 0
extractNoWhat to extract: "structure" or "text". Default: text
sessionYesThe session name to query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It explains the content boundary well, but does not disclose whether the operation is read-only, whether an active session is required, what happens if the heading is not found, or what the return format looks like.

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?

The description is two tight sentences, front-loads the purpose, and wastes no words. The second sentence adds necessary boundary behavior without repetition.

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 five-parameter tool with no annotations and no output schema, the description covers the core extraction purpose but omits prerequisites such as session requirements and output behavior. The schema covers parameter details, but the description should do more to explain how the tool behaves in context.

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%, so the schema already documents the parameters. The description reinforces that `name` matches heading text and that extraction stops at the next same-or-higher heading, but it adds little meaning for `depth`, `limit`, or `extract` beyond the schema itself.

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 states a specific verb and resource: it extracts content from under a heading. The second sentence clarifies the matching and boundary behavior. It does not explicitly distinguish itself from sibling tools such as query or overview, so it falls short of a 5.

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?

Usage is implied by the extraction behavior, but there is no explicit guidance on when to use this tool versus alternatives. It also does not state when not to use it or what prerequisite session state is needed.

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