Skip to main content
Glama

bss_total_cost

Retrieve total billed spend for a billing cycle with a per-service cost summary. Answers spend and monthly invoice questions without listing individual resources.

Instructions

Total billed spend for a cycle (YYYY-MM, default current month), with a per-SERVICE summary. The cheap, default answer for spend questions: 'cuánto gasté', 'gasto por servicio', 'la factura del mes'. Does NOT list individual resources — for that use bss_cycle_breakdown. Returns {cycle, total, by_service:[{service_type, label, amount, resource_count}]}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "bss_total_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
cycleNoBilling cycle YYYY-MM (default: current month)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations, so the description carries the burden: it discloses the default cycle behavior, the cost profile ('cheap'), and exactly what data is and is not returned. It stops short of stating access requirements or any caveats about partial/unbilled amounts, which for a billing query would be useful.

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?

Three tightly packed sentences: purpose first, routing guidance second, return shape last. The inline return-shape notation replaces an output schema without wasting words.

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?

There is no output schema, but the description supplies the return structure ({cycle, total, by_service:[...]}) and the field set, which is everything needed to consume the result. For a one-parameter read tool this is fully sufficient.

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?

Schema coverage is 100% and the single 'cycle' property already documents the YYYY-MM format and current-month default, which the description merely restates. No additional syntax or edge-case meaning is added, so baseline 3 applies.

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?

Names a specific resource and scope: total billed spend for a cycle plus a per-service summary. It explicitly separates itself from bss_cycle_breakdown ('Does NOT list individual resources'), so an agent can pick it without opening either schema.

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

Usage Guidelines5/5

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

States it is the 'cheap, default answer for spend questions' and reinforces that with concrete user phrasings ('cuánto gasté', 'gasto por servicio', 'la factura del mes'). It also states the negative condition and names the alternative tool for the resource-level case.

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

Deploy Server

Other Tools