Skip to main content
Glama

TESI Agent API (1–8 vCPU Linux + Chrome)

tesi_prepare_topup

Idempotent

Create or reconcile a same-key Stripe Checkout top-up ($10-$100 USD) that adds credits to your existing key while keeping workspace files intact. Returns JSON with checkoutUrl, sessionId, addedCents, and updated balance. Example: {"amountCents": 2500}.

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

Input Schema

NameRequiredDescriptionDefault
sessionIdNoExisting top-up Stripe session ID (cs_live_...) to reconcile immediately.
amountCentsNoTop-up amount in USD cents: 1000 ($10), 2500 ($25), 5000 ($50), or 10000 ($100).
recoverOnlyNoSet true to recover or reconcile an open top-up session without opening a new one.

Output Schema

NameRequiredDescriptionDefault
statusNo
balanceNo
sessionIdNo
addedCentsNo
checkoutUrlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds meaningful behavior beyond that: the top-up preserves existing workspace files and returns a specific JSON payload (checkoutUrl, sessionId, addedCents, balance), which tells the agent what state results from the call.

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?

The description is short and front-loaded: the core action and scope come first, followed by the return shape and a concrete example. No sentence is filler, though the example partly duplicates the schema's own examples.

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 three-parameter, zero-required tool with an output schema and rich annotations, the description covers the action, the non-destructive file guarantee, the amount bounds, and the return fields. It does not explain how sessionId and recoverOnly interact or what auth is required, but those are minor gaps given the structured coverage.

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 100%, so the three parameters are already documented in the schema. The description's amount range ($10-$100) and worked example {

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?

The description states a specific verb and resource ('Create or reconcile a same-key Stripe Checkout top-up') and scopes it to credits added to an existing key without disturbing workspace files. That scope detail helps separate it from purchase/plan siblings, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is implied by the create-vs-reconcile phrasing and the 'same-key' constraint, but there is no explicit statement of when to prefer this over tesi_plan_topup or tesi_prepare_purchase, nor any when-not guidance.

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