Skip to main content
Glama

Figment Mac hosting

Get a payment link for credit

figment_buy_credit
Idempotent

Returns a Stripe Checkout link for prepaid credit. Give the link to your user to pay, or pay it with a Link wallet. The first purchase is at least 2500 cents; one purchase is at most 50000 cents. This call takes no money by itself.

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": {
      "amount_cents": "<amount_cents>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "figment_buy_credit"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNoThe api_key from figment_create_account. Leave out if the MCP connection sends an Authorization header.
amount_centsYes
idempotency_keyYesA new random string of 16 to 80 letters, digits, "_" or "-" for each new purchase or order. Send the same string again only to repeat the same request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare the write-ish, idempotent, non-destructive, open-world profile, and the description adds genuinely non-structured context: no money moves during the call, a link is produced rather than a charge. It does not cover link lifetime or whether an unused link can be reused, which are the remaining behavioral unknowns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences: what it returns first, then what to do with it, then the reassurance that no charge occurs. Nothing is repeated from the schema and no sentence is filler.

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 no output schema, the description carries the return-value burden and does so by naming the Stripe Checkout link. For a three-parameter, single-purpose payment tool this is close to sufficient; only link expiry and single-use semantics are unaddressed.

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?

Schema coverage is 67%, and the description compensates by adding a business rule the schema cannot express: the first purchase is at least 2500 cents, while the schema's own floor is 100. That resolves a real ambiguity about minimum amounts, though it leaves the meaning of a "first" purchase versus later ones implicit.

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?

"Returns a Stripe Checkout link for prepaid credit" is a specific verb plus resource, and the prepaid-credit framing separates it from the account/MAC siblings. It stops short of naming an alternative for agents that might instead check balance or account state, so it sits at a clear-but-not-differentiating 4.

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?

It tells the agent what to do with the result ("Give the link to your user to pay, or pay it with a Link wallet") and states the per-purchase amount envelope. What is missing is explicit when-not guidance, e.g. how to respond if the user has no account yet or if a prior idempotency key exists.

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.