Skip to main content
Glama

web_section

Fetch specific webpage sections by heading name, including partial matches, to retrieve only the content you need after outlining a page.

Instructions

Get specific section(s) of a webpage by heading name. Use after web_outline to fetch only what you need. Supports partial heading matches.

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": {
      "url": "<url>",
      "headings": "<headings>"
    },
    "name": "web_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL to fetch
headingsYesHeading(s) to extract. Partial match supported.
render_jsNoRender JavaScript with Playwright

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose two useful traits: matching is partial, and the tool is meant to be paired with an outline. It says nothing about what happens when a heading doesn't match, whether nested subsections are included in the returned text, or whether output is truncated, all of which matter for a scraping tool.

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 sentences, front-loaded with the core action, then the workflow hint, then the matching caveat. Every sentence adds information and there is no filler.

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 three-parameter scraping tool with no annotations and no output schema, the definition covers the workflow but omits failure modes and return content shape. An agent knows how to invoke it but not what to expect back or how to recover from a non-matching heading.

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 all three parameters (url, headings, render_js) are already documented in the schema. The description repeats 'partial heading matches,' which the schema's headings field already states, and adds no new syntax or format detail, so the baseline 3 applies.

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 ('Get specific section(s) of a webpage by heading name') and implicitly contrasts with whole-page retrieval via its sibling web_outline. It is clearly distinct from a full-page fetcher, though it never explicitly names web_content as the alternative for whole-page reads.

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?

It gives explicit sequencing guidance ('Use after web_outline') and the rationale ('fetch only what you need'), which tells an agent when this tool is the right choice over a full fetch. It stops short of stating when NOT to use it, such as when no outline is available or when the entire page is wanted.

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