Skip to main content
Glama

web_outline

Retrieves a webpage's outline and heading structure with estimated token counts, helping you understand page layout before fetching full content.

Instructions

Get the outline/structure of a webpage. Returns headings with estimated token counts. USE THIS FIRST to understand page structure before fetching content. Very cheap (~200 tokens output).

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

Input Schema

NameRequiredDescriptionDefault
urlYesURL to fetch
render_jsNoRender JavaScript with Playwright (for SPAs)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It does disclose the return shape (headings plus estimated token counts) and the cost profile (~200 tokens), which is genuinely useful, but says nothing about failure modes, large-page behavior, rate limits, or whether anything is mutated.

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?

Four short sentences, front-loaded with the purpose before the usage pointer and the cost note; every clause carries information. Slightly clipped telegraphic style, but no filler.

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 two-parameter read tool with no output schema, the description covers purpose, return shape, cost, and ordering. Only edge-case behavior (failures, very large pages) is left unstated, which is a minor gap given the tool's simplicity.

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 100% for both parameters, so the schema already documents `url` and `render_js` including its default and SPA rationale. The description adds no syntax or usage nuance beyond the schema, making the baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Get the outline/structure of a webpage" names a specific verb and resource, and "Returns headings with estimated token counts" pins down what comes back. It implicitly separates itself from the content-fetching siblings by contrasting outline retrieval with "fetching content."

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?

"USE THIS FIRST to understand page structure before fetching content" gives explicit ordering guidance relative to the content-fetching tools. It stops short of naming a specific alternative tool or stating exclusions (e.g., when a full fetch is preferable), so it is clear context rather than complete routing.

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