Skip to main content
Glama

Get daily call metrics

get_daily_analytics
Read-onlyIdempotent

Get daily call metrics

Returns one row of metrics per calendar day, oldest day first, ready to plot as a time series. The figures are read live from the conversation records, so a conversation is counted as soon as it has ended, and the voice calls, chat sessions and avatar sessions of the account each count as one call. Cost is in USD, as the voice engine reports it. Days with no activity are absent from the result rather than present as zeroes. The window is the last days days counted back from now, optionally narrowed to a single agent. The applied days value and agentId are echoed in the response, which matters because an out-of-range or non-numeric days is silently replaced by 30 rather than rejected.

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

Input Schema

NameRequiredDescriptionDefault
daysNoSize of the window in days. Must be between 1 and 365; a value outside that range, or one that is not a number, falls back to 30 without an error. Check the `days` field of the response for what was used.
agentIdNoRestrict the series to one voice agent, by its `agent_42` identifier or the bare number. Omit for the whole account. No error is raised for an unknown agent, the series is simply empty.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, the description discloses real behavioral traits: figures are read live and include ended conversations, voice/chat/avatar sessions each count as one call, cost is in USD, days with no activity are omitted rather than zero-filled, and out-of-range `days` is silently coerced to 30. The silent-coercion and 'empty series for unknown agent' details are exactly the non-obvious behavior an agent needs before calling.

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?

Purpose is front-loaded, followed by output shape and then behavioral caveats, which is a sensible order. It is a dense single block and repeats the `days` fallback that the schema already states, but nearly every sentence carries useful information.

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?

With no output schema and no annotations about return values, the description carries the burden and does so: row-per-day shape, ordering, sparse-day handling, currency, and echoed parameters are all covered. Nothing essential for correct invocation or interpretation is missing.

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 fallback-to-30 rule and the echo of applied values are already documented in the schema. The description restates those rather than adding new meaning, so the baseline of 3 is appropriate; the only genuinely extra semantics (cost in USD, session counting rule) are not parameter-specific.

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 gives a specific verb and resource ('Get daily call metrics') and pins the output shape precisely: one row per calendar day, oldest day first, suitable as a time series. It does not explicitly contrast itself with siblings like get_analytics_summary or get_agent_analytics, which apparently also cover call metrics, so differentiation is only implied by the per-day granularity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied rather than stated: 'ready to plot as a time series' and the optional narrowing 'to a single agent' tell an agent roughly when this fits. There is no explicit when-to-use/when-not-to-use guidance and no named alternative for aggregate or per-agent views.

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.