Skip to main content
Glama

get_balance

Read-onlyIdempotent

Retrieve live merchant cash-on-delivery vault balances from Steadfast and check if Pathao, RedX, or Paperfly support balance inquiries, so you know which couriers expose balance data.

Instructions

Retrieve live merchant cash-on-delivery (COD) vault balance from Steadfast, or check provider balance support across Pathao, RedX, Paperfly, or all 4 couriers simultaneously. READ-ONLY FINANCIAL INQUIRY: Steadfast returns live 'amount_bdt' and 'status: OK'; Pathao, RedX, and Paperfly return 'amount_bdt: null' and 'status: UNSUPPORTED_BY_PROVIDER' with merchant portal hints because their public APIs do not expose a balance endpoint.

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

Input Schema

NameRequiredDescriptionDefault
courierNoCourier provider to check balance telemetry for ('steadfast', 'pathao', 'redx', 'paperfly', or 'all'; default: 'all')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.5.5
    • changedInput schema / properties / courier / description
      Previous value: -"Courier provider to check balance for"New value: +"Courier provider to check balance telemetry for ('steadfast', 'pathao', 'redx', 'paperfly', or 'all'; default: 'all')"
    • changedInput schema / properties / courier / enum
      Previous value: -[
      -  "steadfast",
      -  "pathao"
      -]New value: +[
      +  "steadfast",
      +  "pathao",
      +  "redx",
      +  "paperfly",
      +  "all"
      +]
    • changedInput schema / required
      Previous value: -[
      -  "courier"
      -]New value: +[]
  2. Changed6 schema fields changedv2.4.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / courier / default
      Removed value: -"steadfast"
    • addedInput schema / properties / courier / description
      Added value: +"Courier provider to check balance for"
    • changedInput schema / properties / courier / enum
      Previous value: -[
      -  "steadfast",
      -  "pathao",
      -  "redx",
      -  "paperfly"
      -]New value: +[
      +  "steadfast",
      +  "pathao"
      +]
    • addedInput schema / required
      Added value: +[
      +  "courier"
      +]
  3. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses provider-specific behavior and expected return values: Steadfast returns live 'amount_bdt' and 'status: OK', while Pathao, RedX, and Paperfly return null amounts and 'UNSUPPORTED_BY_PROVIDER' with portal hints. This is valuable behavioral context, especially since no output schema exists.

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?

The description is front-loaded with the core purpose and then explains provider-specific returns in a second sentence. Despite some density, every clause adds relevant operational meaning, and there is no redundant filler.

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?

With one optional parameter, no output schema, and annotations covering read-only/idempotent behavior, the description provides the remaining critical context: which providers return live balances versus unsupported statuses. Nothing essential for correct invocation appears to be missing.

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 schema already documents the single 'courier' enum at 100% coverage, but the description adds meaning by mapping each provider option to its expected result. It also clarifies that 'all' checks all four couriers simultaneously, which is useful beyond the schema's enum labels.

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?

The description states a specific read operation and resource: merchant COD vault balance from Steadfast, plus balance support checks for Pathao, RedX, and Paperfly. It clearly distinguishes live balance retrieval from unsupported provider checks, so an agent can identify the tool's purpose without opening the schema.

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 explains when to use the tool: to retrieve a live COD balance from Steadfast or to check balance support across other couriers or all couriers. It does not explicitly state when not to use it or name alternative tools, but the usage context is clear.

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