Skip to main content
Glama

x_publish_post

Destructive

Publish a post to the connected X (Twitter) account with optional media. Text can include mentions, hashtags, and URLs. Media files are uploaded via v2 chunked upload. Returns tweet_id and URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesPost text (required). X enforces per-account character limits.
account_idNoX account: numeric channel account ID or @handle (optional; defaults to workspace's sole X account).
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.
media_file_idsNoDialogBrain file IDs to attach (optional, max 4 per post).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / in_workspace
      Added value: +{
      +  "description": "Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.",
      +  "type": "integer"
      +}
  2. Added
  3. Removed
  4. Changed1 schema field changed
    • changedInput schema / properties / account_id / description
      Previous value: -"X account ID (optional; defaults to workspace's sole X account)."New value: +"X account: numeric channel account ID or @handle (optional; defaults to workspace's sole X account)."
  5. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely new behavior: the v2 chunked upload path for media, the fact that text supports mentions/hashtags/URLs, and the return payload (tweet_id and URL). It does not explain irreversibility or failure modes, but it goes beyond the annotations.

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?

Three short sentences, front-loaded with the action and scoped by media. The return-value sentence earns its place because there is no output schema. Minor redundancy in listing content types, but no real waste.

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?

With no output schema, the description correctly states what comes back (tweet_id and URL), and the media upload mechanism is disclosed. Parameters are fully covered by the schema and safety hints by annotations. It stops short of stating auth/permission requirements or failure behavior for a public, destructive publish.

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 all four parameters are already documented, including the media cap and account_id defaulting. The description only adds 'Text can include mentions, hashtags, and URLs,' which is minor. Baseline 3 applies when the schema does the heavy lifting.

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+resource+target ('Publish a post to the connected X (Twitter) account') and immediately scopes it with 'with optional media.' This cleanly separates it from siblings like instagram_publish_media or threads_channel_publish_post without the agent needing to open a schema.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no named alternative. The description implies the precondition of a 'connected X account' but never says what to do if none is connected, nor when to prefer this over other publishing tools. Only implicit usage context is present.

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.