Skip to main content
Glama
chaandannn

nable (finops-mcp)

get_llm_costs

Aggregate AI/LLM spend across providers. View total cost, breakdown by provider and model, daily trends, and cost-saving model recommendations.

Instructions

Aggregate AI/LLM spend across all configured providers, OpenAI, Anthropic, AWS Bedrock, Azure OpenAI, and Vertex AI.

Shows total spend, breakdown by provider, breakdown by model, daily trend, and model-switching recommendations to reduce costs.

Args: days: Lookback window in days (default 30). Ignored if start_date set. start_date: ISO date string (YYYY-MM-DD). Optional. end_date: ISO date string (YYYY-MM-DD). Defaults to today.

Examples: - "How much have we spent on AI APIs this month?" - "What's our total LLM spend across OpenAI and Bedrock?" - "Show AI cost breakdown by model for the last 7 days" - "Which AI models are we spending the most on?"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
end_dateNo
start_dateNo
Behavior4/5

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

No annotations are provided, so the description fully carries the burden. It transparently describes the output: total spend, breakdowns, trends, and recommendations. It is clear that this is a read-only query tool with no side effects.

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?

The description is well-structured with a concise main paragraph, formatted Args section, and relevant examples. Every sentence adds value, and it is appropriately sized.

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?

With no output schema and no annotations, the description covers parameter details, usage context, and examples. It lacks explicit return type description, but for an aggregation tool this is acceptable.

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?

Despite 0% schema description coverage, the description includes an 'Args' section explaining each parameter: days (default 30, ignored if start_date set), start_date, end_date (defaults to today). This adds significant meaning beyond the raw schema.

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 that the tool aggregates AI/LLM spend across all configured providers, listing specific providers (OpenAI, Anthropic, etc.). It distinguishes itself from siblings like 'get_bedrock_costs' or 'get_llm_cost_by_model' by being a comprehensive aggregate view.

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?

Examples provide context for when to use, but there is no explicit guidance on when not to use or comparison to alternatives. The description implies usage for overall spend analysis, but lacks exclusions.

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/chaandannn/finopsmcp'

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