Skip to main content
Glama

Portkey MCP by usefulapi

Get analytics group

portkey_get_analytics_group
Read-only

Get grouped analytics (aggregated by models, users, or metadata) over a time window. Portkey: GET /analytics/groups/{group}.

Input Schema

NameRequiredDescriptionDefault
groupYesDimension to group the analytics by.
page_sizeNoNumber of records per page. Default 50.
current_pageNoPage number (0-based) for pagination. Default 0.
time_of_generation_maxYesEnd of the window (ISO8601, format YYYY-MM-DDTHH:MM:SS±HH:MM).
time_of_generation_minYesStart of the window (ISO8601, format YYYY-MM-DDTHH:MM:SS±HH:MM).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

readOnlyHint=true already establishes this as a safe read, so the description's burden is lower. It adds the underlying endpoint and the meaning of the grouping dimension, but says nothing about pagination behavior, result caps, or timeframe limits beyond the required window.

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?

Two short sentences, purpose front-loaded, with the endpoint as trailing reference. Nothing wasteful and nothing buried.

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?

For a read-only, 5-parameter, 100%-documented schema the definition is functionally sufficient, but with no output schema the description gives no hint at the shape of grouped results, and it omits any mention of paging despite two pagination parameters.

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 the only enum (group) and both ISO8601 bounds fully documented in the schema. The description restates the grouping dimensions and time window but adds no syntax, defaults, or format detail beyond what the schema already provides.

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?

States a specific verb and resource ('Get grouped analytics') plus the three grouping dimensions and the time-window scope, which is more precise than a generic analytics fetch. However, it never distinguishes itself from the sibling portkey_get_analytics_graph, so an agent must infer the difference from the name alone.

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 guidance on when to use grouped analytics versus the graph variant, nor any prerequisites, account scope, or exclusions. The agent is left to guess from the names.

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.