Skip to main content
Glama

extract-fields

Extract structured JSON with exactly the requested fields from free text [x402: 0.02 USDC on Base, pay-per-use]

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": {
      "input": "<input>"
    },
    "name": "extract-fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesfirst line 'FIELDS: a, b, c', second line 'TEXT: <free text>'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/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 behavioral burden. It does disclose a genuinely important trait the schema does not: the tool is paid (0.02 USDC on Base, pay-per-use), and it states the return shape ('structured JSON with exactly the requested fields'). It says nothing about failure modes, input size limits, or what happens when a requested field is absent from the text.

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?

One front-loaded sentence: purpose first, then the pricing bracket. Nothing is redundant or padded, and the paid-usage note is short enough not to obscure the core purpose.

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 one-parameter, fully documented utility with no output schema and no nested objects, this is nearly sufficient: purpose, return shape, and cost are all covered. The remaining gap is operational behavior (limits, handling of unfound fields), which is modest for a tool this simple.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single parameter's description already spells out the two-line 'FIELDS:'/'TEXT:' format. The description reinforces the semantics by tying 'the requested fields' to that field list. Slight value added over the schema, though the format mechanics live entirely in the 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 outcome: 'Extract structured JSON with exactly the requested fields from free text.' The scope qualifier ('exactly the requested fields') meaningfully separates it from a generic JSON extractor, but no sibling such as extract-json or extract-entities is named, so differentiation is inferred rather than stated.

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?

Usage is only implied: you supply a field list and free text, and get back just those fields. There is no explicit when-to-use or when-not-to-use guidance, and nothing tells the agent why it would pick this over extract-json or doc-extract.

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.