Skip to main content
Glama
runpod

RunPod MCP Server

Official
by runpod

get-billing

Read-only

Retrieve time-bucketed RunPod spend history, aggregated or broken down by resource type. Use parameters to set date range, bucket size, and paginate through results.

Instructions

Get time-bucketed Runpod spend history, either aggregated across all resources or broken down by resource type (pods, serverless, endpoints, network volumes, clusters). v2-only — returns a 501 notice on the v1 API. Records are capped via limit/cursor; narrow the window with startTime/endTime or lastN.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lastNNoReturn the last N buckets of bucketSize, ending with the current one. Mutually exclusive with startTime/endTime.
limitNoMaximum number of items to return (default 20, max 100). Use the returned nextCursor to fetch the next page.
scopeNoWhich billing breakdown to fetch. "all" (default) is the aggregate across every resource.
cursorNoOpaque pagination cursor from a previous response (nextCursor). Omit to start from the beginning.
endTimeNoEnd of the period (RFC 3339), exclusive. Defaults to now. Mutually exclusive with lastN.
startTimeNoStart of the period (RFC 3339, e.g. 2026-05-01T00:00:00Z). Defaults to 30 days ago. Mutually exclusive with lastN.
bucketSizeNoLength of each time bucket. Defaults to day.
Behavior5/5

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

Annotations already declare readOnlyHint=true; description adds critical context about v2-only requirement and 501 error on v1 API. Also mentions record capping and pagination, enhancing transparency beyond annotations.

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 well-structured sentences: first states primary action and scope, second adds version warning and parameter guidance. No redundant information; front-loaded with key purpose.

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?

Lacks description of output format (e.g., what fields are returned per bucket). While pagination and time window are covered, the response structure is omitted, leaving some ambiguity for agent understanding.

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 100% with good descriptions. The tool description adds value by explaining mutual exclusivity of lastN and startTime/endTime, and clarifies pagination cursor usage, making parameter semantics clearer.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves 'time-bucketed Runpod spend history' and explains the aggregation vs breakdown by resource type. It uses specific verbs and differentiates from siblings as the only billing-related tool.

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?

Covers key usage details: v2-only with 501 on v1, pagination via limit/cursor, and time window narrowing via startTime/endTime or lastN. Does not explicitly state when not to use, but alternatives are absent.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/runpod/runpod-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server