Skip to main content
Glama
Twitter MCP Server

Twitter MCP Server

by takiAA

deleteTweet

Destructive

Delete a tweet you own by ID or URL using the configured write account; explicit user authorization is required. Check unknown outcomes before retrying.

Instructions

Delete an owned tweet by ID or URL using the configured write account. Requires explicit user authorization. Disabled unless TWITTER_ENABLE_WRITE=true. Unknown outcomes must be checked 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": {
      "tweetId": "<tweetId>"
    },
    "name": "deleteTweet"
  }
}

Input Schema

NameRequiredDescriptionDefault
tweetIdYes

Output Schema

NameRequiredDescriptionDefault
idYes
sourceYes
statusYes
accountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=false, openWorld=true, so the safety profile is covered structurally. The description adds genuinely new behavior: an auth requirement, a deployment gate via an env var, and an operational hazard about ambiguous outcomes before retry. It does not say what error results from deleting a non-owned tweet, which is the remaining gap.

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 short front-loaded sentences; the core action comes first and the constraints follow in priority order. Slightly telegraphic phrasing ('Unknown outcomes must be checked') costs a little readability but wastes no words.

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 described, and annotations cover destructiveness and non-idempotency. Auth, config gating, and retry handling are all present. The one omission is failure semantics (non-owned tweet, already-deleted tweet), which matter for a destructive one-param 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?

With 0% schema description coverage and a bare 'tweetId' string property, the description carries the full burden and does add meaning: the parameter accepts an ID or a URL. It does not clarify the accepted URL form (e.g., status-link shape) or what happens with a malformed value, so the compensation is useful but incomplete.

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?

States a specific verb and resource ('Delete an owned tweet'), the lookup key ('by ID or URL'), and the operating identity ('configured write account'). The ownership constraint plus delete verb separates it cleanly from getTweet/sendTweet siblings without needing to name them.

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?

Gives concrete preconditions for use: explicit user authorization, and the tool being disabled unless TWITTER_ENABLE_WRITE=true. It also gives a post-call rule ('check unknown outcomes before retrying'). It stops short of stating any when-not-to-use case or naming alternatives, though siblings are read/send tools rather than substitutes.

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