Skip to main content
Glama

ai_rewrite

Read-only

AI rewrite / tone — Rewrite text in a target style (default clear and professional) and fix grammar via Workers AI. Price: $0.008 USDC (Base, via 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": "ai_rewrite"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYestext to rewrite
styleNooptional target style/tone (e.g. formal, friendly, concise)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: the call costs $0.008 USDC on Base via x402, meaning payment is required before invocation—valuable for an agent that must handle billing. It doesn't describe output shape or any input limits, which keeps it below a 5.

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?

Two tight clauses: purpose and default first, then pricing. Nothing is redundant, and the most decision-relevant information (what it does, default style, cost) is front-loaded.

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?

For a two-parameter text-transform tool with no output schema, the description covers purpose, default style, engine, and cost—enough to call it correctly. Potentially relevant details like maximum input length or that the response contains only rewritten text are not stated, but the tool's simplicity makes this a minor gap.

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 coverage is 100%, so baseline is 3, but the description adds meaning the schema does not: the style parameter defaults to clear and professional when omitted. That default behavior is not captured in the schema and is useful for deciding whether to supply the 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?

States a specific verb and resource: rewrite text in a target style and fix grammar, plus default style and engine (Workers AI). It is clearly distinguishable from siblings like ai_translate or ai_chat, though it doesn't explicitly name those alternatives.

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 purpose statement—use it when you need grammar correction or tone change—but there is no explicit when-to-use/when-not guidance and no routing to alternatives such as ai_translate for non-English targets.

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