Skip to main content
Glama

get_metrics

Retrieve engagement metrics for X (Twitter) posts, including impressions, likes, retweets, replies, quotes, and bookmarks, to analyze post performance and audience interaction.

Instructions

Get engagement metrics for a specific post (impressions, likes, retweets, replies, quotes, bookmarks). Requires the tweet to be authored by the authenticated user for non-public metrics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tweet_idYesThe tweet ID or URL to get metrics for
Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses key behavioral traits: it requires the tweet to be authored by the authenticated user for non-public metrics, which is crucial for permission/access context. However, it lacks details on rate limits, error handling, or response format.

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 core purpose and followed by an important constraint. Every sentence earns its place with no wasted words, making it efficient and easy to parse.

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?

Given no annotations and no output schema, the description is moderately complete. It covers purpose and a key constraint, but lacks details on return values (e.g., metric types, units) or other behavioral aspects like pagination or errors, which are important for a metrics tool.

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 100%, so the schema already documents the tweet_id parameter. The description does not add meaning beyond what the schema provides (e.g., format examples or constraints), but it implies the parameter is used to identify the post for metrics retrieval.

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?

The description clearly states the verb 'Get' and the resource 'engagement metrics for a specific post', with explicit examples (impressions, likes, retweets, replies, quotes, bookmarks). It distinguishes from siblings like get_tweet (general tweet data) or search_tweets (multiple tweets) by focusing on metrics for a single post.

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?

The description provides clear context on when to use it: for engagement metrics of a specific post. It implies usage for the authenticated user's tweets for non-public metrics, but does not explicitly state when NOT to use it or name alternatives (e.g., get_tweet for basic data).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Infatoshi/x-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server