Skip to main content
Glama

cpu_craft

Run craft recipes on owned cells to refine raw resources or forge $WCPU. Authenticate first, review recipes, then commit batches and track progress.

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.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv0.10.0
    • changedInput schema / properties / tokenId / maximum
      Previous value: -48990New value: +29150
  2. First observedv0.8.0

TDQS

A5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it excels: it explains upfront debit of inputs, free vs. paid recipes, the one-time unbounded CPU approval for forge_wcpu, delayed timer start after indexer settlement, switch-cost burning, and free cases for first pick/restart. It also discloses that the result reports recipe cost and switch cost separately.

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?

The description is dense but well-structured: core action first, then prerequisites, then payment/cost behavior, then switch-cost nuance, then pre-commit guidance and post-invocation tracking. Every sentence adds essential operational detail for a complex on-chain crafting tool, and no redundant filler is present.

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 tool with no annotations and no output schema, the description is remarkably complete. It covers prerequisites, cost behavior, edge cases, what the result reports, and how to follow up. An agent has enough context to invoke cpu_craft correctly and interpret what happened afterward.

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?

Although the schema already covers 100% of parameter descriptions, the tool description adds meaningful semantics beyond the schema. It clarifies batches are debited upfront with no cancel behavior, explains forge_wcpu's special CPU cost and approval flow, and details when a Switch cost is or is not burned for recipeId changes.

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 and resource: "Run a craft recipe on a cell you own (refine raw resources, or forge $WCPU)." This clearly distinguishes the action from sibling tools like cpu_list_recipes, cpu_get_craft_status, and cpu_claim_craft, which handle discovery, status, and claiming respectively.

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 gives explicit usage context and lifecycle routing: call cpu_authenticate first, discover recipes with cpu_list_recipes, check prices via cpu_get_cell, track progress with cpu_get_craft_status, and bank results with cpu_claim_craft. It leaves no ambiguity about when this tool should be invoked versus related tools.

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

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