Skip to main content
Glama

Octobooks

Set a price

prices_set
Destructive

State or end a price, or put a customer into a price group. what=set: item_code, unit_price, scope (standard, group or customer; round 1106: or supplier, the price that supplier sells at, filled on a purchase order line typed without a price), key (the group, the customer code or the supplier), min_quantity (a quantity break: the price holds from that quantity on, a line takes the highest break it reaches; left out: any quantity), valid_from (YYYY-MM-DD, today when left out) and note: where the price comes from (a quote, an email, a phone conversation); the same price again that day returns the row on file (already_on_file), another price that day replaces it. what=end: end a price of that scope from valid_from. what=group: put customer into a price group (group empty: none). what=product_group: put item_code into a product group (group, small letters; empty: none); a price with level=product_group names the group in item_code and holds for every product in it. A price group of customers is a price tier (a column on Prices): what=tier: key (the tier; a new key adds one), name, percent (the tier's basis: Standard less that percent, computed from the standard price where the tier has no price of its own; empty: Own prices; left out: kept), valid_from (the basis holds from that day); what=tier_end: key, valid_from: the tier's prices end and its column goes, refused while customers are in it. what=product: set a product's own defaults, tax_code (a sales tax code) and account (a revenue account), both optional (empty clears), and cost_basis (batch: the cost of the batch sold, posted with each sale; set: a dated set cost, the cost of sales at month end for invoice and shop sales; from valid_from, earlier sales keep theirs); with level=product_group item_code names a product group and tax_code and cost_basis are set for every product in it; name puts a new product on file, unit_price sets its standard price; then an invoice line with item_code and quantity alone is enough. Round 920, what the margins are worked out from: what=cost: item_code, unit_cost (one unit, net, in the company's currency), valid_from (today when left out), basis (stated, purchase_price or assumed) and note (the source); the same day again corrects it; with cost_basis=set the product goes on Set cost and unit_cost is its set cost from valid_from, the cost of sales at month end (a locked month, or one whose stock entry is posted, is refused). what=margin_threshold: percent for item_code (a product), or item_code with level=product_group (a group); empty percent switches it off (all products: the company's margin threshold in its invoice details); it is a settings change and waits for the owner's one tap where the owner's switch for settings changes asks for it. what=margin_rule: kind (freight, cost_of_goods or ignore), name, account (codes, comma separated), note (the reason); what=margin_rule_end: rule_id. what=freight: journal_line_id (a freight bill, as the freight list of the price table shows it) with freight=confirm (keep the proposed orders), change (orders: the order numbers it carried) or clear (the rule spreads it again); the margins are worked out again. freight=propose puts the bill's split forward for the owner's approval: orders (left out: the order, delivery note or shipment numbers the bill itself names) and split_by (weight, value or units; left out: weight where every product has one, else value); freight=withdraw with proposal_id takes back the AI's own proposal; freight=approve with proposal_id where the owner's switch lets the AI post (else it waits for the owner's one tap; declining is the owner's); approve makes it the orders the bill carried, change and propose take split_by too. what=check_in_done: the weekly price check in was gone through with the owner; note optional; the next is due seven days on. Writes only; reading is a separate tool. Nothing here books anything.

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_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNo
kindNo
nameNo
noteNo
whatNoset
basisNostated
groupNo
levelNo
scopeNostandard
ordersNo
accountNo
companyNo
freightNo
percentNo
rule_idNo
customerNo
split_byNo
tax_codeNo
item_codeNo
unit_costNo
cost_basisNo
unit_priceNo
valid_fromNo
proposal_idNo
min_quantityNo
journal_line_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / cost_basis
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Cost Basis"
      +}
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only supply readOnly=false, destructive=true, idempotent=false; the description goes well beyond them with replacement semantics ('another price that day replaces it'), an idempotency nuance ('already_on_file'), refusals (locked month or posted stock entry), and approval gating (settings changes wait for the owner's one tap, freight approve/decline rules). These are genuinely useful behavioral facts that the annotations cannot convey, though they are buried in the prose rather than surfaced prominently.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense paragraph of several hundred words, threaded with semicolons, nested parentheticals, and version markers ('Round 1106:', 'Round 920,'). Front-loading is decent in the first clause, but the remainder is an undifferentiated stream that resists skimming; splitting into one line per `what` value would cost nothing and help enormously.

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 no explanation, and no operation is left completely undocumented. Yet for a 26-parameter, twelve-mode mutation tool with zero structured parameter documentation, the description is complete in coverage but not in usability — the agent cannot reliably assemble the right parameter set for a given `what` without reading the whole block.

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?

With 26 parameters at 0% schema coverage, the description carries the entire documentation burden and does explain most of them in context (item_code, unit_price, scope, key, min_quantity, valid_from, note, group, level, percent, cost_basis, tax_code, account, basis, unit_cost, kind, rule_id, journal_line_id, freight, proposal_id, split_by, orders). But the mapping is scattered across branches, `company` and `customer` are never defined as parameters, and an agent must reconstruct which parameters apply to which `what` value with no table — leaving real gaps at this parameter count.

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 opening sentence states the core verb and resource ('State or end a price, or put a customer into a price group') and the `what` discriminator enumerates each sub-operation by name (set, end, group, product_group, tier, tier_end, product, cost, margin_threshold, margin_rule, freight, check_in_done). It is specific, but the tool is a mega-dispatcher covering a dozen unrelated operations, so a single coherent purpose is hard to hold onto.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The closing line 'Writes only; reading is a separate tool' correctly routes read use away from this tool, and each `what` value implicitly selects a branch. However, there is no explicit guidance on choosing among the many `what` values, no prerequisites or ordering advice, and no when-not-to-use statement beyond the read/write split.

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