Skip to main content
Glama

get_post_metrics

Read-onlyIdempotent

Per-post engagement metrics (impressions, likes, comments/replies, shares, saves, views, clicks, engagementRate) for one or more post ids, returned as {results: [{post_id, ...metrics}]}; a failed lookup carries success:false and an error instead. Only the first 20 ids are used. Metrics are ingested from each platform by a periodic sync, so very recent posts may return empty until the next sync cycle. Use get_engagement_summary for the org-wide aggregate instead. CAPABILITY: read: side-effect-free.

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": {
      "post_ids": "<post_ids>"
    },
    "name": "get_post_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
post_idsYesIds of the posts to fetch metrics for, from list_posts. Ids beyond the first 20 are ignored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / post_ids / description
      Previous value: -"TimeToPost post ids (1..20)"New value: +"Ids of the posts to fetch metrics for, from list_posts. Ids beyond the first 20 are ignored."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the 20-id truncation, the partial-failure shape (success:false with an error per entry), and the periodic-sync freshness caveat that explains empty results for recent posts. Annotations already cover readOnly/idempotent/openWorld, so the description is adding genuinely new operational context; a minor gap is no mention of pagination or rate limits.

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?

Front-loaded with metrics and return shape, then failure mode, limits, and freshness – a sensible ordering with no filler sentences. The semicolon-chained single paragraph is dense and could be split for scanability, but every clause earns its place.

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

Completeness5/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 with no output schema, the description supplies return structure, failure semantics, truncation behavior, and data-freshness expectations. An agent has everything needed to call it correctly and interpret empty results without further discovery.

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 100%, so the single post_ids parameter is already documented, but the description reinforces the 20-id cap and frames post_ids as the identifier coming from list_posts, which disambiguates what kind of id is expected. The added meaning is real but partly duplicative of the schema text.

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?

Specific verb and resource (per-post engagement metrics) with an explicit enumeration of the metrics returned and the exact response envelope {results: [{post_id, ...metrics}]}. It also names the sibling it is not (get_engagement_summary) so an agent can distinguish the two without opening either schema.

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?

Explicitly routes org-wide aggregate needs to get_engagement_summary, which is a clear alternative-and-condition statement. It does not spell out when-not to use this tool in other cases (e.g., bulk reporting across many posts), so it stops short of full 5-level guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.