Skip to main content
Glama

view_market

Read-onlyIdempotent

View the market at the current station or another charted station (Must be docked. Pass base_id (Base ID or station POI ID) to view another charted station's market while docked anywhere; omit it for your current station. Without item_id: returns a compact summary (best prices, quantities) for all items — use category to filter (e.g. 'ore', 'commodity', 'module'). With item_id: returns full order book depth for that item. Accepts item_id or item name (e.g. 'Iron Ore'). Every response includes current_tick. Pass that value back as 'since' on a later call to poll for changes: the response then lists only items whose book changed since that tick (incremental:true), with emptied items shown carrying no orders. This is a stateless alternative to subscribe_market — no persistent connection needed. Re-baseline (call without 'since') after changing stations or base_id, or if you get a 'stale_cursor' error. Fuel is excluded from incremental diffs, and so are items restricted by the station contraband policy. Your own faction's private Company Store orders already appear in the normal view alongside public ones, and can set the best price you are shown; other factions' are never visible. Set company_store:true to narrow the response to ONLY your faction's Company Store listings (requires faction membership).)

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>"
    },
    "name": "view_market"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoOptional: a prior current_tick. Returns only items whose book changed at or after that tick (incremental poll) instead of a full snapshot. Re-baseline (omit since) after changing stations or on a 'stale_cursor' error.
base_idNoOptional: Base ID or station POI ID of another charted station to view while docked anywhere. Omit for your current station.
item_idNoOptional: filter to a specific item for full order book depth (e.g., iron_ore)
categoryNoOptional: filter summary by category (e.g., ore, commodity, weapon, module). Use without item_id.
session_idYesYour session ID from login/register
company_storeNoOptional: narrow the response to ONLY your faction's private Company Store listings. They already appear in the normal view alongside public orders; other factions' are never visible. Requires faction membership.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / base_id
      Added value: +{
      +  "description": "Optional: Base ID or station POI ID of another charted station to view while docked anywhere. Omit for your current station.",
      +  "type": "string"
      +}
  2. Added
  3. Removed
  4. Changed1 schema field changed
    • changedInput schema / properties / company_store / description
      Previous value: -"Optional: show ONLY your faction's private Company Store listings (members-only buy/sell orders, hidden from non-members). Requires faction membership."New value: +"Optional: narrow the response to ONLY your faction's private Company Store listings. They already appear in the normal view alongside public orders; other factions' are never visible. Requires faction membership."
  5. Changed2 schema fields changed
    • addedInput schema / properties / company_store
      Added value: +{
      +  "description": "Optional: show ONLY your faction's private Company Store listings (members-only buy/sell orders, hidden from non-members). Requires faction membership.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / since
      Added value: +{
      +  "description": "Optional: a prior current_tick. Returns only items whose book changed at or after that tick (incremental poll) instead of a full snapshot. Re-baseline (omit since) after changing stations or on a 'stale_cursor' error.",
      +  "type": "integer"
      +}
  6. Changed2 schema fields changed
    • addedInput schema / properties / category
      Added value: +{
      +  "description": "Optional: filter summary by category (e.g., ore, commodity, weapon, module). Use without item_id.",
      +  "type": "string"
      +}
    • changedInput schema / properties / item_id / description
      Previous value: -"Optional: filter to a specific item (e.g., iron_ore)"New value: +"Optional: filter to a specific item for full order book depth (e.g., iron_ore)"
  7. Changed1 schema field changed
    • changedInput schema / properties / item_id / description
      Previous value: -"Optional: filter to a specific item (e.g., ore_iron)"New value: +"Optional: filter to a specific item (e.g., iron_ore)"
  8. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, and the description does not contradict them. It goes further with non-obvious behavior: fuel and contraband-restricted items are excluded from incremental diffs, other factions' Company Store orders are never visible, and Company Store orders can set the best price shown. Minor gap: no note on payload size or rate limits for full snapshots.

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?

Front-loaded with the core purpose and scoping rule, and nearly every sentence carries operational information. It is a single dense parenthetical block, however, and the polling/Company Store details would read better as separate structured statements.

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 read-only query tool with six fully documented parameters and no output schema, the description covers preconditions, parameter interactions, return-value shape (summary vs order book depth, current_tick), incremental polling protocol, and visibility rules. Nothing needed to invoke it correctly appears missing.

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 the baseline is 3, but the description adds real meaning: item_id also accepts a human item name ('Iron Ore'), category examples ('ore', 'commodity', 'module') and the rule to use it without item_id, and the incremental:true/emptied-items semantics of since. This exceeds what the schema fields state.

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?

States a specific verb and resource ('View the market') plus scope: current station or another charted station by base_id, with a distinct behavior for item_id (full order book depth) versus its absence (compact summary). It also explicitly distinguishes itself from the sibling subscribe_market by calling itself a stateless alternative.

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?

Gives concrete preconditions (must be docked), selection rules between base_id and omission, when to use category vs item_id, and when to use since vs a re-baseline. It names the alternative (subscribe_market) and the conditions that select it, plus recovery guidance for the 'stale_cursor' error.

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