Skip to main content
Glama

Retweet a post on X

retweet_on_x
DestructiveIdempotent

Retweet a post (tweetId) from a connected X account, or undo the retweet with undo: true. A retweet is PUBLIC: confirm with the user first.

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": {
      "accountId": "<accountId>",
      "tweetId": "<tweetId>"
    },
    "name": "retweet_on_x"
  }
}

Input Schema

NameRequiredDescriptionDefault
undoNotrue undoes the action.
tweetIdYesId of the post on X.
accountIdYesConnected X account.
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and idempotentHint=true, so the safety envelope is largely covered structurally. The description adds context the annotations cannot express: that the retweet is PUBLIC and therefore requires user confirmation before invocation. It says nothing about rate limits or return values, keeping it short of a 5.

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?

Two sentences, zero waste: the primary action plus undo mode come first, and the consequential safety warning is placed last where it is most likely to be read before calling. Nothing is 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?

For a 4-parameter mutation tool with no output schema but full annotation coverage, the description supplies the two things that matter most: the undo path and the public-visibility/confirmation requirement. What remains unsaid (response shape, per-account limits) is minor against the annotation set.

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 100%, so `tweetId`, `accountId`, `undo` and `idempotencyKey` are all documented in the schema, including the idempotency retry protocol. The description only restates `tweetId` and the `undo` semantics, adding no format or constraint detail beyond the schema — baseline 3 applies.

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 specific verb+resource ('Retweet a post') and immediately names the inverse operation gated by the `undo` flag, so the agent knows exactly what the tool does and that it covers both directions. It is distinguishable from siblings like bookmark_on_x or create_post 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 Guidelines4/5

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

It states the operating condition clearly ('from a connected X account', undo via `undo: true`) and adds an explicit precondition ('confirm with the user first'). It does not name alternative tools for saving or engaging with a post, but the usage context is unambiguous rather than inferred.

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.

Resources