Skip to main content
Glama
x-agent-kit

x-agent-kit

by karthikrshet

x_metrics

Retrieve public engagement metrics—likes, reposts, replies, and impressions—for specified X/Twitter post IDs to analyze post performance.

Instructions

Get public metrics (likes, reposts, replies, impressions where available) for post IDs.

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": {
      "ids": "<ids>"
    },
    "name": "x_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations at all, the description carries the full burden of behavioral disclosure. 'Public metrics' and 'where available' hint that some metrics may be absent and that only public data is returned, but nothing is said about auth requirements, rate limits, error behavior, or what happens with invalid/private IDs.

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 no filler. It is efficient, though its brevity is also the source of the missing usage and behavioral detail noted elsewhere.

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 read tool, the description identifies the input (post IDs) and the returned metric names, which partially substitutes for the absent output schema. It is not fully complete on response shape or partial-availability behavior, but the core is covered.

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 0%, so the description must compensate. It does clarify that the array entries are post IDs, which the bare schema does not say, but it omits the 100-item cap, the minimum of 1, and the expected ID format.

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?

States a specific verb ('Get') and resource ('public metrics') and enumerates the returned fields (likes, reposts, replies, impressions), which distinguishes it from siblings like x_count or x_search_recent. It stops short of explicitly naming a sibling alternative, so it lands just under the top mark.

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 guidance on when to call this versus other read tools, no prerequisite that post IDs must come from elsewhere (e.g. x_search_recent or x_post), and no mention of rate limits or batching strategy. The agent must infer usage entirely.

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