Skip to main content
Glama
thevastas

Oxylabs Web API MCP Server

by thevastas

Extract fields as JSON

extract
Read-only

Pull named fields from a web page as structured JSON without writing selectors. Use when you need specific data points in a computable shape, not the full page.

Instructions

Pull named fields off a page as JSON, without writing selectors.

Costs more than scrape — the page is parsed by a model, per call — so the user is asked to approve each run. Scrape the page and read it yourself when a page you were going to read anyway would answer the question; use this when you want the fields themselves, in a shape you can compute on.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAbsolute http(s) URL of the page to read.
promptYesThe fields to pull out of the page, in plain words. Name them and say what shape you want.
run_jsNoExecute the page's JavaScript. Needed for pages that render client-side and arrive empty otherwise. Slow: this returns a job id to poll with `check_scrape` instead of the content. Try without it first.
locationNoTwo-letter country code to fetch the page from. Use it when the page varies by country — pricing, availability, language.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=true, so the description carries real extra weight: it discloses that the page is parsed by a model per call, that it costs more than 'scrape', and that the user must approve each run. That approval/cost gate is meaningful context an agent needs before invoking. It stops short of describing failure modes or what happens if selectors/fields aren't found.

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 tightly written sentences, front-loaded with the verb+resource, then the cost/approval constraint, then the routing rule. No filler sentences; every clause earns its place.

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?

With an output schema present, the description needn't explain return values, and the schema covers params fully. It covers purpose, routing, and the key behavioral gate (cost/approval). The only remaining gap is that it doesn't describe how the returned JSON is shaped or what happens on parse failure, but that is largely covered by the output schema.

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 the schema already documents all four parameters (including the run_js polling caveat and the location country code). The description adds no parameter-level detail beyond what the schema provides, so the baseline 3 is appropriate.

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?

States a specific verb and resource — 'pull named fields off a page as JSON' — and frames the distinguishing mechanism ('without writing selectors'). It contrasts cleanly against the sibling 'scrape', so an agent can tell the two apart without opening either schema.

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

Usage Guidelines5/5

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

Names the alternative ('scrape the page and read it yourself') and gives the exact condition that selects it ('when a page you were going to read anyway would answer the question'), plus the condition for this tool ('when you want the fields themselves, in a shape you can compute on'). This is close to the ideal when/when-not formulation.

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