Skip to main content
Glama

buy

Buy items at market price from the station exchange (Exchange orders pay no listing fee. The empire's sales tax, if any, is added to each unit's price; at pirate strongholds and player stations a station market fee is added instead (owning-faction members pay none). Items delivered to cargo (or storage if cargo full). Use deliver_to=storage to send directly to storage. Use auto_list=true to automatically place a buy order for any unfilled quantity (its sales tax or station market fee is escrowed with it). You can hold at most 1000 open personal orders per station. Accepts item_id or item name (e.g. 'Iron Ore').)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session_id": "<session_id>",
      "item_id": "<item_id>",
      "quantity": "<quantity>"
    },
    "name": "buy"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idYesID of the item to buy (e.g., iron_ore, steel_plate)
quantityYesQuantity to buy
auto_listNoIf true, automatically place a buy order for any quantity not filled immediately (sales tax or station market fee is escrowed with it).
deliver_toNoWhere to deliver purchased items: 'cargo' (default) or 'storage' (station storage, useful when cargo is full).
session_idYesYour session ID from login/register

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / auto_list / description
      Previous value: -"If true, automatically place a buy order for any quantity not filled immediately (1% listing fee applies)."New value: +"If true, automatically place a buy order for any quantity not filled immediately (sales tax or station market fee is escrowed with it)."
  2. Added
  3. Removed
  4. Changed1 schema field changed
    • changedInput schema / properties / item_id / description
      Previous value: -"ID of the item to buy (e.g., ore_iron, refined_steel)"New value: +"ID of the item to buy (e.g., iron_ore, steel_plate)"
  5. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations supply only readOnlyHint=false, so the description carries the burden and does so well: it discloses sales tax vs. station market fee, faction-member exemption, escrow on auto-listed orders, the 1000 open personal orders per station cap, and the cargo-full fallback to storage. It does not describe what a partial fill looks like when auto_list is false, which is the main remaining behavioral gap.

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?

Purpose is front-loaded in the first clause, and the parentheticals each carry substantive fee or limit information rather than filler. The single dense paragraph with nested parentheses is harder to scan than a short bulleted structure would be, but no sentence is wasted.

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?

For a mutating 5-parameter tool with no output schema, the description covers cost model, delivery destination, order limits, and the auto-list side effect. The only meaningful omission is the return/result shape and partial-fill behavior when auto_list is false.

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, but the description adds real meaning beyond the schema: it notes that item_id also accepts an item name (e.g. 'Iron Ore'), which the schema does not say, and it explains the escrow consequence of auto_list. deliver_to semantics are largely duplicated from the schema.

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

Purpose4/5

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

States a specific verb and resource with scope: 'Buy items at market price from the station exchange.' It also implicitly separates itself from order-creation siblings by explaining that auto_list=true is what places a buy order for unfilled quantity. It never names an alternative tool outright, so differentiation is inferred rather than stated.

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?

Gives concrete conditional guidance for two parameters: 'Use deliver_to=storage to send directly to storage' and 'Use auto_list=true to automatically place a buy order for any unfilled quantity.' It also explains the fee conditions that affect the decision. It stops short of naming when a different tool (e.g. create_buy_order) should be preferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources