Skip to main content
Glama

html_html_select

Extract text content from HTML elements by specifying a tag name and optional attributes. Useful for parsing and scraping structured data from web pages.

Instructions

[html] Find elements by tag name and optional attrs, return text content. E.g. html_select(html, 'span', {'class': 'price'}).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYes
tagYes
attrsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations, so description carries full burden. Discloses it returns text content but does not specify behavior for missing elements, multiple matches, or error conditions. Lacks detail on side effects or performance.

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?

Extremely concise: one sentence plus example, no filler. Information is front-loaded and every word adds value.

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?

Given the output schema exists, description is adequate for a simple tool. Covers key input parameters and provides example, though could clarify whether return is a list or concatenation of texts.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema coverage, description adds meaning by naming parameters and giving an example. Explains 'attrs' is optional and shows format via example, though does not fully describe the attrs object structure.

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?

Clearly states it finds elements by tag name and optional attributes, returning text content. The example with 'span' and class distinguishes from sibling tools like html_html_headings and html_html_text.

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?

Implies use for general element selection, but no explicit when-to-use or when-not-to-use compared to siblings like html_html_headings. No prerequisites or limitations mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0-co/agent-friend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server