Skip to main content
Glama

Get Credit Costs

get_credit_costs
Read-onlyIdempotent

What each API operation costs, alongside the current balance. Use this to price work before starting it — e.g. to tell the user what analyzing a 10-minute video will cost. Tools are priced individually; see list_tools.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
noteNo
planNo
balanceNo
operationsNo
billingModelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructiveness, so the safety profile is covered. The description adds genuine value beyond that by disclosing that the response pairs per-operation prices with the live balance and that pricing is per-tool rather than global. It says nothing about auth or freshness of the balance, which is a minor gap.

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?

Three short sentences, front-loaded with what is returned, then the use case. The trailing clause 'Tools are priced individually; see list_tools' is slightly ambiguous — it is unclear whether it clarifies the returned data or redirects the caller to another tool for pricing.

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 parameters and an output schema present, the description need only establish what the call is for and what it returns, both of which it does. The only missing piece is disambiguation from get_usage, which shares the billing/balance domain.

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?

The tool takes zero parameters, so the schema requires no parameter explanation and the baseline applies. Nothing in the description claims parameters that do not exist.

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?

The description names the exact payload — per-operation credit costs plus the current balance — which is more specific than a restated name. It does distinguish itself from the tool-listing sibling by pointing to list_tools, but it does not differentiate from get_usage, whose name suggests overlapping territory.

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

Usage Guidelines4/5

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

It gives an explicit use case: price work before starting it, with a concrete example of quoting a 10-minute video analysis. There is no when-not guidance or explicit statement of when a caller should prefer get_usage instead, so it stops short of a 5.

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