Skip to main content
Glama
TwitterAPIs

twitterapis

by TwitterAPIs

twitter_unretweet

Destructive

Undo a retweet from your authenticated account. Provide the tweet ID or URL.

Instructions

Undo a retweet AS your authenticated account. Provide the tweet id or url. Requires write capability behind your key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoTweet/post numeric id (e.g. "1789012345678901234"). Provide exactly one of id or url.
ct0NoOptional. The account's ct0 cookie, paired with auth_token. Sent as the x-ct0 header.
urlNoFull tweet URL, e.g. "https://x.com/elonmusk/status/1789012345678901234". Provide exactly one of id or url.
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.
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.
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, indicating a write/mutation operation. The description adds that write capability is required and that the action is performed 'AS your authenticated account'. It does not elaborate on side effects (e.g., notification to original poster) or authentication details, but the schema provides rich parameter descriptions for cookies and proxy.

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 a single, front-loaded sentence that conveys the essential action and constraint. Every word earns its place; no fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite concise purpose, the description lacks details about expected output (no output schema) and does not mention the optional authentication parameters (ct0, auth_token, etc.) even though they are critical for execution. An agent may not know that those parameters must be supplied for write operations. More context about error handling or success indication would improve completeness.

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% with detailed descriptions for all 7 parameters. The description adds valuable mutual exclusivity constraint for id/url ('Provide exactly one of id or url'), which is not enforced in the schema. This extra clarity improves usability beyond the schema alone.

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 uses a clear verb-resource pair 'Undo a retweet' and specifies 'AS your authenticated account'. It distinguishes from sister tools like twitter_retweet (which does the opposite) and twitter_delete_tweet (which deletes a tweet, not a retweet). The scope is unambiguous.

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 implies the tool is for undoing a retweet, but does not explicitly state when not to use it or list alternatives. However, the action is specific enough that an agent can infer usage context from the name and description. A clear alternative mention is missing.

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