Skip to main content
Glama

Create Tweet

post_tweets

Create a tweet draft. Before calling, fetch get_me + get_brand_voice (+ get_ai_context/get_recent_notes) AND call get_x_accounts for the posting account's max_tweet_length — never assume 280, since Premium/verified accounts go up to 25,000. If max_tweet_length is null the limit is unknown: ask the user rather than defaulting to 280. Site scope is automatic for a single-site account; pass domain or site_id to target one, and an account with several sites is asked to choose rather than guessed at. Requires text or thread. To attach an image, upload with upload_media then call attach_media_to_tweet with the asset_id and this tweet's id. Links to user-owned domains get UTM parameters appended at draft time so the traffic shows up in GA4 instead of as Direct; pass your own if you want explicit campaign slugs. When the tweet distributes a known blog post, pass its post_id (UUID, from get_posts) so the /admin/posts Distribution column links the two automatically — no manual backfill.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "post_tweets"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
agentNoYour name, on every write: Duet/<channel name> or Grok Bot/<bot name>.
titleNo
domainNo
threadNo
post_idNo
site_idNo
account_idNo
descriptionNo
account_usernameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

The only annotation is destructiveHint=false, so the description carries most of the burden and does add real behavior: drafts rather than publishes, automatic UTM appending for user-owned domains, and deterministic site scoping. However it never states permissions/plan requirements, what the response returns (the tweet id needed for attach_media_to_tweet is only implied), or whether a draft is private/scheduled.

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, then ordered into prerequisites, scoping, media, and linking — a logical progression for a single dense paragraph. Some clauses (the GA4 'Direct' explanation) run long, but nearly every sentence carries actionable detail rather than filler.

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?

For a 10-parameter, zero-required-field creation tool with no output schema, this covers the workflow, ordering, and edge-case fallbacks unusually well. The remaining gap is the return value and the exact role of account_id/account_username, which matter for a tool whose id is then used by attach_media_to_tweet.

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?

Schema description coverage is only 10% across 10 parameters, so the description must compensate and does for text/thread ('Requires text or thread'), domain, site_id, and post_id (UUID from get_posts). But account_id and account_username are never distinguished from each other or from domain/site_id, and title and description are entirely unexplained, leaving a third of the surface ambiguous.

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 ('Create a tweet draft'), and the word 'draft' immediately separates it from the publish/schedule siblings listed alongside it. An agent can tell what it produces 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 Guidelines5/5

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

Explicit prerequisites sequence (get_me + get_brand_voice + get_ai_context/get_recent_notes + get_x_accounts) before calling, plus named alternatives for the image path (upload_media then attach_media_to_tweet). It also states the fallback behavior when max_tweet_length is null (ask the user) and when an account has several sites (ask rather than guess), which is exactly when-to-use/when-not guidance.

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.