Skip to main content
Glama

get_analytics

Read-only

Posts, deliveries, published, failed and spend over time (UTC), with a per-brand breakdown.

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

Input Schema

NameRequiredDescriptionDefault
toNoEnd date (UTC), YYYY-MM-DD, inclusive, e.g. "2026-11-30".
fromNoStart date (UTC), YYYY-MM-DD, e.g. "2026-11-01".
brand_idNoBrand id from list_brands.
granularityNoBucket size: "day", "week" or "month". Default "day".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / brand_id / description
      Added value: +"Brand id from list_brands."
    • addedInput schema / properties / from / description
      Added value: +"Start date (UTC), YYYY-MM-DD, e.g. \"2026-11-01\"."
    • addedInput schema / properties / granularity / description
      Added value: +"Bucket size: \"day\", \"week\" or \"month\". Default \"day\"."
    • addedInput schema / properties / to / description
      Added value: +"End date (UTC), YYYY-MM-DD, inclusive, e.g. \"2026-11-30\"."
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered and the description is not required to restate it. It does add genuinely useful behavior context — UTC timezone normalization and per-brand breakdown — but says nothing about default date ranges, aggregation limits, or how missing days are represented.

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 compact sentence with no filler, and the most distinctive facts (metrics, UTC, per-brand) come first. It is telegraphic rather than verb-led, which slightly reduces immediate clarity.

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?

With no output schema, the description carries the burden of explaining the return shape; listing the metrics helps, but it does not say what happens when all-optional from/to are omitted, nor what units 'spend' uses. Adequate for a read-only reporting call, but there are real gaps for a tool whose zero-required-parameter signature invites ambiguous calls.

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%, with formats, enum values and defaults already documented for all four parameters, so the baseline is 3. The description reinforces the UTC time basis and brand dimension but adds no syntax or semantics beyond the schema.

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?

The description names the concrete metrics returned (posts, deliveries, published, failed, spend) and the shape of the result (time series in UTC with a per-brand breakdown), so the agent knows this is a reporting/metrics tool rather than a configuration one. It lacks an explicit verb and never contrasts itself with neighbors like get_usage, so it stops short of a 5.

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 statement of when to reach for this tool versus alternatives such as get_usage or list_posts, and no prerequisites or exclusions are given. Usage must be inferred entirely from the metric list.

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.

Resources