Skip to main content
Glama

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

tesi_plan_topup

Read-onlyIdempotent

Check whether your key balance covers a planned prompt and calculate any needed credit top-up without opening Stripe Checkout. Returns JSON with meetsStartingCredit boolean and recommendedAmountCents. Example: {"promptBytes": 1200}.

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_plan_topup"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageNoPlanned prompt text to check against your current key balance.
promptBytesNoExact UTF-8 prompt byte count when checking balance without sending text.

Output Schema

NameRequiredDescriptionDefault
statusYes
meetsStartingCreditNo
recommendedAmountCentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false. The description adds genuine value by noting no Stripe Checkout is opened, but says nothing about whether the check consumes credits, how pricing is computed, or what happens when the balance is insufficient.

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?

Purpose, key behavioral constraint, and a concrete call example are front-loaded in three tight sentences. The return-field sentence is somewhat redundant given an output schema exists, but nothing is wasted.

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 and rich annotations, the description needs only purpose and side-effect framing, both of which are present. The main gap is the lack of routing guidance relative to tesi_prepare_topup and tesi_balance.

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 description coverage is 100%, so both message and promptBytes are already documented, including examples and bounds. The description's inline example adds only marginal clarity beyond the schema, so baseline 3 applies.

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 verb and resource: check whether the key balance covers a planned prompt and compute a top-up amount. The clause 'without opening Stripe Checkout' implicitly separates it from the purchase/prepare-topup 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?

Gives a clear usage context (planning a prompt against current balance, avoiding a checkout flow), but offers no explicit when-not conditions or named alternatives such as tesi_prepare_topup or tesi_balance, leaving the agent to infer routing.

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