Skip to main content
Glama

cpu_craft

Run a craft recipe on a cell you own to refine raw resources or forge $WCPU. Inputs are debited upfront; track progress with craft status and claim when done.

Instructions

Run a craft recipe on a cell you own (refine raw resources, or forge $WCPU). Requires a session — call cpu_authenticate first; discover recipes with cpu_list_recipes. Inputs are debited upfront for all batches. Most recipes are free and start their timer immediately; forge_wcpu costs $CPU, which this tool auto-approves once (a one-time unbounded allowance) before submitting the on-chain payment and waiting for its confirmation — its timer then starts once the indexer settles the payment a few seconds later. Pointing a crafter at a recipe other than the one it is already set to also burns its Switch cost, in the same transaction and the same approval as the recipe cost — the first pick after building, and restarting the current recipe, are free. Check the price per recipe in cpu_get_cell (outputs) before you commit; the result reports the recipe cost and the Switch cost that actually burned separately. Track progress with cpu_get_craft_status and bank matured batches with cpu_claim_craft.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
batchesNoHow many sequential batches to run, 1..1000; inputs are debited upfront for all of them. The run stops itself after these and there is no cancel.
tokenIdYesThe tokenId of a cell you own to craft on.
recipeIdYesWhich recipe to run — see list_recipes for inputs/outputs/cost.
Behavior5/5

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

With no annotations, the description carries the full burden and excels. It discloses that inputs are debited upfront, most recipes start timers immediately, forge_wcpu has a one-time unbounded $CPU allowance and waits for confirmation, switch costs are burned for recipe changes, and the result reports both costs separately.

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?

Every sentence carries useful information, but the single dense paragraph is long and somewhat rambling. It is front-loaded with purpose and prerequisites, yet tighter structuring could improve readability without losing content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex execution tool with no annotations, no output schema, and 3 parameters, this description is remarkably complete: it covers prerequisites, recipe discovery, pricing checks, cost/approval details, switch behavior, timer semantics, progress tracking, and claiming.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even though schema coverage is 100%, the description adds substantial meaning: 'batches' behavior (upfront debit, no cancel), the forge_wcpu auto-approval and cost specifics, switch cost semantics, and the requirement that the tokenId must be a cell the user owns. This goes well beyond the schema's field descriptions.

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 opens with a specific verb+resource: 'Run a craft recipe on a cell you own (refine raw resources, or forge $WCPU).' It clearly distinguishes this execution tool from related sibling tools like cpu_get_craft_status, cpu_claim_craft, and cpu_list_recipes.

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?

Explicit usage guidance is provided: 'Requires a session — call cpu_authenticate first; discover recipes with cpu_list_recipes' and 'Check the price per recipe in cpu_get_cell (outputs) before you commit.' It also names the follow-up tools (cpu_get_craft_status, cpu_claim_craft), making the workflow clear.

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/projectcpu/project-cpu-mcp'

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