Skip to main content
Glama

html

Read-only

Fetch HTML content from a webpage or targeted elements using CSS selectors, text, or labels. Retrieve full pages or specific sections for parsing and automation.

Instructions

Get HTML (whole page or a target — @eN, @text:Foo, @label:Email, CSS, etc.).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
leaseNoOptional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env.
targetNoOptional @eN / @text: / @label: / CSS.
sessionNoOptional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description does not contradict these and adds minimal behavior detail beyond noting target selection options. It does not describe output format or any potential side effects, but for a read-only tool that is acceptable given annotations.

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 a single, front-loaded sentence with no wasted words. It communicates the core functionality and gives target examples compactly. Perfectly concise for a tool of this simplicity.

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 read-only tool with three optional parameters and a full parameter schema, the description covers what is needed. It implies the return value (HTML) and provides target syntax guidance. It does not mention output encoding or pagination, but such details are likely irrelevant for a one-shot HTML fetch, and the tool is simple enough that this is not a significant gap.

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%, so the schema already documents all three parameters. The description adds concrete examples ('@text:Foo', '@label:Email') that slightly illustrate the target syntax, but largely repeats the schema's target description. Since the baseline for full schema coverage is 3, this is appropriate; it does not significantly compensate for anything missing.

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 clearly states the tool retrieves HTML, either the whole page or a targeted element via @eN, @text:Foo, @label:Email, or CSS selectors. It is specific about what it returns, but it does not explicitly differentiate from siblings like 'text' or 'extract', though the examples imply HTML output.

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

Usage Guidelines2/5

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

No guidance is given on when to use this tool versus alternatives. With many sibling content-retrieval tools (text, extract, extract_fields), the description does not mention exclusions or direct users to pick it specifically for HTML needs. Usage context is only implied by the verb 'Get HTML'.

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