Skip to main content
Glama

structure_extraction

Extract structured JSON from messy text (emails, logs, tickets) using regex or Needle 3.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe messy text to extract from
schemaNoOptional output schema stringified JSON

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the two extraction mechanisms, which hints at deterministic (regex) versus model-driven (Needle 3) behavior, but it says nothing about failure behavior on non-matches, cost/latency of the model path, or determinism. Useful but incomplete behavioral disclosure.

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?

A single tight sentence with the action front-loaded and the input examples and engine options packed into one parenthetical. Nothing wasted, nothing buried.

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?

With no output schema and no annotations, the description should say more about the shape of the returned JSON (per-record array vs object, key naming) and how the regex/Needle 3 choice affects results. Given the low complexity of a 2-parameter tool, this is adequate but leaves real gaps.

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 both parameters (text, schema) are already documented in the schema. The description adds no extra meaning about the optional 'schema' parameter, such as whether passing it constrains or validates output. Baseline 3 for a fully documented schema.

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?

States a specific verb and output ('Extract structured JSON') plus the resource/input type ('messy text'), with concrete examples of source material (emails, logs, tickets). It does not differentiate from siblings like canonicalize or batch_canonicalize, but those appear functionally distinct, so the gap is minor.

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 parenthetical source examples imply when the tool is useful, but there is no explicit when-to-use vs when-not guidance and no mention of alternatives. Critically, it names two engines ('regex or Needle 3') without saying how to choose between them, leaving the primary usage decision to inference.

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