Skip to main content
Glama

prufa_buy_credits

Buy a prepaid credit pack to top up workspace credits without changing the subscription plan. Get a Stripe checkout URL to complete payment by card.

Instructions

Buy a one-time prepaid credit pack for this workspace (no subscription change). Returns a Stripe checkout_url the HUMAN opens to pay by card. Use when the workspace is low on credits but you don't want to change the plan. Mutating + idempotent. [Pro]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
creditsYesNumber of prepaid credits to purchase (> 0).
cancel_urlNoOptional URL Stripe redirects to on cancel.
success_urlNoOptional URL Stripe redirects to on success.
idempotency_keyNoOptional. Replays of the same key within 24h return the original response without re-executing — pass one to make retries safe. Omitted: a fresh key is generated, so each call executes.
Behavior4/5

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

With no annotations, description discloses mutating and idempotent nature, and that payment is handled via external URL. Lacks rate limits or auth details but covers key behaviors.

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?

Two concise sentences plus key tags; no wasted words. Front-loaded with essential purpose and outcome.

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?

No output schema but description states return value (checkout URL). All params documented. Sibling tools indicate this is a distinct purchase action; sufficient for selection.

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 already covers all param descriptions (100%), but description adds context about idempotency key and checkout URL, enhancing understanding beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Verb 'Buy' specifies action, resource 'prepaid credit pack' is precise, and description distinguishes from subscription changes (contrasts with prufa_upgrade_plan).

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

Usage Guidelines5/5

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

Explicitly states use case: 'when workspace is low on credits but you don't want to change the plan', providing clear when-to-use and when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prufa-dev/prufa-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server