Skip to main content
Glama

llmkit_cost_query

Read-onlyIdempotent

Query AI cost breakdowns grouped by provider, model, session, or day. Filter by days, provider, or model to track spending.

Instructions

Query cost breakdown grouped by provider, model, session, or day

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupByYesHow to group results
daysNoDays to look back (default 30)
providerNoFilter by provider
modelNoFilter by model

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupByYes
daysYes
breakdownYes
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true. The description adds no extra behavioral context, which is acceptable given annotation coverage, but does not enhance understanding beyond them.

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?

Single sentence efficiently conveys the tool's purpose without unnecessary words. It is front-loaded with the key action and grouping options.

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 a read-only query tool with a comprehensive input schema and an output schema available, the description is complete enough. It covers the main purpose and grouping dimension.

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?

Input schema provides 100% coverage with descriptions for all parameters. The description adds no additional semantic value beyond what the schema already offers; baseline score of 3 is appropriate.

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?

Description clearly specifies verb (Query) and resource (cost breakdown) with grouping options (provider, model, session, day). It effectively communicates the tool's function, though it does not explicitly differentiate from sibling tools like llmkit_usage_stats.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives such as llmkit_budget_status or llmkit_usage_stats. The description lacks context for selection.

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/smigolsmigol/llmkit'

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