Skip to main content
Glama
Twitter MCP Server

Twitter MCP Server

by takiAA

sendTweet

Destructive

Publishes a tweet via a configured Twitter API or local session, requiring authorization and write access; check the account before retrying if the publication outcome is unknown.

Instructions

Publish a tweet through the explicitly configured API or named local session. Disabled unless TWITTER_ENABLE_WRITE=true. Requires user authorization before calling. If publication outcome is unknown, check the account before retrying.

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": "sendTweet"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
textYes
sourceYes
statusYes
accountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already declare openWorldHint, destructiveHint and idempotentHint=false; the description goes beyond them with an environment-flag gate, an authorization requirement, and an explicit warning not to blindly retry when the publication outcome is unknown. That retry hazard is exactly the non-idempotency consequence an agent needs spelled out.

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?

Four tight sentences with the capability first and the gating/retry constraints after it; no filler. The phrase "explicitly configured API or named local session" is slightly jargon-heavy but carries real configuration meaning.

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 destructive, non-idempotent write tool the safety profile is well covered, and an output schema exists so return values need no explanation. The remaining gap is the tweet body parameter itself, whose length limits and format are left entirely to the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the single parameter is never mentioned in the description, so nothing clarifies that "text" is the tweet body or why maxLength is 25000 rather than the usual tweet limit. With one required parameter and zero schema documentation, the description should have compensated and does not.

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 tweet" is a specific verb+resource that unambiguously separates this tool from deleteTweet, getTweet and searchTweets. It does not explicitly name a sibling or contrast with one, which keeps it just below the top mark.

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?

The description supplies real preconditions: it is disabled unless TWITTER_ENABLE_WRITE=true and requires user authorization before calling, plus retry guidance when the outcome is unknown. It gives no explicit alternative tool for non-publishing needs, but for a create-only tool the when-not condition is clearly stated.

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