Skip to main content
Glama

Check credit usage

talonic_get_usage
Read-only

Read per-function credit consumption over a trailing window to see which operations, such as extraction, structuring, or intelligence, drive your spend most.

Instructions

Read the workspace's per-function credit consumption over a trailing window: where the credits actually went.

USE WHEN: the user asks what they have spent credits on, or you want to see which function (extraction, structuring, intelligence ops) dominates spend. NOT FOR: the remaining balance (use talonic_get_balance) or per-unit rates (use talonic_get_pricing). ARGS: days (optional, default 30, clamped 1-365). RETURNS: period_days, total_credits, and by_function[] — each { operation_type, operations, credits }, highest spend first.

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": "talonic_get_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoTrailing window in days (default 30).

Output Schema

NameRequiredDescriptionDefault
by_functionYesPer-function breakdown, highest spend first.
period_daysYesLength of the reporting window in days.
total_creditsYesTotal credits consumed across all functions in the window.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.70

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and closed-world scope, so the safety profile is covered. The description still earns credit by disclosing window semantics (default 30, clamped to 1-365) and result ordering (highest spend first), which annotations cannot express. It stops short of noting anything about auth scope or aggregation caveats.

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?

Labeled blocks (USE WHEN / NOT FOR / ARGS / RETURNS) put the disambiguating information up front with no filler. Every line carries distinct information an agent needs before calling.

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?

For a one-parameter read tool with a full output schema and safety annotations, the description covers routing, window behavior, and the shape of the breakdown. Nothing required to invoke it correctly or interpret the result is missing.

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 description coverage is 100% and the single parameter's bounds and default are already in the schema, so the ARGS line largely restates structured data. The phrase 'trailing window' does clarify that the range is relative rather than calendar-aligned, but that is a marginal addition.

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?

States a specific verb and resource ('Read the workspace's per-function credit consumption over a trailing window') and adds a plain-language gloss ('where the credits actually went'). The NOT FOR clause names the two nearest siblings, so the agent can separate spend breakdown from balance and rates without opening a 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?

Explicit USE WHEN names the triggering user question and the analytic intent (which function dominates spend). NOT FOR routes to talonic_get_balance and talonic_get_pricing by name with the condition that selects them, leaving no inference required.

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