Skip to main content
Glama

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

tesi_prepare_purchase

Idempotent

Create or preview a one-time Stripe Checkout session ($10-$100 USD, $0/mo) to fund a brand-new TESI bearer key. Returns JSON with sessionId, checkoutUrl, amountCents, and pack preview metadata. Example: {"amountCents": 1000, "quoteOnly": true}.

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": {
      "amountCents": "<amountCents>"
    },
    "name": "tesi_prepare_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional human-readable label for the new bearer key (up to 80 chars).
quoteOnlyNoSet true to preview pack specs and browser link without creating a Stripe session.
purchaseIdNoOptional 64-hex client idempotency token enabling crash-safe key recovery on tesi_claim_key.
amountCentsYesPack amount in USD cents: 1000 ($10), 2500 ($25), 5000 ($50), or 10000 ($100).

Output Schema

NameRequiredDescriptionDefault
statusYes
currencyYes
reviewUrlNo
sessionIdNo
amountCentsYes
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 openWorldHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds real context beyond them: an external Stripe session is created, it is one-time with $0/mo (no recurring billing), and the price envelope is $10-$100. It omits auth/permission requirements and leaves the crash-safe purchaseId recovery story to the schema.

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 the resource, followed by return shape and a copy-pasteable example. The return-field listing is somewhat redundant given an output schema exists, but nothing is padded.

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 present, the description does not need to enumerate return fields, and all four parameters are fully documented in the schema. What is missing is the workflow relationship to tesi_prepare_topup and the purchaseId/tesi_claim_key recovery path, which matter for a paid, external-side-effect call.

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 quoteOnly and amountCents are already documented in the schema; the description merely echoes the $10-$100 band and supplies a worked example payload. That example is mildly useful for wiring up a preview call, but it adds no semantics not present in the schema.

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?

Uses a specific verb pair ("Create or preview") plus a concrete resource ("one-time Stripe Checkout session") and states the payoff ("fund a brand-new TESI bearer key"). The word "brand-new" implicitly separates it from top-up flows, but no sibling (e.g. tesi_prepare_topup) is named, so differentiation is left to inference.

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?

"Create or preview" plus the quoteOnly example implies when to pick each mode, and "brand-new" hints at the boundary with existing-key top-ups. However, no alternative tool is named and there is no explicit when-not guidance (e.g. use tesi_claim_key to recover a key), so routing relies on inference.

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