Skip to main content
Glama

Minha CNH

get_credit_balance

Read-only

Current credit balance for the organization, in centavos (prepaid; organizations under contract may have a credit line). creditLineLimit is the negative floor the balance may reach before new reports are blocked (0 = no credit line). Call this after a 402 from request_report: a balance at the floor means it is exhausted — ask your organization admin to top up in the API settings; retrying will not succeed. With a cnh_test_ key the result is synthetic (sandbox: true): sandbox reports never charge, so its 402 comes only from the sandbox's 402 test CPF.

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_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

readOnlyHint already covers the safety profile, yet the description adds real behavioral context: the negative-floor semantics of creditLineLimit, the sandbox:true synthetic result, and why a sandbox 402 is not a balance issue. Dense and useful beyond annotations.

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 with the resource and unit, then trigger semantics, then the sandbox caveat in a logical order. Dense but largely earns its length, though the trailing sandbox/CPF clause is somewhat convoluted.

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?

No output schema exists, so describing the balance unit and the creditLineLimit field is doing the necessary work; the remaining response shape is left implicit, which is a minor gap for a simple read.

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?

Zero parameters, so the baseline of 4 applies; the description instead explains a return field (creditLineLimit) which is valuable but not required by this dimension.

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 resource and scope ("Current credit balance for the organization") plus the unit (centavos) and the prepaid/credit-line distinction, so the agent knows exactly what is returned without ambiguity.

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?

Gives an explicit trigger ("Call this after a 402 from request_report") and an explicit negative case ("retrying will not succeed"), which is strong when-and-why guidance. It stops short of routing against siblings like get_usage, but no sibling is plausibly confusable here.

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