Skip to main content
Glama

Ferrite

Grant test credit

fund

Grant TEST/development credit directly to the authenticated account; returns {Funded:{balance_micros}}. Admitted only where the platform's test credit mint is on (the front's [commerce] test_credit_mint); elsewhere it answers Rejected (TEST_CREDIT_MINT_DISABLED), grants nothing, and names the account's top-up page -- credit is bought there, through billing_portal. This is NOT a card payment: real human top-ups use billing_portal, then Stripe's hosted checkout. F-17 remains the precondition before credit denominates real money.

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": {
      "micros": "<micros>"
    },
    "name": "fund"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenNofallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused
microsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare the mutation/safety posture; the description adds the gate precondition, the named rejection code with its no-op semantics, and the returned balance field — behavior an agent cannot infer from readOnlyHint/destructiveHint/idempotentHint. The only minor omission is that non-idempotency (per annotation) is not spelled out as repeated grants stacking credit, but the gating and failure disclosure goes well beyond the structured data.

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-loads the action and return value, then layers the gating condition and the alternative, which is the right order for an agent scanning it. Dense but mostly load-bearing; the closing reference to 'F-17' is an unexplained internal handle that costs clarity without adding actionable information.

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?

For a non-read-only, conditionally available grant with no output schema, the description supplies the return field, the precondition flag, and the failure path — enough to call it correctly. Incomplete only on cumulative/rate semantics for repeated grants, which matters given the operation is a credit mint.

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

Parameters3/5

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

Schema coverage is 50%: `token` is documented in the schema, while `micros` has no schema description at all. The description only indirectly conveys meaning by showing the returned `balance_micros`, implying sub-unit micro-currency scaling, but never states the unit, allowed range, or that it is the sole required argument — so it does not fully compensate for the gap.

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 verb and resource — grant TEST/development credit to the authenticated account — and even names the return shape {Funded:{balance_micros}}. It draws an explicit boundary against `billing_portal` for real top-ups, so an agent can separate this from the sibling that handles real money without reading any schema.

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

Usage Guidelines5/5

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

Gives the enabling condition (the platform's `[commerce] test_credit_mint` must be on), the exact failure behavior when it is not (Rejected with TEST_CREDIT_MINT_DISABLED, grants nothing), and the correct alternative (`billing_portal`) for genuine purchases. Explicit when-to-use, when-not-to-use, and routing to the alternative are all present.

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.