Skip to main content
Glama

AIDataParser

Parse raw text into structured JSON

parse_text

Extract clean, schema-guaranteed JSON from raw/messy text you already have — scraped web content, email bodies, chat logs, OCR output, or pasted tables. Pass the text in text. Use this instead of parse_document when you don't have a file. Optional JSON schema (or schema_id) constrains the output shape and instructions guides extraction. Returns the extracted data plus a confidence score and a review_needed flag. Costs 1 credit per successful call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe raw text to extract structured data from.
redactNoWhen true, PII (emails, SSNs, card numbers, phones, etc.) is masked in the output before it leaves the server.
schemaNoOptional JSON Schema describing the exact output shape you want. When provided, the returned `data` conforms to it.
schema_idNoOptional named template to use instead of a hand-written schema, e.g. "invoice", "receipt", "resume". Call the list_schemas tool for the full set. Ignored when `schema` is provided.
instructionsNoOptional natural-language guidance for what to extract.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/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 well: it discloses the return shape (data plus confidence score and review_needed flag) and the credit cost per successful call. It does not mention error cases or rate limits, but those are not central to this tool's behavior.

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?

The description is four sentences, front-loaded with the core purpose, and every sentence adds value: use case, argument passing, sibling alternative, optional parameters, output, and cost. No filler or repetition of schema fields.

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?

Given no annotations and no output schema, the description covers the crucial return information and cost. It also explains the primary alternative, which is important for tool selection. It leaves out edge cases like schema validation failure, but overall the agent has enough to call it correctly.

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 baseline is 3. The description adds modest conceptual framing ('schema constrains the output shape', 'instructions guides extraction') but mostly paraphrases the schema property descriptions. No parameter semantics beyond the schema are provided.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb and resource: 'Extract clean, schema-guaranteed JSON from raw/messy text you already have.' It also lists concrete input types and explicitly distinguishes itself from parse_document ('Use this instead of parse_document when you don't have a file'), so an agent can tell them apart.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives a direct routing rule: use this over parse_document when there is no file. It also explains optional schema/schema_id/instructions usage in context, giving the agent enough to know when each control is relevant. It does not cover every sibling, but the named alternative is the key one.

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.