Skip to main content
Glama

Social media studio

Convert Draft

convert_draft
Destructive

Publish or schedule a draft with its saved media. Omitting scheduledAt publishes immediately. The draft is deleted once the post is created. The draft needs text, socialMedia and postType. A TikTok draft is rejected when neither the draft nor the tiktok argument carries a privacy level. A draft missing the required metadata of its platform (a DEV_TO draft without metaData.devToTitle) is rejected too; set it with update_draft first.

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>"
    },
    "name": "convert_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesDraft UUID
tiktokNoTikTok only: the publishing options TikTok requires. TikTok rejects a post that has no privacy level, so this object is required on every TikTok post. privacyLevel is limited to the values get_tiktok_creator_info returns in privacy_level_options for the account (a private account cannot use PUBLIC_TO_EVERYONE). Duet and stitch default to on. Any non-TikTok target rejects this field with an error.
fileIdsNoOrdered media library file IDs from presign_media_upload or list_media. Upload the actual bytes with HTTP PUT first. Use a matching postType. On update, replaces all attachments; [] clears them.
accountIdNoTarget social account UUID or platform account ID
scheduledAtNoISO date for scheduling (optional, must be future)

Output Schema

NameRequiredDescriptionDefault
idYes
fileNo
textNo
shareIdNo
metaDataNo
postTypeYes
shareUrlNo
warningsNo
accountIdNo
createdAtNo
updatedAtNo
postStatusYesCurrent status; queued/scheduled does not mean published.
descriptionNo
scheduledAtNo
socialMediaYes
failureReasonNo
firstCommentErrorNo
firstCommentStatusNoDelivery of the automatic first comment: pending, posted, failed or skipped. Null when the post has none.
firstCommentPostedAtNo
firstCommentPlatformIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description backs that up with the concrete consequence: "The draft is deleted once the post is created." It further discloses platform-specific rejection rules (TikTok privacy level, DEV_TO metaData.devToTitle) that are not visible in annotations or the top-level 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 action and the scheduling switch, then prerequisites and platform edge cases. Five sentences with no filler, though the validation sentences are dense and could be slightly tighter.

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?

Covers the mutation's destructive side effect, scheduling semantics, and platform-specific validation, which is the critical surface for a publish tool with an output schema. Minor gaps remain around accountId target selection and what a partial/failed publish does to the draft, but nothing that would cause a mis-call.

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 baseline is 3; the description earns above that by explaining the semantic meaning of omitting scheduledAt (immediate publish) and the cross-field rule that a TikTok draft is rejected when neither the draft nor the tiktok argument carries a privacy level. It does not add much for accountId or fileIds ordering, which the schema already handles.

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?

Opens with a specific verb and resource: "Publish or schedule a draft with its saved media." It also disambiguates the closest sibling by pointing at update_draft for metadata fixes, so an agent can place it against create_draft/update_draft/post tools without opening schemas.

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?

Gives explicit conditional behavior (omitting scheduledAt publishes immediately), states the prerequisites the draft must satisfy, and names an alternative route ("set it with update_draft first") for the DEV_TO metadata failure case. Coverage of when-this-fails and what-to-do-instead is unusually complete.

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