Skip to main content
Glama

List LLM usage

stack_llm_usage_list
Read-only

List per-call LLM usage records for the customer-key gateway and STACK-key product calls. Each row names the product surface, provider payer, STACK-fee payer, model, tokens, provider cost, STACK fee, total cost, wallet hold, streaming flag, and mission binding. Cursor-paginated, newest first. Returns only the calling account's records.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stack_llm_usage_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size (default 20, max 100)
sinceNoISO timestamp lower bound on created_at (inclusive)
untilNoISO timestamp upper bound on created_at (exclusive)
cursorNoPagination cursor from prior response next_cursor
agent_idNoFilter to a single agent
providerNoFilter by provider
mission_idNoFilter to calls bound to a specific mission
passport_jtiNoFilter to a single passport

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), and the description adds genuine context beyond them: cursor pagination, newest-first ordering, and an explicit tenancy boundary ('only the calling account's records'). It also enumerates the paylaod fields, which substitutes for the absent output schema. What it omits is default/max page size behavior and what next_cursor looks like, but the annotations lower the bar.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the purpose, followed by the returned fields and then pagination/tenancy constraints. The field enumeration is long but earns its place by compensating for the missing output schema; nothing is redundant with the annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter read tool with no output schema, the description covers purpose, tenancy scope, ordering, pagination, and the shape of each returned row. The only meaningful gap is the lack of explicit routing guidance against the summary sibling, which is a usage-guideline concern rather than completeness of the tool's own contract.

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% and all 8 parameters carry their own descriptions, including the enum on provider, so the schema does the heavy lifting. The description adds only indirect hints, mentioning 'mission binding' (mission_id) and 'provider payer'/'STACK-fee payer' (provider) without explaining filter syntax or timestamp formats. Baseline 3 applies.

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?

The description gives a specific verb and resource: 'List per-call LLM usage records', and narrows the scope to 'customer-key gateway and STACK-key product calls'. The word 'per-call' implicitly distinguishes it from the sibling stack_llm_usage_summary, but the description never names that alternative, 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 Guidelines3/5

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

Usage is implied by 'per-call usage records' and the scoping line 'Returns only the calling account's records', which tells the agent what it will and won't see. However, there is no explicit statement about when to choose this over stack_llm_usage_summary or stack_proxy_usage, and no prerequisites are given.

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.