Skip to main content
Glama

web_extract

Extract compact structured JSON from target URLs using named recipes or ad-hoc CSS, HTML-table, JS-variable, JSONPath, regex, form, or Markdown queries.

Instructions

Run a named declarative recipe extractor or an ad-hoc CSS/HTML-table/JS-var/JSONPath/regex/form/markdown extractor returning compact structured JSON.

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_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesTarget HTTP/HTTPS URL.
pathNoOptional path overriding the extractor or URL path.
queryNoExtractor query (CSS selector, JS var name, JSONPath, regex, etc.).
schemaNoOptional fail-closed output validation schema.
ext_typeNoAd-hoc extractor type when extractor_name is not provided.
recipe_nameNoRecipe name when using a named extractor.
extractor_nameNoNamed extractor defined in the active or specified recipe.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full disclosure burden and does not meet it: it says nothing about network side effects, authentication, rate limits, error behavior when a selector or JSONPath matches nothing, or what happens if the named extractor is undefined. Only "returning compact structured JSON" hints at output shape.

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?

A single front-loaded sentence with the action first and the mode list after; the dense slash-separated enumeration is efficient but slightly hard to parse. No redundant or filler wording.

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 seven-parameter, nested-object tool with no annotations and no output schema, the definition covers what it does and roughly what it returns but leaves the operational picture thin (failure modes, recipe dependency, parameter interaction). It is minimally adequate rather than complete.

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 description coverage is 100%, so each of the seven parameters is already documented and the baseline of 3 applies. The description adds only a light framing of the two operating modes (named extractor vs ad-hoc ext_type) and does not explain precedence between extractor_name, recipe_name, path, and query.

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 gives a specific verb ("Run") plus the resource ("declarative recipe extractor" or "ad-hoc ... extractor") and enumerates the supported extractor modes, so an agent knows exactly what capability is offered. It stops short of distinguishing this from siblings such as web_fetch, so it is clear but not sibling-differentiated.

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?

It implies a choice between a named recipe extractor and an ad-hoc extractor, but never states when to pick this over web_fetch or web_probe, nor what prerequisites (e.g. a previously learned recipe) apply. No when-not guidance or alternatives are named.

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