Skip to main content
Glama

ai_rewrite

Rewrites text to correct grammar and spelling or to match a tone (formal, casual, concise, persuasive, friendly) while keeping the meaning. 0.005 USDC per call via x402.

Input Schema

NameRequiredDescriptionDefault
textYesInput text (max 20,000 characters)
toneNofix, formal, casual, concise, persuasive or friendlyfix
paymentProofNoPayment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Crucial external behaviors are disclosed here: the cost per call (0.005 USDC) and the necessary payment procedure (via x402 and the use of paymentProof). This critical operational context is not captured in the input schema.

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 tool is concisely defined in two sentences. The structure effectively prioritizes the functional description first, followed by the necessary operational/financial constraints. It is efficient, though the second sentence is quite dense.

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?

Given the lack of an output schema, the description covers all necessary operational details: what it does, what parameters it accepts (including valid tone options), and the mandatory billing/payment procedure. It leaves no critical gap for agent planning.

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

Parameters5/5

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

The description adds significant semantic value beyond the 100% schema coverage. It explicitly lists the valid options for the 'tone' parameter and details the complex, multi-step flow required for the 'paymentProof' parameter, which is vital for correct tool invocation.

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 description clearly states the tool's function: rewriting text for grammar/spelling or tone modification. While clear, it does not explicitly differentiate the rewriting function from other AI siblings like ai_summarize or ai_translate, relying solely on the verb 'Rewrites'.

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?

It provides clear usage boundaries based on intent (correct grammar vs. match tone). However, it does not offer explicit 'when to use' vs. 'when not to use' logic against other related AI tools.

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.