Skip to main content
Glama

JSON aus Text herausziehen

json_aus_text

Finds and extracts JSON objects or arrays embedded in free text or chat answers (inside code fences or inline), repairs them if needed and returns them parsed. JSON-Extraktion aus LLM-Antworten. Preis $0.005 (x402).

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>"
    },
    "name": "json_aus_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
alleNoAlle Fundstellen statt nur der ersten
textYesText mit eingebettetem JSON

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose two useful traits: it repairs malformed JSON before returning it, and it costs $0.005 via x402. It does not say what happens when nothing is found, whether repair can silently alter values, or how multiple matches are returned. Those omissions matter for an unannotated tool.

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 core capability is front-loaded in the first clause and the whole entry is only three short sentences. The trailing German restatement ('JSON-Extraktion aus LLM-Antworten') partially duplicates the English opening, and the price tag reads as appended rather than integrated, but neither is costly.

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?

This is a simple two-parameter tool with no output schema, so the description need not document structure in depth. Still, 'returns them parsed' is thin: with no output schema, the caller cannot tell whether it returns one value, a list, or a wrapper with status, nor what an empty result looks like. That is a real gap for an unannotated tool with no output schema.

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 100%, so the schema already explains both 'text' and 'alle' ('all matches instead of only the first'). The description adds the useful detail that matches may sit inside code fences or inline, which enriches the 'text' parameter, but it adds nothing about 'alle'. Baseline 3 is appropriate.

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 resource: finds and extracts JSON objects or arrays embedded in free text or chat answers, inside code fences or inline, repairs them and returns them parsed. That is clearly distinguishable from siblings like json_reparieren, which operates on JSON the caller already holds. It stops short of naming that sibling explicitly, so it is a 4 rather than a 5.

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 'embedded in free text or chat answers' phrasing implies the situation this tool is for, which is a meaningful hint. However, there is no explicit when-not guidance, such as 'use json_reparieren if the JSON is already isolated' or 'do not use this to validate arbitrary text', so the routing decision is left 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