Skip to main content
Glama
tokportal

tokportal-mcp

Official
by tokportal

tokportal_create_bundles_bulk

Bulk create and pay for multiple account bundles in one atomic checkout. Credits are debited immediately; the entire batch rolls back if any bundle fails.

Instructions

Create bundles in bulk. Creates and pays several bundles in one atomic creation checkout. Credits are debited immediately on a successful POST, not at publication. The complete batch is checked against rolling workspace capacity and any contract_bundle_allowance returned by getCreditCosts. Qualifying allowance slots are consumed in deterministic bundle-ID order in the same transaction as all debits; if any bundle fails, the entire batch rolls back and consumes nothing. A batch crossing the final allowance slot receives the contract price only for the remaining qualifying bundles. For Advanced Niche Warming, either pass advanced_warming_terms, using the same terms for every account, or buy a per-account target count with advanced_warming_terms_count and configure each bundle's targets later via PUT /bundles/{id}/warming-terms. external_ref is one optional batch-level reference copied to the resulting bundles, not a unique per-bundle key or a retry mechanism; use returned bundle IDs for identity and Idempotency-Key for exact replay.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesJSON request body.
idempotency_keyNoOptional Idempotency-Key header for safe retries.
Behavior5/5

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

Annotations only indicate non-readOnly, non-idempotent, and non-destructive, but the description goes far beyond by detailing atomic rollback on failure, immediate credit debit (not at publication), consumption of contract_bundle_allowance slots in deterministic order, and partial price for batches crossing the final slot. It also explains the advanced warming options' behavior (later configuration, auto-cancel after 14 days). No contradiction with annotations.

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

Conciseness3/5

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

The description is comprehensive but moderately long. It front-loads the core purpose in the first sentence but includes dense technical details (allowance slots, contract prices, advanced warming nuances) that could be more structured. Every sentence earns its place, but the length relative to context signals (2 params, no output schema) suggests minor trimming or bullet-pointing would improve readability.

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?

Given the tool's complexity (nested body object, multiple warming options, rollback semantics, credit costing) and no output schema, the description covers key aspects: return values implied by external_ref and bundle IDs, credit mechanics, rollback behavior, and warming configuration paths. It's complete for a bulk creation tool, though missing explicit mention of potential error states beyond rollback.

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 100% with detailed descriptions on parameters like external_ref, wants_deep_warming, advanced_warming_terms, and advanced_warming_terms_count. The description adds value by explaining the batch-level semantics of external_ref (not a retry mechanism) and the interplay between the two advanced warming alternatives, but the schema already covers most nuances well.

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?

The description uses specific verbs ('Create', 'pays') and a clear resource ('bundles in bulk'), and explicitly states an atomic creation checkout with immediate credit debit. This distinguishes it from its close sibling tokportal_create_bundle (single) and other tools (e.g., tokportal_configure_bundle_warming_terms) by clarifying the batch nature and payment mechanics.

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?

The description provides detailed when-to-use guidance (for bulk creation with atomic checkout), when-not-to-use (for single bundles use create_bundle, for configuration after purchase use warming-terms endpoints), and explicit alternatives (advanced_warming_terms vs advanced_warming_terms_count). It also explains gotchas like external_ref not being an idempotency key and the rollback behavior on failure.

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/tokportal/langchain-tokportal'

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