Skip to main content
Glama

Edit a draft

drafts_edit

Replace a draft’s title and variants. Send the whole draft, not only what changed, with the version you last read; the answer carries the next version. Refused with 409 when the draft changed in the meantime: read it again with drafts_get. Posts already queued keep the content they were queued with. Changing the text or video of a TikTok variant clears the choices the owner made for it on the TikTok screen, and they are asked again (choose has the link).

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": {
      "id": "<id>",
      "version": "<version>",
      "title": "<title>",
      "variants": "<variants>"
    },
    "name": "drafts_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe draft id.
titleYesA name for the draft in the user’s own list. It is never posted.
brandIdNoThe brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out.
versionYesThe draft’s version as you last read it. A different number is refused, so nothing goes out with content the user did not see.
variantsYesOne entry per account the post goes to, each with its own text and media.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / brandId
      Added value: +{
      +  "description": "The brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out.",
      +  "maxLength": 80,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say it is a non-destructive write that is not open-world. The description adds what that write actually means: full replacement rather than a patch, optimistic concurrency keyed on version with a 409 refusal, and the fact that already-queued posts keep the content they were queued with. The TikTok side effect — changing text or video clears the owner's choices and they must choose again — is exactly the kind of consequence an agent could not infer from the 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?

Front-loaded with the operation, then the calling contract, then the failure mode, then side effects — a sensible order with no filler. The TikTok sentence is long and carries two ideas (clearing choices, pointing at choose), but both earn their place.

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?

With no output schema, the description usefully says the answer carries the next version, and it covers the mutation's conflict behavior and side effects. It does not spell out the return shape beyond the version, but for a replace tool of this complexity that is a small residual gap rather than a blocking one.

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. The description goes beyond it by explaining why the whole draft and the last-read version must be supplied, and by stating that the response carries the next version, which gives the version parameter an operational meaning the schema does not.

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?

"Replace a draft's title and variants" gives a specific verb and resource, and the full-replacement framing immediately separates it from drafts_get (read) and drafts_create (new draft). An agent can tell what this tool does without opening the schema.

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?

It states the calling contract positively (send the whole draft, not only what changed, with the last-read version) and names the recovery path: on 409, read again with drafts_get. What is missing is any exclusion — nothing says when not to use it, e.g. for creating a draft or for a pure read.

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.