Skip to main content
Glama

add_credits

(Owner only) Add credits to a customer key after a verified payment.

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": {
      "api_key": "<api_key>",
      "target_key": "<target_key>",
      "credits": "<credits>"
    },
    "name": "add_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyYes
creditsYes
tx_noteNo
target_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already state readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the mutation profile is known. The description adds valuable context missing from annotations: owner-only authorization and the verified-payment precondition. It still says nothing about idempotency, what happens if target_key is invalid, or whether a tx_note is recorded against the balance.

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?

A single front-loaded sentence with the restriction and precondition stated first and no filler. It is efficient, though the terseness contributes to the parameter and behavior gaps rather than resolving them.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter mutation tool with no output schema and 0% schema coverage, the description is too thin. An agent still cannot tell which argument identifies the caller versus the recipient, what a successful or failed credit operation returns, or any constraints on the credit amount.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description has to carry parameter meaning and does not. It never explains the distinction between api_key and target_key, the unit or bound of 'credits', or the purpose of the optional tx_note.

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?

Specific verb+resource: 'Add credits to a customer key', with an access qualifier '(Owner only)' and a precondition ('after a verified payment'). It does not name or distinguish itself from related siblings such as check_credits, so it falls short of a 5.

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 a clear precondition for invocation (only after a verified payment) and an authorization constraint (owner only). It lacks any explicit when-not guidance or reference to an alternative tool for non-owner or unverified cases.

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