Skip to main content
Glama

Agentic Fabrication Network (AFN)

Price by quantity

get_price_curve
Read-only

How the per-unit price moves with quantity for a quote you already have: for every shop on the board, the item price per unit at each quantity (default 1, 2, 5, 10, 25, 50, 100, 250, 500, 1000; pass up to 16 of your own in 1..10000) from that shop's own pricing with the network's markup included, plus its arrival window — instant, no shop is contacted, nothing changes on the quote. Call it when the user asks what more or fewer pieces would cost ("what would 50 run me?", "any price breaks?"). The board's quoted price stays the ceiling at the chosen quantity (each option's live row); a null cell means that shop's pricing does not cover that quantity — refine_quote with the new quantities gets the real number. Present these as the shops' own pricing, never as an estimate; every order still passes the manufacturability check.

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": {
      "quote_id": "<quote_id>"
    },
    "name": "get_price_curve"
  }
}

Input Schema

NameRequiredDescriptionDefault
quote_idYesThe quote whose board to price by quantity
quantitiesNoUp to 16 quantities in 1..10000; omit for 1, 2, 5, 10, 25, 50, 100, 250, 500, 1000

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is partly covered, but the description adds real context: instant, no shop is contacted, nothing changes on the quote, network markup included, and the board's quoted price acts as a ceiling at the chosen quantity. It does not describe response shape in detail (no output schema), though the 'live' row and null-cell semantics go most of the way.

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 answer and information-dense throughout, with no filler sentences. The structure suffers slightly from one very long opening sentence burdened with stacked parentheticals, which makes it harder to scan than a short bulleted breakdown would be.

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 two-parameter read-only tool with no output schema, the description covers what comes back (per-shop per-unit prices, arrival windows, the 'live' row), how to read gaps (null cells), what to do next (refine_quote), and how to present results. Nothing an agent needs in order to call it or interpret the result is 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 meaning the schema cannot: the default quantity ladder and the fact that a null result at a given quantity means that shop's pricing does not cover it, with refine_quote as the remedy. That ties the quantities parameter to observable output behavior rather than just restating the 1..10000 and max-16 constraints.

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?

The opening clause names a specific verb-like behavior (how per-unit price moves with quantity) for a specific resource (a quote's shop board), and it enumerates the returned content (per-unit price at each quantity, arrival window). An agent can distinguish this from refine_quote, which is explicitly named later as the different tool for getting real numbers.

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?

It states exactly when to call it ('when the user asks what more or fewer pieces would cost') with two example utterances, and it names the alternative path: when a cell is null, refine_quote with the new quantities gets the real number. It also sets a presentation rule (shops' own pricing, never an estimate) and notes the manufacturability check still applies.

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