Skip to main content
Glama

Price a part

get_price
Read-only

The price of printing an uploaded STL with these choices, delivery included, in pence. The site measures the file itself the first time. If the turnaround asked for is not open, the price is for the next one and downgraded is true. Show the person the total before place_order.

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>",
      "material": "<material>",
      "quantity": "<quantity>",
      "turnaround": "<turnaround>",
      "finish": "<finish>",
      "delivery_service": "<delivery_service>"
    },
    "name": "get_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
finishYesas_printed, cleaned or finished.
coloursNoColour ids from get_options for this material. The first is free; each extra colour adds the price get_options shows. Leave out for no preference (one colour).
materialYes
postcodeNoUK postcode for delivery; the account's own if left out.
quantityYes
quote_idYesFrom create_upload or list_quotes.
turnaroundYestoday, tomorrow or standard (2-3 working days). get_options says which are open now.
delivery_serviceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / colours
      Added value: +{
      +  "description": "Colour ids from get_options for this material. The first is free; each extra colour adds the price get_options shows. Leave out for no preference (one colour).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 4,
      +  "type": "array"
      +}
    • changedInput schema / properties / material / enum
      Previous value: -[
      -  "PLA",
      -  "PETG",
      -  "ASA"
      -]New value: +[
      +  "PLA",
      +  "PETG",
      +  "ASA",
      +  "ABS",
      +  "TPU",
      +  "PC"
      +]
  2. 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 a read-only, non-destructive, non-idempotent call, and the description adds genuinely non-obvious behavior: the site measures the file on first use, the quoted price silently falls back to the next open turnaround, and a `downgraded` flag signals that substitution. Currency (pence) and delivery inclusion are also disclosed. It does not cover quote expiry or how long the first measurement takes, which keeps it off a 5.

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?

Four short sentences, front-loaded with the output unit (pence) and delivery inclusion, then the measurement caveat, then the downgrade rule, then the workflow instruction. No filler, though the phrasing is telegraphic and requires careful reading.

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 an 8-parameter pricing tool with no output schema, the description covers the two return signals that matter (price in pence, `downgraded`) plus the first-call measurement side effect, so an agent can call it and interpret the result. The remaining gap is that per-parameter guidance for material, quantity and delivery_service is left entirely to 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 coverage is 63%, so several parameters (material, quantity, delivery_service, finish beyond the enum) carry little meaning beyond their names and description does not compensate. The one real addition is turnaround semantics — passing any value yields a price for the next open slot — which is a meaningful clarification not present in the enum itself. That fits a baseline-with-a-bonus 3.

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 description names the concrete operation and unit: pricing a print of an uploaded STL, delivery included, expressed in pence. It also implicitly distinguishes itself from place_order by framing itself as the pre-check. It stops short of a crisp verb-first statement, but an agent can tell exactly what the tool returns.

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?

"Show the person the total before place_order" establishes a sequencing rule, which is real usage guidance. However, it does not say when not to call it, nor does it route to alternatives such as get_options (for availability) or list_quotes (for reuse of an existing quote).

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