Skip to main content
Glama

Publish a post

publish_post
Destructive

Publish a post to the user's LinkedIn or Twitter account immediately. Call it once WITHOUT confirmation_token to get a preview and a token, show the user exactly what would be posted and to which account, then call it again with the token only if they agree. On Twitter, separating blocks of text with a line containing only three dashes posts them as a chained thread.

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": {
      "content": "<content>",
      "platform": "<platform>"
    },
    "name": "publish_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoTwitter only. long_post is one post up to 25,000 characters and needs X Premium. Default post.
contentYesThe exact post text. Under 3000 characters for LinkedIn.
platformYesWhich platform to post to.
signatureNoOptional. "none" posts without the profile's signature. Leave it out otherwise.
account_idNoThe connected account to post to, from list_profiles. Only needed when more than one account is connected on that platform.
made_with_aiNoTwitter only. Adds Twitter's Made with AI label to the post. Only when the user asks for it.
reply_settingsNoTwitter only. Who can reply. Default everyone. On a thread it applies to the first post.
confirmation_tokenNoLeave this out on the first call. The tool then returns a preview and a token without posting anything. Pass the token back, with identical arguments, only after the user has confirmed.

Output Schema

NameRequiredDescriptionDefault
urlNoThe live post, once published.
kindYespost_preview: nothing has been posted yet. post_result: the post went out or was queued.
partsNoThe post exactly as it will go out. More than one part is a Twitter thread.
actionYesThe tool this card belongs to.
lengthNo
statusYes
platformYes
expires_atNoWhen this preview stops being confirmable, UTC ISO-8601.
see_more_atNoLinkedIn only: the character in the post where "see more" falls on a computer.
account_nameYesThe connected profile's handle or name, as the user sees it.
calendar_urlNoVoiceMoat's calendar, once scheduled.
scheduled_forNoUTC ISO-8601. schedule_post only.
duplicate_minutes_agoNoSet when this exact text went out to this account that many minutes ago.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "Twitter only. long_post is one post up to 25,000 characters and needs X Premium. Default post.",
      +  "enum": [
      +    "post",
      +    "long_post"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / made_with_ai
      Added value: +{
      +  "description": "Twitter only. Adds Twitter's Made with AI label to the post. Only when the user asks for it.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / reply_settings
      Added value: +{
      +  "description": "Twitter only. Who can reply. Default everyone. On a thread it applies to the first post.",
      +  "enum": [
      +    "everyone",
      +    "following",
      +    "mentionedUsers",
      +    "subscribers",
      +    "verified"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / signature
      Added value: +{
      +  "description": "Optional. \"none\" posts without the profile's signature. Leave it out otherwise.",
      +  "enum": [
      +    "none"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "account_name": {
      +      "description": "The connected profile's handle or name, as the user sees it.",
      +      "type": "string"
      +    },
      +    "action": {
      +      "description": "The tool this card belongs to.",
      +      "enum": [
      +        "publish_post",
      +        "schedule_post"
      +      ],
      +      "type": "string"
      +    },
      +    "calendar_url": {
      +      "description": "VoiceMoat's calendar, once scheduled.",
      +      "type": "string"
      +    },
      +    "duplicate_minutes_ago": {
      +      "description": "Set when this exact text went out to this account that many minutes ago.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "expires_at": {
      +      "description": "When this preview stops being confirmable, UTC ISO-8601.",
      +      "type": "string"
      +    },
      +    "kind": {
      +      "description": "post_preview: nothing has been posted yet. post_result: the post went out or was queued.",
      +      "enum": [
      +        "post_preview",
      +        "post_result"
      +      ],
      +      "type": "string"
      +    },
      +    "length": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "limit": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "longest_part": {
      +          "description": "True for a thread: used is its longest part.",
      +          "type": "boolean"
      +        },
      +        "used": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "used",
      +        "limit",
      +        "longest_part"
      +      ],
      +      "type": "object"
      +    },
      +    "parts": {
      +      "description": "The post exactly as it will go out. More than one part is a Twitter thread.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "platform": {
      +      "enum": [
      +        "linkedin",
      +        "twitter"
      +      ],
      +      "type": "string"
      +    },
      +    "scheduled_for": {
      +      "description": "UTC ISO-8601. schedule_post only.",
      +      "type": "string"
      +    },
      +    "see_more_at": {
      +      "description": "LinkedIn only: the character in the post where \"see more\" falls on a computer.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "status": {
      +      "enum": [
      +        "confirm_required",
      +        "published",
      +        "scheduled"
      +      ],
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "The live post, once published.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "kind",
      +    "action",
      +    "status",
      +    "platform",
      +    "account_name"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description adds the key fact those annotations cannot convey: the first invocation is effectively a dry run that returns a preview and token without posting. It also discloses the Twitter thread-splitting convention (blocks separated by a line of three dashes), which is real behavioral detail beyond structured fields. The remaining gap is that it doesn't say the post is publicly irreversible or what permissions/scopes are needed, keeping it just 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?

Three sentences, each doing distinct work: purpose first, then the confirmation protocol the agent must follow, then the one non-obvious content formatting rule. No redundancy with the schema and nothing that could be cut without losing guidance.

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

Completeness5/5

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

For a destructive, multi-platform publish tool with eight parameters, the description covers the highest-risk unknown (that nothing is posted on the first call) and the confirmation handshake, while an output schema exists to explain the returned preview and token. Everything an agent needs to call it safely is present.

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%, so the baseline is 3; the description still adds meaning by explaining how content is interpreted on Twitter (dash-separated blocks become a chained thread) and by constraining confirmation_token to be passed with identical arguments. Platform-specific nuances such as format or reply_settings are not elaborated further, which the schema already handles.

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 (publish a post) plus the delivery targets (LinkedIn or Twitter) and the timing qualifier 'immediately', which implicitly separates it from the sibling schedule_post. An agent can identify the tool's job 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?

Gives an explicit two-step protocol: call once without confirmation_token, show the user the preview, then call again with the token only if they agree. It is clear on how to proceed and when not to proceed, but it never names alternatives such as schedule_post for future publishing, so the sibling routing is left implicit.

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