Skip to main content
Glama
x-agent-kit

x-agent-kit

by karthikrshet

x_post

Publishes one approved post to X, optionally quoting or replying to a specific post. Use only after the user confirms the exact text; draft replies for authors who have not mentioned or quoted you.

Instructions

Publish a single post to X. Only call after the user approved the exact text. Note: X only allows API replies (reply_to) to posts whose author mentioned or quoted you; for anyone else, give the user a draft to paste.

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": {
      "text": "<text>"
    },
    "name": "x_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
quoteNoPost ID to quote
reply_toNoPost ID to reply to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does real work: it discloses a surprising platform-level constraint on reply_to and defines the correct non-calling behavior in that case. It stops short of stating that the post is public/permanent and non-reversible, and says nothing about what happens on API failure or whether a post ID is returned.

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, front-loaded with the action, then the precondition, then the caveat. Every clause is load-bearing and nothing is repeated from the schema or title.

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 three-parameter mutation with no output schema, the description covers the risky parts (approval gate, reply eligibility, fallback). The remaining gap is the return behavior — the agent is not told whether it receives a post ID it could later feed into quote, reply_to, or a delete call.

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?

The schema already documents quote and reply_to (67% coverage), but the description adds meaning the schema cannot: the eligibility restriction on reply_to targets, which is the main way an agent gets this call wrong. It also implies "text" is sent verbatim ("the exact text"), suggesting no auto-formatting is applied.

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?

"Publish a single post to X" gives a specific verb (publish) and resource (post), and the word "single" distinguishes it from the x_post_thread sibling in the same catalog. An agent can tell immediately what this does and that it is not a thread-creating tool.

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?

It states a hard precondition ("only call after the user approved the exact text") and an explicit when-not with a fallback action (for authors who never mentioned/quoted you, give the user a draft to paste instead of calling). Both the trigger and the exclusion are spelled out rather than inferred.

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