Skip to main content
Glama

Portkey MCP by usefulapi

Get analytics graph

portkey_get_analytics_graph
Read-only

Get a time-series analytics graph for a single metric (cost, requests, tokens, latency, error-rate, cache-hit-rate, …) over a time window. Optionally scope by virtual keys, configs, or metadata. Portkey: GET /analytics/graphs/{metric}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metricYesWhich metric graph to return.
configsNoComma-separated config slugs to scope the graph.
metadataNoJSON string of metadata key/values to scope the graph.
total_unitsNoBucket size for the series, e.g. "day" or "hour".
virtual_keysNoComma-separated virtual key slugs to scope the graph.
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

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.