Skip to main content
Glama
veniceai

Venice MCP Server

Official
by veniceai

Venice Billing Usage History

venice_billing_usage_history
Read-onlyIdempotent

Fetch detailed billing usage history in ascending timestamp order with cursor pagination, using filters or cursors; requires an ADMIN API key.

Instructions

Walk detailed billing usage in ascending timestamp order using cursor pagination. Supports complete JSON or upstream CSV pages, defaulting to 10 rows. Pages exceeding 64 KiB fail without returning partial rows or a next cursor. On continuation, send cursor without the original filters; CSV nextCursor values already encode format=csv so a cursor-only follow-up stays on text/csv. This uses /billing/usage-history, never deprecated /billing/usage. ADMIN API key required — inference keys cannot call this endpoint. This endpoint does not accept x402 wallet auth.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cursorNoOpaque nextCursor from the previous page. CSV pages return a csv: prefix so continuation stays on text/csv. Cannot be combined with filters or page_size.
formatNoDefaults to json. Optional on continuation; CSV nextCursor values already stay on CSV.
currencyNo
page_sizeNoFirst-page row count. Defaults to 10. Complete pages larger than 64 KiB are rejected; use smaller pages or narrower timestamp filters.
end_timestampNoExclusive first-page upper bound, ISO 8601 UTC with Z suffix.
start_timestampNoInclusive first-page lower bound, ISO 8601 UTC with Z suffix.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations (which only cover read-only/idempotent safety) by disclosing the 64 KiB page-failure mode with no partial rows or next cursor, the cursor-format coupling, ascending ordering, and the ADMIN-key vs inference-key and x402 auth restrictions. These are exactly the behavioral traits an agent cannot infer from structured fields.

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?

Front-loaded with the core purpose and pagination model, then layered constraints, with no filler sentences. It is dense and mostly non-redundant, though a couple of points (default 10 rows, cursor/format coupling) restate what the schema already says.

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

Completeness5/5

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

For a paginated billing tool with no output schema, it covers pagination mechanics, failure behavior, auth requirements, and continuation semantics thoroughly. An agent has everything needed to call it correctly across first-page and continuation scenarios.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 83%, so the schema carries most parameter meaning. The description still adds value by explaining that cursor continuation drops filters and that CSV cursors persist format=csv, which clarifies how cursor interacts with the other parameters beyond the schema text.

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 (walk) and resource (billing usage) plus ordering (ascending timestamp) and mechanism (cursor pagination), which is precise enough to act on. It does not, however, explicitly distinguish itself from the sibling venice_billing_usage_analytics, so the differentiation is implied rather than named.

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?

Gives strong operational guidance: cursor continuation must omit original filters, CSV cursors encode format=csv, and the endpoint is explicitly not the deprecated /billing/usage. It also states the ADMIN key requirement and that x402 wallet auth is unsupported, which routes the caller correctly, though it never names the analytics sibling as the alternative for aggregated data.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.