Skip to main content
Glama

extract_structured

Structured extraction: JSON Schema plus a URL or raw text in, matching JSON out. Costs $0.005.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
textNo
schemaYesJSON Schema as a JSON string

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4/5.0
Behavior4/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 discloses the cost ($0.005) and output format ('matching JSON out'), which adds value. However, it does not mention constraints like input size limits, timeout, or behavior when both url and text are provided.

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?

The description is a single, front-loaded sentence with no wasted words. It efficiently conveys the core purpose and a key behavioral detail (cost).

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?

For a simple tool with 3 parameters and no output schema, the description covers the essential purpose and cost. It lacks usage guidance among many siblings, but overall it is fairly complete given the tool's complexity.

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?

The description adds some meaning by clarifying that url and text are alternatives, but schema parameter is only described in the schema itself (JSON string). With 33% schema coverage, the description partially compensates but does not fully detail each parameter.

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?

The description clearly states the tool performs structured extraction using a JSON Schema and either a URL or raw text, producing matching JSON output. It uses specific verbs and nouns, distinguishing it from siblings like classify_text or summarize_url.

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?

The description implies when to use the tool (for structured extraction of data from text or URLs), but does not explicitly state when to use it over alternatives or provide exclusions. Among many sibling tools, more guidance would be helpful.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources