Skip to main content
Glama

Amberflo MCP by usefulapi

Explain usage

amberflo_explain_usage
Read-only

Explain/drill into the raw meter events behind a meter's usage over a time range — useful to debug why a number looks off. API: POST /usage/explain.

Input Schema

NameRequiredDescriptionDefault
filterNoDimension filter: map of dimension name -> allowed values.
group_byNoDimension names to group by, e.g. ["customerId"].
take_limitNoReturn only the top N records.
aggregationNoAggregation function: SUM | COUNT | MIN | MAX.
meter_api_nameYesThe meterApiName to explain (from amberflo_list_meters).
end_time_in_secondsNoRange end, unix epoch seconds. Defaults to now if omitted.
start_time_in_secondsYesRange start, unix epoch seconds (inclusive).

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

A3.7/5.0
Behavior3/5

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

readOnlyHint=true already establishes this is a safe read, and the description usefully adds that the response is raw meter events rather than aggregates. It discloses nothing about pagination or the effect of take_limit on the event list, and gives no auth or rate-limit context for a tool that returns potentially large event sets.

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 tight sentences: the purpose and drill-down scope come first, the debugging use case second, and the endpoint mapping ('POST /usage/explain') closes it. No filler or redundancy.

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 7-parameter tool with a nested filter object, an enum, and no output schema, the description covers intent and use case but says nothing about the shape or volume of returned raw events, which is the one thing an agent cannot recover from structured fields here.

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%, including per-parameter docs for meter_api_name, time range, filter, group_by, aggregation and take_limit, so the baseline is 3. The description adds no syntax, default, or interaction details (e.g. how aggregation interacts with raw event output) 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: 'explain/drill into the raw meter events behind a meter's usage over a time range.' The emphasis on raw meter events implicitly distinguishes it from the aggregate siblings amberflo_get_usage and amberflo_get_all_usage, but those siblings are never named, so the differentiation is left to inference.

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

Usage Guidelines4/5

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

'Useful to debug why a number looks off' gives a concrete trigger scenario for reaching for this tool rather than a plain usage query. It stops short of stating exclusions or naming the alternative tools (get_usage / get_all_usage) that an agent should use for aggregated numbers.

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.