Skip to main content
Glama

edit_draft

Rewrite a saved X/Twitter draft using its ID and new text to update post content without creating a new draft.

Instructions

Rewrite a saved draft.

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": {
      "draft_id": "<draft_id>",
      "text": "<text>"
    },
    "name": "edit_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
draft_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing about what "rewrite" does to existing content, whether the previous text is destroyed or versioned, what permissions or ownership are required, or any rate limits. The only behavioral signal is the word "rewrite," which correctly implies mutation but gives no operational detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single short sentence is front-loaded and free of filler, but its brevity stems from under-specification rather than disciplined editing. There is no structural room left for the constraints an agent would need.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, but a two-parameter mutation tool with zero schema coverage and zero annotations leaves too much unstated. The description should at minimum establish that text replaces the draft body and that draft_id must reference an existing draft.

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

Parameters2/5

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

Schema description coverage is 0%, so both parameters (draft_id and text) are undocumented in the schema and the description never mentions either one. At best "rewrite" weakly hints that text is replacement content; nothing explains whether draft_id must reference an existing draft or what happens on an invalid ID.

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?

"Rewrite a saved draft" names a specific verb (rewrite) and a specific resource (saved draft), which distinguishes it in kind from create_draft and delete_draft. It stops short of any explicit sibling differentiation or scope statement, so it lands at clear-but-undifferentiated rather than a 5.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no statement of prerequisites (must the draft already exist, must it be unsent), and no named alternative such as create_draft for new content. The agent must infer the selection criteria entirely from the name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools