Skip to main content
Glama

Cloud for Bots

ledger

[bot-ledger] Run ledger and cost view across all your bots. Actions: record (bot, status ok|failed|running|skipped, run_id?, kind?, usd?, tokens_in?, tokens_out?, model?, ms?, note?), feed (since?, bot?, status?, limit?) = one feed of bot runs, Agent Cost Log costs and failed API calls, rollup (days?) = per day per bot runs, failures and USD.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
msNo
botNo
usdNo
daysNo
kindNo
noteNo
limitNo
modelNo
sinceNo
actionYes
run_idNo
statusNo
tokens_inNo
tokens_outNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses meaningful behavior per action (record writes a run with status/usd/tokens; feed returns bot runs plus Agent Cost Log costs and failed API calls; rollup aggregates per day), but omits permission requirements, mutation side effects, and rate/limit behavior.

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 purpose followed by tightly packed per-action parameter lists; dense but every clause carries information. The run-on style is slightly hard to parse but wastes little.

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 14-parameter, three-action tool with no annotations and no output schema, the description is fairly complete: it covers all actions and squats each parameter into its action context. Missing only return-shape and permission/limit detail, which the tool's simplicity partly excuses.

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 0%, so the description must compensate, and it largely does: it assigns parameters to each action (record takes bot/status/run_id/kind/usd/tokens/model/ms/note; feed takes since/bot/status/limit; rollup takes days) and supplies the status enum values. This mapping is information the flat schema does not convey.

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 resource (bot run ledger + cost view) and enumerates three concrete actions (record, feed, rollup). It's clear what the tool does, though it does not explicitly differentiate itself from cost-related siblings like budget_record or budget_budget_status.

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?

The action list implies when each mode applies (record a run, read a feed, aggregate by day), but there is no explicit when-to-use guidance or routing against sibling tools that also touch budgets/costs. Usage must be inferred from the action semantics.

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.

Resources