Skip to main content
Glama

Octobooks

Price table

prices
Read-onlyIdempotent

Read the price table of the company. what=table: every product with its standard price, the price per customer group and the customers with a price of their own; tiers: each price tier with its name, percent_off (Standard less; none: Own prices) and customers; breaks: the quantity breaks and suppliers' prices. what=for: the price of item_code for customer on a day (the customer's own price wins, then the group's, then the standard; at each, the product's own price before its product group's; round 1106: quantity, the highest quantity break it reaches, price_from says which). what=matrix: customers down the side, products across (in the order of their product group), each cell the price that holds and where it comes from; margins=true adds each piece's cost and the margin. what=check_in: the weekly check: invoices of the last weeks whose price is not the price on file, products sold without a price on file, and prices older than a year, so the owner can say whether new prices were agreed. It reads only; what=products: the product list for a line (q finds any part of the name or code, "gran" finds granola) with the price, VAT code and account a line for customer takes. Reads only. An invoice line that names item_code and no unit_price takes its price from this table. Round 920: what=costs: every product's unit cost on the day (on), with item_code its history; what=margin_rules: the margin thresholds and the margin rules; what=freight: the freight bills from on_from to on (a month when left out), each with the orders it carried: confirmed by a person, on the invoice, or proposed by a freight rule, and the proposal that waits for approval (orders, split_by, each order's share). Reads only.

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": "prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
onNo
whatNotable
companyNo
marginsNo
on_fromNo
customerNo
quantityNo
item_codeNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the three 'Reads only' repetitions add nothing. What does add value is the resolution precedence ('the customer's own price wins, then the group's, then the standard; at each, the product's own price before its product group's') and the rounding/versioning notes (round 1106, round 920), which tell an agent how results are computed.

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?

The purpose is front-loaded, but the body is a single dense block of run-on clauses with cryptic shorthand ('Standard less; none: Own prices', 'round 1106 ... price_from says which') that an agent must re-parse. Information density is high and little is pure filler beyond the triple 'Reads only', but the structure makes scanning harder than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, yet the description explains them anyway — useful for mode selection. Against that, a 9-parameter, zero-coverage schema leaves `company` undocumented and date semantics unspecified, which is a real gap for a tool where `on` and `on_from` change results materially.

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 0%, so the description must carry all nine parameters. It explains every `what` value, `q` ('finds any part of the name or code'), `on`, `on_from`, `quantity`, `item_code`, `customer` and `margins`, but never mentions `company`, and it gives no date format for `on`/`on_from` and no default for `what`. Substantial compensation, but incomplete for a 9-parameter tool.

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?

The first sentence states a specific verb and resource (reads the company's price table) and the description then enumerates nine distinct `what` modes with what each returns, which is far more specific than the name 'prices'. The repeated 'Reads only' implicitly separates it from the write-side sibling `prices_set`, though no sibling is named explicitly.

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?

Each mode carries a usage cue: 'for ... the price of item_code for customer on a day', 'check_in: the weekly check ... so the owner can say whether new prices were agreed', 'products: the product list for a line'. This effectively tells an agent which `what` value answers which question. It stops short of naming alternatives or stating when not to call it.

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