Skip to main content
Glama

Extract Data

extract

:

Instructions

Extract data from the page without a full snapshot. Types: text (visible text), html (markup), title, url, js (evaluate JavaScript). Use target with @eN or CSS selector for element-specific extraction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesSession ID.
typeNoWhat to extract.text
targetNo@eN ref or CSS selector. Omit for page-level.
jsNoJavaScript expression for type='js'.
maxCharsNoMax output characters.
Behavior3/5

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

With no annotations provided, the description carries the full burden. It successfully explains the five extraction types and element targeting, but omits critical behavioral details: it does not disclose potential side effects of JavaScript evaluation (type='js'), nor does it describe the return value format or extraction limits beyond maxChars.

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 sentences with zero waste. Front-loaded with the core purpose, followed by specific type options and targeting instructions. Every clause earns its place.

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?

Adequate for identifying the tool's function, but incomplete given the lack of output schema and annotations. The description fails to specify what data structure is returned (string? JSON?) and omits safety considerations for arbitrary JavaScript execution, which are important for a 5-parameter extraction tool.

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?

Schema coverage is 100%, setting a baseline of 3. The description adds significant semantic value by elaborating on the enum values for 'type' (e.g., 'visible text', 'markup') and clarifying the 'target' parameter's purpose for 'element-specific extraction', exceeding the baseline schema descriptions.

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?

Clearly states the verb (extract) and resource (data from the page). Effectively distinguishes from the sibling 'snapshot' tool by noting it operates 'without a full snapshot', signaling it's a lighter, targeted alternative.

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?

Provides implied usage guidance by contrasting with 'snapshot', but lacks explicit 'when to use vs when not to use' rules. Critically, it fails to clarify when to use the 'js' type versus the sibling 'execute' tool, which also runs JavaScript.

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/anthonybono21-cloud/leapfrog'

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