Skip to main content
Glama
AlonsoAlviraa

structured-extract-mcp

extract

Convert unstructured text into validated JSON according to a specified schema. Returns tool errors on failure instead of placeholder JSON.

Instructions

Extract validated JSON for schema from text.

Uses STRUCTURED_EXTRACT_PROVIDER (default: fake). The fake provider only understands the labeled examples in this repository. Failures raise a tool error instead of returning placeholder JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
schemaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose real behavior: the provider dependency (STRUCTURED_EXTRACT_PROVIDER, default fake), the fake provider's limitation to repo examples, and that failures raise a tool error rather than returning placeholder JSON. However, it says nothing about the shape of a successful result or any cost/latency/auth characteristics.

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?

Short and front-loaded: the capability sentence comes first, followed by the provider caveat and error behavior. No filler, though the provider detail is somewhat implementation-flavored.

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 2-required-param tool with no output schema, the description covers error behavior and provider caveats but omits the successful return shape and the valid values for 'schema'. An agent could call it, but not confidently about the output.

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 coverage is 0%, so the description must compensate, and it does assign roles (JSON validated against 'schema', sourced from 'text'). It still leaves ambiguity about whether 'schema' is an inline JSON string or a schema name from list_schemas, and gives no format detail for either parameter.

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?

It states a specific verb+resource: 'Extract validated JSON for schema from text'. That is clear and distinguishable from the sibling list_schemas, which enumerates rather than extracts, though the description never names the sibling to make the contrast explicit.

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?

There is no when-to-use or when-not-to-use guidance, and no mention of list_schemas as the way to obtain a valid schema value. Usage is only implied by the parameter pairing.

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

Deploy Server

Other Tools