Skip to main content
Glama
x-agent-kit

x-agent-kit

by karthikrshet

x_count

Count a draft's X-weighted length (URLs=23, emoji=2) and check it against the account tier limit of 280 or 25,000 before posting.

Instructions

Count a draft's weighted length the way X does (URLs=23, emoji=2) against the account tier's limit (basic 280, premium 25,000).

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

Input Schema

NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/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 non-obvious weighting rules (URLs count as 23, emoji as 2) and the tier thresholds (280 vs 25,000). It also implies a pure, side-effect-free computation via "count," though it never states whether the result is a bare number, remaining characters, or an over-limit flag.

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?

One sentence, front-loaded with the action and resource, with the numeric rules packed into a compact parenthetical. Nothing is wasted and nothing is buried.

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 one-parameter, side-effect-free counting tool with no output schema, the definition covers the input meaning and the computation rules well. The remaining gap is the return shape, which the description leaves unspecified.

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 0% and the single parameter is a bare unlabeled "text," so the description must compensate. It does: "a draft's ... length" identifies text as the post body, and "the account tier's limit" signals that tier is resolved server-side rather than passed as an argument.

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

Purpose4/5

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

"Count a draft's weighted length" is a specific verb+resource pair, and the parenthetical algorithm details make the operation unambiguous. It does not explicitly name a sibling to contrast with, but among a catalog of posting/queueing/metrics tools its scope is self-evidently distinct.

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

Usage Guidelines3/5

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

Usage is only implied: because it counts a "draft," an agent can infer it belongs before posting, but the description never says "call this before x_post" or states any exclusion. No alternative tool is named, so the routing decision still requires inference.

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