Skip to main content
Glama

Get engagement totals

get_engagement_rollup
Read-onlyIdempotent

Use when the user asks how their accounts or posts did over a period, for engagement totals, or for a performance report. Returns engagement totals for the last days (default 30, limited by the plan's history) per metric, platform and account. Posts whose platform did not report a metric are left out of that metric and counted with the reason, never counted as zero.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_engagement_rollup"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoWindow in days, 1 to 366; default 30.

Output Schema

NameRequiredDescriptionDefault
toYes
fromYes
noteNo
postsYes
totalsYes
channelsYes
pipelineNo
platformsYes
windowDaysYes
historyCappedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds genuinely useful semantics beyond that — the 30-day default, the plan-history cap on the lookback — but the strongest disclosure, the missing-metric exclusion rule, largely restates return behavior that the output schema already carries.

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?

Three sentences, front-loaded with the when-to-use trigger, then scope, then the edge-case rule. Every sentence carries information that is not in the schema or annotations.

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 single-parameter, read-only rollup with an output schema, this is complete: the agent knows the default window, the effective cap, the aggregation grain, and how missing data is represented so it won't report false zeros.

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% with a single parameter, so the baseline is 3. The description earns one step above by adding the constraint that the window is capped by the plan's history, which the schema's 1–366 range does not convey.

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?

Names a specific verb and resource (engagement totals) and pins down the output grain: per metric, platform and account. It doesn't name or contrast with the closest sibling, get_post_engagement, so an agent must infer that this is the aggregate rather than the per-post view.

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?

Opens with explicit trigger conditions — 'how their accounts or posts did over a period', 'engagement totals', 'performance report' — which map cleanly to real user phrasings. It gives no when-not-to-use case and names no alternative for per-post detail, which would have pushed it to a 5.

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.