Skip to main content
Glama

Buy credits (visual picker)

ucode_render_credits
Read-only

Opens the Add credits card with the current wallet balance. Payments never happen in chat — show the balance and link to https://ucode.uk/pricing (informational). After they add credits on the website, call ucode_credits_status. No payment details are collected in chat.

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": "ucode_render_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
okYes
codeNo
dataNo
errorNo
phoneNo
uiViewNo
creditsNo
endDateNo
smsCodeNo
summaryYes
rentalIdNo
billingUrlNo
httpStatusNo
countryNameNo
phoneNumberNo
serviceNameNo
neededCreditsNo
providerRentalIdNo
remainingSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Adds real context beyond the readOnlyHint=true / destructiveHint=false / openWorldHint=false annotations: it opens a visual card, displays balance, collects no payment details, and the pricing URL is purely informational. This is consistent with the non-destructive read annotation and clarifies the flow boundary between chat and website.

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?

Three short sentences, front-loaded with the action and balance, then the payment constraint, then the follow-up. Minor redundancy between 'Payments never happen in chat' and the closing 'No payment details are collected in chat', but the emphasis is defensible for a sensitive billing topic.

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 an output schema, empty schema, and safety annotations already present, the description covers what an agent needs: what renders, that no payment occurs, and what to call next. Only the relationship to the sibling purchase/checkout tools is left implicit.

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 tool takes zero parameters, so there is nothing to disambiguate and the description correctly spends no words on inputs. Baseline of 4 applies for a parameterless tool.

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?

States a specific action and resource: opens the 'Add credits' card and surfaces the current wallet balance. An agent can tell this is the informational/UI entry point for adding credits rather than a tool that performs a purchase, though it never names the sibling it replaces (e.g. ucode_agent_buy_credits or the payments_* checkout tools).

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 clear when-to-use context and an explicit exclusion ('Payments never happen in chat'), plus a concrete follow-up step: after the user adds credits on the website, call ucode_credits_status. It stops short of a full when/when-not comparison against the sibling purchasing and package tools.

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