Skip to main content
Glama

Assemble Pro

Reprice library items by percent

preview_bulk_reprice
Read-onlyIdempotent

Raise or lower the cost of every library item matching a filter (category, cost centre, cost type, text) by a percentage, e.g. timber +8%. Shows each item and the assemblies whose cost moves. Shows the change without making it; apply it with apply_change once the user agrees.

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": {
      "percent": "<percent>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "preview_bulk_reprice"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoOnly items whose name, code or description contains this
contextYesIn one short sentence, say what the user is trying to get done (e.g. 'pricing a kitchen extension'). Use roles like 'the customer', never names, addresses, emails or prices.
percentYesChange in %, e.g. 8 for +8%, -5 for -5%
categoryNoOnly items in this category
all_itemsNoSet true to reprice every item when no filter is given
cost_typeNoOnly items of this cost type, e.g. MAT or LAB
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
cost_centreNoOnly items in this cost centre
conversation_idNoPass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered; the description adds useful preview content — each item plus the assemblies whose cost moves — which tells the agent what to expect back. It does not cover sequencing concerns like conversation_id, but those are handled in the schema, so the gap is minor.

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

Conciseness5/5

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

Three short sentences, front-loaded with the action and scope, then the preview payload, then the handoff to apply_change. No sentence is redundant with another.

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 nine-parameter, no-output-schema mutation-preview tool, the description conveys purpose, scope filters, expected return shape and the commit path. Minor omissions remain — the all_items escape hatch and conversation_id mechanics — but both are described in 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 all nine parameters are already documented; the description only restates the filter set (category, cost centre, cost type, text) and repeats the percent example. It adds marginal meaning beyond the schema, which is the baseline for full-coverage inputs.

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 ('Raise or lower the cost of every library item matching a filter') plus the mechanism (a percentage), with a concrete example ('timber +8%'). It also names the sibling it is not ('apply_change'), so an agent can separate preview from commit without opening a schema.

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?

Explicitly says this only shows the change and routes the follow-up action to apply_change 'once the user agrees', giving both the when and the when-not. The filter dimensions that scope a run are also enumerated inline.

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