Skip to main content
Glama

structure_text

Convert messy text to strict JSON schema. Use for emails, chat logs, unstructured input. Schemas: invoice, receipt, contact, resume.

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": "structure_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesRaw text to structure
schema_nameNoTarget schema: invoice, receipt, contact, resumegeneric

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / text / minLength
      Added value: +1
  2. First observed

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it leaves the core ambiguity unresolved: 'strict JSON schema' could mean returning a schema definition or returning data conforming to one. It also omits what happens with an unsupported schema_name, and never mentions the undocumented 'generic' default that the schema silently applies.

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?

Three short sentences, front-loaded with the purpose before the use cases and the schema list. The final sentence largely duplicates what the schema already says, which is the only wasted space.

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?

For a simple two-parameter tool with a fully documented schema this is close to sufficient, but with no output schema present the description should clarify the shape of the return value. Failure behavior for an unknown schema_name also goes unmentioned.

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 both parameters are already documented in the schema, and the description's list of schemas simply restates the schema_name description. No format, size, or content guidance is added for the required 'text' parameter.

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?

Names a concrete verb+resource ('Convert messy text to strict JSON schema') and lists the input genres it handles, so the operation is unmistakable. It does not distinguish itself from siblings like parse_invoice or validate_structure, leaving overlap with the invoice schema unaddressed.

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 clause 'Use for emails, chat logs, unstructured input' gives a usage context, but there are no exclusions or named alternatives. An agent cannot tell from the description whether parse_invoice should be preferred when the input is an invoice, even though 'invoice' is also a listed schema here.

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