Skip to main content
Glama

cpu_buy_lot

Purchase units from an open lot and deliver them to your cell with one atomic on-chain transaction. Specify the lot ID, waypoint chain, and quantity to buy.

Instructions

Buy units from an OPEN lot, delivered to your own cell, on-chain (needs a session). chain = [hub holding the lot, ...waypoints, your destination cell]. One atomic $CPU tx: seller price (value × pricePerUnit) + any foreign-hub transit fee, plus gas; the first buy auto-approves the sale exactly and the transit fee with ~10% headroom (a ceiling for on-chain fee drift, not a double charge). Preview the exact cost with cpu_quote_buy. Goods ship to your cell and credit only after arrival, when you cpu_finalize_delivery the returned deliveryId. Buying your own lot is allowed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesWaypoint tokenIds [hub, ...waypoints, destination] — first node is the lot Hub, last is your own revealed cell where the goods are delivered. Scout waypoints with cpu_next_hops.
lotIdYesThe lot id to buy from (from list_lots / get_lot / get_markets).
valueYesUnits to buy, as a positive integer string (≤ the lot remaining).
Behavior5/5

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

Since no annotations are provided, the description carries full burden. It discloses all key behavioral traits: atomic tx, cost components (price, transit fee, gas), auto-approval with 10% headroom, delivery timing, and permission to buy own lot. No contradictions.

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?

The description is detailed but each sentence adds value. It is front-loaded with the main action and then explains nuances. Could be slightly more concise, but overall well structured.

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 no output schema, the description covers prerequisites, process, cost preview, auto-approval, delivery, and finalization. It mentions the returned deliveryId. Lacks explicit error conditions but is adequate for a buy tool.

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%, so baseline is 3. The description adds significant value: for 'chain' it explains waypoint structure and scouting via cpu_next_hops; for 'lotId' and 'value' it provides context on sources and constraints (positive integer, ≤ remaining).

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 clearly states the verb ('Buy'), resource ('units from an OPEN lot'), and outcome ('delivered to your own cell'). It distinguishes from sibling tools like cpu_quote_buy (preview) and cpu_create_lot (create).

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?

Provides explicit context: when to buy (from open lot), prerequisite (needs session), and related tools (cpu_quote_buy for preview, cpu_finalize_delivery for completion). However, it doesn't explicitly state when not to use (e.g., if lot is closed).

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

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