Skip to main content
Glama

X (Twitter) MCP by InsightfulPipe

X Execute Action

execute_action
Destructive

Execute X action (Step 3 (FINAL) of workflow).

REQUIRED: Complete these steps first using query_contexts:

  1. request='accounts' - Get workspace_id, brand_id, account_id AND available_actions

  2. request='actions_details' with actions=['xxxxxx', 'xxxxxx', 'xxxxxx'] - Get detailed body structure for specific action(s) using actions from available_actions

IMPORTANT: Always call step 2 to see the exact body structure before executing.

Rely on info from steps 1-2 to construct the action body. Follow the schema exactly.

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": {
      "body": "<body>"
    },
    "name": "execute_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the agent is warned this is an irreversible open-world mutation without the description repeating it. The description adds valuable procedural disclosure — that the body must be derived from prior context queries and that available_actions constrains which actions are legal. It does not, however, elaborate on consequences of a failed or partial execution, which would matter for a destructive call.

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?

The workflow position is front-loaded and the numbered steps are easy to scan, with no filler prose. The only waste is mild redundancy between the numbered step 2 and the follow-up 'IMPORTANT: Always call step 2' reminder, which is defensible emphasis but repeats information already given.

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?

Given one opaque nested parameter, an output schema that already covers return values, and annotations covering safety, the description supplies exactly the missing piece: how to discover and assemble the body. What remains unaddressed is error/partial-failure behavior for a destructive open-world call, which would be the last gap to close.

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?

There is a single free-form object parameter with additionalProperties=true and 0% schema description coverage, so the schema alone gives no guidance. The description compensates by telling the agent the body shape is dynamic and must be constructed from the output of query_contexts steps 1 and 2 ('Follow the schema exactly'), which is the only actionable instruction available for an open body.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb ('execute') and the workflow position ('Step 3 (FINAL) of workflow') are stated clearly, so an agent knows this is the terminal, mutating step of a three-part sequence. However the resource is described only as 'X action', which restates the tool name rather than naming what kind of entity is being acted upon. The result is a purpose that is locatable in the workflow but vague in substance.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description gives an explicit ordered prerequisite chain: call query_contexts with request='accounts' to obtain IDs and available_actions, then request='actions_details' to obtain the body structure, before ever invoking this tool. It also names the sibling tool (query_contexts) that satisfies each prerequisite, leaving nothing to inference about when this tool is appropriate.

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.