Skip to main content
Glama

get_analytics

Read-onlyIdempotent

Retrieve aggregate simulation analytics for a custom time window: total runs, avg confidence, action distribution, and p95 latency. Get high-level usage trends instead of individual run details.

Instructions

Get aggregate usage analytics over the organization's simulation runs inside a lookback window: total_simulations, avg_confidence, action_breakdown (how recommended actions distribute), and latency_p95_ms. days sets the window (default 30, range 1-365). Use list_runs for individual runs instead of aggregates. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoLookback window in days

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is fully covered. The description adds useful context about the lookback window and returned metrics, but does not describe response format, pagination, or failure behavior. This is helpful but not rich beyond annotations.

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 short sentences front-load the purpose, then list metrics, parameter details, and the alternative tool. Every sentence earns its place; the only redundancy is 'Read-only,' which mirrors the annotation but does not bloat the description.

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-optional-parameter read-only analytics call with no output schema, the description names all returned metrics, documents the window default and range, and gives an alternative. An agent can invoke it and interpret the response without needing further information.

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 default, so the baseline is 3. The description adds the explicit range 1-365 and confirms that days controls the window, going beyond the schema's terse 'Lookback window in days'.

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 opens with a specific verb and resource ('Get aggregate usage analytics over the organization's simulation runs'), enumerates the returned metrics, and explicitly frames this as aggregates versus individual runs. This makes it clearly distinguishable from list_runs and other siblings.

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

Usage Guidelines5/5

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

It explicitly says 'Use list_runs for individual runs instead of aggregates,' giving a direct alternative and the condition that selects it. The aggregate-versus-individual contrast tells the agent when this tool is appropriate versus its closest sibling.

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

Deploy Server

Other Tools