Skip to main content
Glama
x-agent-kit

x-agent-kit

by karthikrshet

x_format_post

Formats draft text into ready-to-post X content for basic or premium tiers, then checks hook, question, link placement, hashtags, bait, and skimmability. Does not publish.

Instructions

Shape text into a ready-to-post X format for the account tier (basic: 280 per post, threads; premium: long posts up to 25,000) and check it against what X's ranking rewards (hook, question, link placement, hashtags, bait, skimmability). Does not post.

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_format_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
tierNoDefaults to X_ACCOUNT_TIER (basic)
formatNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/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 burden and does disclose the two most decision-relevant traits: tier-dependent limits (280 per post with threads vs. long posts up to 25,000) and that no write/publish occurs. It is weaker on what is actually returned (rewritten text, a checklist, or a pass/fail verdict) and whether the text is modified in place, both of which remain inferred.

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?

A single front-loaded sentence with the tier rules in a parenthetical and the non-posting caveat last, so nothing is wasted. The nested parentheses make it slightly dense to parse on first read, but every clause adds information.

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

Completeness3/5

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

For a 3-parameter, no-annotation, no-output-schema tool, the definition covers purpose, tier constraints, and side-effect safety. It is incomplete on the return shape and on the 'format' parameter's four modes, which an agent would need to choose correctly.

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 only 33% – only 'tier' is documented in the schema – and the description adds real meaning for tier by spelling out basic vs. premium limits. However, the 'format' enum (auto/single/thread/long) is never explained in either place, leaving the distinction between 'auto' and 'single' to guesswork.

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 pair ('Shape text into a ready-to-post X format') plus the secondary function ('check it against what X's ranking rewards'), and enumerates the concrete checks (hook, question, link placement, hashtags, bait, skimmability). The closing 'Does not post.' cleanly separates it from x_post, x_post_thread, and x_queue_add.

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?

'Does not post.' gives a clear exclusion that implies the pre-post workflow, and naming the account tiers tells the agent when each limit applies. It stops short of explicitly naming the sibling to call afterward (e.g., x_post) or stating prerequisites/ordering, so it is clear context without full routing guidance.

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