Skip to main content
Glama
TwitterAPIs

twitterapis

by TwitterAPIs

twitter_create_tweet

Post a new tweet as your authenticated account. Reply to or quote existing tweets, and receive the tweet ID and URL.

Instructions

Post a new tweet AS your authenticated account. Set reply_to to post a reply, or quote to post a quote-tweet. This publishes publicly and is not silently reversible (use twitter_delete_tweet to remove it). Requires an authenticated session with write capability behind your key. Returns the new tweet_id and url.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ct0NoOptional. The account's ct0 cookie, paired with auth_token. Sent as the x-ct0 header.
textYesThe tweet body text (1 to 280 characters, or longer if the account has extended limits).
quoteNoOptional. Numeric id of the tweet to quote. When set, this tweet quote-tweets that tweet.
accountNoOptional. The @handle (without @) of the authenticated account to act AS, when your key manages more than one session. Omit to use your key's default session.
reply_toNoOptional. Numeric id of the tweet to reply to. When set, this tweet is posted as a reply in that conversation.
media_idsNoOptional. Comma-separated media id(s) from a prior media upload to attach (images/video).
proxy_urlNoOptional. Residential proxy URL to egress this call through. Recommended for writes: X soft-blocks writes from datacenter IPs as automated. Sent as the x-proxy-url header.
auth_tokenNoOptional. The account's auth_token cookie, to act AS that account for this call (must be paired with ct0). Sent as the x-auth-token header; never placed in the URL.
user_agentNoOptional. User-Agent string to send for this session. Sent as the x-user-agent header.
Behavior5/5

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

The description discloses key behavioral traits beyond annotations: the tweet is published publicly, is not silently reversible, and requires an authenticated session with write capability. Annotations only indicate readOnlyHint=false and destructiveHint=false, so the description adds critical context about reversibility and visibility.

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?

The description is exceptionally concise: two sentences covering purpose, usage, behavioral notes, and return value. Every sentence adds value without waste. Front-loaded with the primary action.

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?

Given the tool has 9 parameters, no output schema, and minimal annotations, the description provides sufficient context: purpose, usage for replies/quotes, public nature, irreversibility, auth requirement, and return output (tweet_id, url). It covers all essential aspects for an AI agent to select and invoke the tool.

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?

Input schema has 100% coverage, so baseline is 3. The description adds semantic value by explaining that reply_to and quote determine the tweet's relationship. However, it does not elaborate on other parameters like media_ids or ct0 beyond what the schema already describes. This added context for key parameters justifies a 4.

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?

The description clearly states the tool's purpose: 'Post a new tweet AS your authenticated account.' It specifies the action (post), resource (tweet), and context (as your account). It distinguishes from the sibling 'twitter_delete_tweet' by mentioning deletion for removal.

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?

The description provides explicit when-to-use guidance: to post a new tweet. It explains how to use reply_to for replies and quote for quote-tweets. It notes that publishing is public and irreversible without deleting, and explicitly names the sibling tool for removal. It also mentions the requirement for an authenticated session with write capability.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TwitterAPIs/twitterapis-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server