Listmetricdefinitions
listMetricDefinitionsList all available engineering metric definitions.
USAGE - Call this endpoint BEFORE querying metrics (queryPointInTimeMetrics):
Once at start: Call with view='basic' to discover all available metrics - cache this response
Before querying: Call with view='full' and key=METRIC_KEY to get query metadata for only the metrics you need
Use cached metadata to construct valid point-in-time queries
IMPORTANT: Do NOT call view='full' without a key filter. The unfiltered full view is very large.
Cache responses in your context. Only refresh if no longer in your context window or explicitly requested (ex to check if metric readiness has changed).
Query parameters:
view: 'basic' (default) returns minimal info, 'full' includes sources and query metadata
key: Filter metrics by key (supports multiple values and comma-separated lists)
Full view provides query construction metadata:
supportedAggregations: Valid aggregation methods for the metric
orderByAttribute: Attribute path for sorting by metric values
groupByOptions[].key: Valid groupBy keys (use exact values, do NOT guess)
filterOptions[].key: Valid filter keys (use exact values, do NOT guess)
Valid orderBy attributes for metric queries:
orderByAttribute: The metric value itself (returned in full view)
Source attributes: Any attribute from the metric's source (e.g., "source_name.attribute_name")
Dimension attributes: Any attribute from related dimensions (e.g., "source_name.dimension_name.attribute_name")
Filter operators by type (for constructing queries):
STRING: EQUAL, NOT_EQUAL, IS_NULL, IS_NOT_NULL, LIKE, NOT_LIKE, IN, NOT_IN, ANY
INTEGER/DECIMAL/DOUBLE: EQUAL, NOT_EQUAL, IS_NULL, IS_NOT_NULL, GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, IN, NOT_IN, BETWEEN, ANY
DATETIME/DATE: EQUAL, NOT_EQUAL, IS_NULL, IS_NOT_NULL, GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, BETWEEN
BOOLEAN: EQUAL, NOT_EQUAL, IS_NULL, IS_NOT_NULL, IN, NOT_IN
ARRAY: EQUAL, CONTAINS, IN
Error responses:
400: Invalid view parameter (must be 'basic' or 'full')
403: Restricted Feature (contact help@cortex.io)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| view | No | basic | |
| context | Yes | Explain why you're invoking this tool now and how its output will be used. Then state how this call supports your *overall objective* and fits into your broader plan across all tool calls (e.g., why this tool vs. others, and what step it unblocks). Never share any personal details or sensitive information. | |
| session_id | Yes | Session continuity handle, one of two values: the ses_ ID issued for the task underway, or start. This server cannot link your calls between requests on its own, so session continuity travels in this parameter instead. If you were handed a session_id for this task — for example by the agent that spawned you — send that exact value from your first call. Otherwise send start on your first call; the server will issue an opaque correlation ID in the mcp_session field of the result, or in a text block at the start of the result beginning [session_id issued. Then send that exact ses_ value on every later call and hand it to any subagents working the same task. start always begins a new, unrelated task — never send it mid-task. If you send a value this server does not recognize, the result reports it: mcp_session.status of unrecognized, or a text block beginning [session_id unrecognized; re-send the ID issued for this task, or start if none was issued yet. Never invent a ses_ value. |