Skip to main content
Glama

ai_rewrite_batch

Read-only

Rewrite up to 15 texts with one instruction — Apply one rewrite instruction to up to 15 texts at once (product blurbs, emails, notifications, support macros, ad lines). texts = items separated by | or newlines, or a JSON array (each up to 1,500 chars); instruction = what to change. Optional tone and max_words. Offline checks on every result: numbers and links from the original must survive, word-count change, over-length and unchanged warnings. Price: $0.012 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": {
      "texts": "<texts>",
      "instruction": "<instruction>"
    },
    "name": "ai_rewrite_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
textsYese.g. Your order shipped. Tracking will be sent later.|We cannot refund after 30 days.
instructionYese.g. make it friendlier and more helpful

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?

The annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds real value beyond them: offline validation rules (numbers and links from the original must survive), over-length and unchanged warnings, a 1,500-char per-item cap, and a cost of $0.012 USDC via x402. What it does not disclose is the shape of the returned results (per-item structure, how warnings are surfaced), which matters since there is no output 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?

Purpose leads, then input format, then validation behavior, then price — a sensible front-loaded order with no filler sentences. It is dense but every clause carries information, aside from the erroneous tone/max_words mention.

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 2-param, no-output-schema tool it covers encoding rules, size limits, validation guarantees, and pricing, which is more than most definitions provide. It still omits the response shape and introduces parameters that don't exist, leaving minor gaps for an agent 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% and the description usefully supplements it with input encoding: texts can be '|' or newline separated, or a JSON array, each up to 1,500 chars. However, it references 'optional tone and max_words' parameters that do not exist in the input schema, which can mislead an agent into passing unsupported arguments.

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 with an explicit scope bound: 'Rewrite up to 15 texts with one instruction' and 'Apply one rewrite instruction to up to 15 texts at once'. The 'batch/15 texts' framing distinguishes it functionally from the singular ai_rewrite sibling, but the description never names that alternative, so the differentiation is implicit rather than explicit.

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

Usage Guidelines4/5

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

Concrete use contexts are listed (product blurbs, emails, notifications, support macros, ad lines), which tells the agent what content this tool is meant for. There are no exclusions or routing instructions (e.g., 'use ai_rewrite for a single text'), so the agent must infer the single-vs-batch boundary.

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