Skip to main content
Glama

ScriptGrain

List a draft's earlier versions

list_draft_versions
Read-onlyIdempotent

List the earlier texts of a draft, newest first (up to 50). A version is kept every time the draft's text was replaced: a hand edit in the app, a paragraph rewrite, polish, humanize, the AI-tell repair or a redraft. Each has replaced_at (when it was replaced), word_count, voice_match_score and the full content. Free and read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
generation_idYesGeneration id from list_generations or generate_content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/non-open-world, so the description's 'read-only' is largely redundant. It does add genuinely new behavior: the 50-item cap, newest-first ordering, the retention trigger (only on text replacement), and 'Free' (a cost trait not present in annotations).

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?

Front-loads the action and constraints ('List the earlier texts... newest first (up to 50)'), then adds only the retention rule and returned fields. Three sentences, each carrying distinct information, no padding.

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 one-parameter read-only tool with no output schema, the description compensates well by naming returned fields (replaced_at, word_count, voice_match_score, full content), the item cap, ordering, and cost. Nothing needed to call it correctly is missing.

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?

Only one parameter (generation_id) and schema description coverage is 100%, so the schema already fully documents it and the description adds nothing about the parameter. Baseline 3 is correct when the schema does all the work.

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 (list) and resource (a draft's earlier versions/texts) plus scope details (newest first, up to 50). This clearly distinguishes it from list_generations, though it never names the closely related sibling restore_draft_version, which is the natural counterpart for actually reverting.

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?

Gives real context on when results exist: a version is created on hand edit, paragraph rewrite, polish, humanize, AI-tell repair, or redraft. That tells the agent what history is retrievable, but there is no explicit when-not or pointer to restore_draft_version for acting on a listed version.

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