Skip to main content
Glama

post_tweet

Publish a post, reply, or quote publicly on X/Twitter; confirm first, attach uploaded media IDs, and respect character and duplicate limits.

Instructions

Publish a post, reply or quote. Public the moment it runs.

Confirm with the user first. Upload media before posting and pass the ids here (comma-separated). Standard accounts cap at 280 characters, Premium at 25,000; X rejects identical text as a duplicate.

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

Input Schema

NameRequiredDescriptionDefault
textYes
reply_toNo
media_idsNo
quote_tweetNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv2.0.6
    • removedInput schema / properties / media_ids / description
      Removed value: -"Comma-separated media IDs from upload_media (e.g. \"123456,789012\")."
    • changedInput schema / properties / quote_tweet / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / quote_tweet / description
      Removed value: -"Optional tweet ID to quote."
    • changedInput schema / properties / reply_to / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / reply_to / description
      Removed value: -"Optional tweet ID to reply to."
    • removedInput schema / properties / text / description
      Removed value: -"Tweet content (max 280 chars for standard, 25k for Premium)."
  2. First observedv1.0.3

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the post is public immediately, that user confirmation is required, the platform character caps (280 standard / 25,000 Premium), and that identical text is rejected as a duplicate. It does not mention auth/permission requirements or X's rate limits, which are material for a publishing endpoint.

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?

Three short sentences, all front-loaded: the action and its immediacy come first, followed by the confirmation and media prerequisites, then limits. No filler and nothing repeated from the schema.

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?

An output schema exists, so return values need not be explained, and the description covers the destructive/irreversible nature, prerequisites, and constraints of a 4-parameter write tool. The main residual gap is the relationship between reply_to and quote_tweet.

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 description coverage is 0%, so the description must compensate, and it largely does: it explains media_ids is a comma-separated id list populated by a prior upload, and the reply/quote modes implicitly map to reply_to and quote_tweet. It never clarifies whether reply_to and quote_tweet are mutually exclusive or what text length errors look like, leaving ambiguity between the two optional targeting params.

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?

"Publish a post, reply or quote" gives a specific verb plus the three modes the tool covers, and "Public the moment it runs" pins down the immediate-publication semantics. It does not name a sibling such as schedule_tweet or create_draft to route the agent away from this tool when immediacy is unwanted, so sibling differentiation is only implicit.

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 gives concrete preconditions: confirm with the user first, and upload media before calling and pass the ids here. That is actionable workflow guidance rather than vague context. What is missing is an explicit statement of when to choose the scheduling or draft alternatives instead of publishing live.

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