Skip to main content
Glama

grounded-screen

grounded_extract

Grounded Extract turns text into JSON for AI agents. Send any text plus a flat JSON schema and get back the filled object and a grounded map showing whether each value occurs in your text. Each call costs 0.005 USDC on Base, paid per request over x402, with no account or API key. The schema is a flat object with additionalProperties false and at most 32 properties. required lists every property once. A property type is string, number, integer, boolean, or null. A property may include a description of at most 300 characters. Text longer than 40000 characters is rejected. The client refuses to pay more than 0.005 USDC for one call. Screen and extract share a daily cap, default 0.50 USDC. A network error, a timeout, a 5xx, or a cap hit returns extracted false and does not raise.

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": {
      "text": "<text>",
      "schema": "<schema>"
    },
    "name": "grounded_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
schemaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations supplied, the description carries the entire burden and does so richly: cost per call (0.005 USDC on Base via x402), no account or API key required, a client-side spend guard, a shared daily cap with grounded_screen defaulting to 0.50 USDC, and explicit failure semantics — network error, timeout, 5xx or cap hit returns extracted false rather than raising. These are exactly the operational traits an agent needs and none are derivable from the schema or structured fields.

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?

The definition is front-loaded with purpose, then pricing, then input gramritories, then failure behavior — a logical progression with almost no filler. It is somewhat dense with pricing detail reprised across two sentences, but each sentence carries distinct information and none is pure restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with no output schema and no annotations, the definition covers purpose, both inputs' constraints, return shape (filled object plus grounded map), pricing and cap behavior, and error semantics. An agent can call this correctly and predict what comes back without consulting any other field.

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 description coverage is 0%, so the description must compensate and it largely does: the schema parameter is a flat object with additionalProperties false and at most 32 properties, required lists every property, allowed types are enumerated, and property descriptions are capped at 300 characters; the text parameter is bounded at 40000 characters. It does not explain whether the grounded map keys align with property names or how null/absent values appear, leaving a small gap.

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?

The definition states a specific verb+resource: send text plus a flat JSON schema, get back the filled object and a grounded map showing whether each value occurs in the text. That is concrete and easy to act on. It does not, however, distinguish itself from the sibling grounded_screen, which is only mentioned incidentally in the shared daily-cap sentence.

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 implied by the input constraints (flat schema, at most 32 properties, text under 40000 characters), which tells an agent what it can feed in. There is no explicit statement of when to prefer grounded_extract over grounded_screen, and no exclusions or prerequisites beyond the payment model. The agent must infer the selection rule.

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.