Skip to main content
Glama

NPC vending machines and shopkeepers: every shop, offer and price

get_npc_vending
Read-onlyIdempotent

[Game reference] NPC vending machines and shopkeepers: every shop, offer and price. Every NPC shop in the game files (Outpost, Bandit Camp, fishing villages, stables, water wells, floating cities, the Travelling Vendor, plus order sets no standard monument uses). order_sets carry key, title, offers (sell item, sell_amount, sell_bp, currency item, price, price_text, and random - weight and price range - for shops that show 7 random offers: picks), and where (monuments, with dynamic_pricing). locations lists the shops per monument. Listed prices are the base: with dynamic pricing (the default) a scrap price starts at double on a fresh map and drifts between half and double with demand every few hours; water-well shopkeepers, the Travelling Vendor and deep-sea vendors keep the listed price. With item, sold and bought list just that item's offers. Cached for one hour. Use item= for 'where can I buy X' / 'what can I sell X for'. Prices are the listed base; most NPC shops move between half and double with demand. Link https://rust.wiki/vending.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_npc_vending"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemNoOnly offers that sell this item or take it as payment (shortname, e.g. `rifle.ak` or `scrap`).
monumentNoOnly the shops at this monument (slug from `/monuments`, e.g. `outpost`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly/idempotent/closed-world): discloses a one-hour cache, explains that listed prices are base prices and that dynamic pricing makes scrap start at double on a fresh map and drift between half and double with demand every few hours, and carves out exceptions (water-well shopkeepers, Travelling Vendor, deep-sea vendors). It also sketches the returned structure (order_sets with offers/picks/where, locations).

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?

Front-loaded with the purpose, but the pricing caveat is stated twice ('Listed prices are the base: with dynamic pricing...' and again 'Prices are the listed base; most NPC shops move between half and double with demand'), and the field enumeration is dense. Useful content, but there is clear redundancy.

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?

With no output schema, the description carries the burden of describing returns, and it does so reasonably (order_sets fields, locations, item filtering, caching). Minor gaps: no error/empty-result behaviour and the monument parameter's semantics are left to the schema.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters are already documented, making 3 the baseline. The description adds some value by clarifying that item= returns both `sold` and `bought` offers for that item, but never explains the `monument` filter's behaviour beyond restating that locations are per monument.

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?

Names a specific resource ('NPC vending machines and shopkeepers: every shop, offer and price') and delineates scope precisely (Outpost, Bandit Camp, fishing villages, stables, water wells, floating cities, Travelling Vendor, plus order sets no standard monument uses). It does not name a sibling alternative, so it falls just short of a 5.

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?

Explicitly routes behavioural queries: 'Use item= for "where can I buy X" / "what can I sell X for"', and implies monument scoping via 'locations lists the shops per monument'. No when-not-to-use guidance and no named alternative tool for related price questions (e.g. skin prices), so not a 5.

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