Skip to main content
Glama

ScriptGrain

Polish a draft toward the voice

polish

Auto-polish a draft toward a voice-match target: the draft is measured against the profile, the concrete divergences (with numbers) drive a targeted revision, and the result is re-measured — up to 3 passes, best-scoring version returned with its per-feature deltas. Use after generate_content when the score falls short, or on any text with profile_id + text. Needs a generation with status 'drafted' or 'edited' — an id whose status is still 'outline' has no draft to polish and returns no_draft. Default target 0.9. Costs credits by length: up to 5,000 words 1 credit, up to 10,000 words 2, up to 15,000 words 3; returns skipped:true for free when the text already clears the target (checked on the whole text first, at any length). Over 3,000 words the polish runs in the background, section by section: the call returns at once with status 'processing' and a job; call get_job until it has succeeded (its result holds the polished text and score). Pass save=true (generation_id mode) to persist the polished text and score back onto the generation. Tension with humanize: polishing toward voice-match can reintroduce regularity AI detectors flag. If using both, run polish FIRST and humanize last, then verify with the free check_voice_match/ai_detect.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
saveNogeneration_id mode only: persist the polished text + score to the generation.
textNoWith profile_id: the text to polish (50 to 15,000 words).
profile_idNoWith text: profile to polish toward.
target_scoreNoVoice-match target to reach (default 0.9).
generation_idNoPolish this existing generation's draft (preferred).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare the safety profile (non-readonly, non-destructive, non-idempotent), so the description carries most of the burden and does it well: credit costs by word band, free skipped:true path, 3-pass cap, background processing over 3,000 words with status 'processing' and a get_job follow-up, and save semantics. It stops short of describing the delta/return structure, but coverage is otherwise rich.

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?

Long but densely packed and front-loaded with the core mechanism before edge cases and costs. Nearly every sentence carries operational detail (statuses, credits, job flow, humanize ordering); it is verbose but not padded.

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?

For a multi-mode, paid, potentially asynchronous tool with no output schema, the description covers modes, prerequisites, cost, async return path, persistence, and the sibling-ordering constraint — everything an agent needs to invoke it correctly.

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 the baseline is 3, but the description adds real value: it clarifies the two mutually exclusive modes (text + profile_id vs generation_id, with generation_id 'preferred'), notes save only applies in generation_id mode, and restates the default target of 0.9 beyond the schema's minimum/maximum.

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?

States a specific verb (auto-polish) and resource (draft) with a precise target mechanism: measured against a profile, divergences drive revision, re-measured up to 3 passes. This clearly distinguishes it from siblings like humanize, generate_content, and check_voice_match.

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?

Explicitly says when to use it ('after generate_content when the score falls short, or on any text with profile_id + text') and states the prerequisite status ('drafted' or 'edited') plus the failure mode ('outline' returns no_draft). It also resolves the ordering tension with humanize.

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