Skip to main content
Glama
cuber-it

mcp-playwright-tools

by cuber-it

get_html

Extract the inner HTML of a webpage element using a CSS selector. Defaults to the body if no selector is provided.

Instructions

Get inner HTML of an element

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorNobody

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

Minimal behavioral disclosure. No mention of execution method (e.g., querySelector), error handling, or limitations on hidden elements. Annotations absent, so description fails to compensate.

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?

Single sentence, front-loaded, no wasted words. However, brevity sacrifices necessary detail for a complete specification.

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 simple tool with one optional parameter and intended output string, the description is mostly adequate but lacks details on parameter semantics and return value. Sibling context not addressed.

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

Parameters2/5

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

Schema has 0% description coverage for 'selector' parameter. Description only implies element selection via selector without explaining format or behavior. Baseline for low coverage requires compensation, which is not provided.

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?

Clear verb+resource: 'Get inner HTML of an element'. Distinguishes from sibling tools like get_text (text content) and get_page_content (full page HTML).

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 on when to use this tool versus alternatives such as get_text, get_attribute, or get_page_content. Context signals show many siblings but description offers no selection criteria.

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/cuber-it/mcp_playwright_tools'

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