Skip to main content
Glama

Prepaid Credit Drawdown

bpj_prepaid_credit_drawdown
Read-onlyIdempotent

Apply opening and newly purchased credits against usage, then report unused credit and the payable balance.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "credit": "<credit>",
      "topup": "<topup>",
      "spend": "<spend>"
    },
    "name": "bpj_prepaid_credit_drawdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
spendYes
topupYes
creditYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered and the description correctly reads as a pure calculation. It usefully adds that two outputs are produced (unused credit and payable balance), but says nothing about application order, rounding, or what happens when usage exceeds total credits beyond the implicit payable balance.

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?

A single sentence, front-loaded with the operation and closed by the reported results. There is no filler and every clause contributes to understanding the tool.

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 output schema, the description does the important work of naming the two returned quantities, which is the key missing structured information. For a three-scalar calculator with full annotation coverage, only rounding/precision and overage behavior are left undefined.

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?

Schema description coverage is 0%, so the description carries the burden — and it largely does, mapping 'opening' credit to the credit param, 'newly purchased' to topup, and 'usage' to spend, which is the full three-parameter set. Units, rounding, and precision of these numeric inputs remain unspecified.

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?

Uses a specific verb+resource pairing: apply opening and newly purchased credits against usage, then report two named results. An agent immediately understands this is a credit-vs-usage netting calculation, though it does not explicitly distinguish itself from siblings such as bpj_series_drawdown or bpj_single_period_credit_loss.

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

Usage Guidelines2/5

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

The description gives no when-to-use guidance, no prerequisites, and no alternatives. Nothing tells the agent whether this is the right tool for a single-period settlement versus a series/multi-period drawdown, leaving selection to inference from the name alone.

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.