Skip to main content
Glama

ARCNM pay

Price parts

price_parts
Idempotent

Price CAD parts (STEP or DXF, base64) and buy their manufacturing cost: EUR 0.89 per made part per environment, VAT included, no account; bought and catalogue parts are free. One file (file_base64) or many (items), at most 16 MB a call as base64 (more: POST /pay/price); offer_id alone: an earlier offer, without the file; neither: the environments, parameters, limits and unit price, free. Answers: unpaid, an error whose structured content is the x402 payment requirement with offer.offer_id and pay_url (pay in _meta['x402/payment'] with the same arguments, or over HTTP at pay_url); paid, status paid with purchase_id and result_token, or status running or settling to read with get_result; status pricing: call again. Billable only when paid; a failed calculation is not charged.

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

Input Schema

NameRequiredDescriptionDefault
itemsNoMany files in one offer and one payment, each with its own file_base64, filename, material and sheet_gauge_mm.
vat_idNoYour EU VAT ID, for an invoice that names it. The price is the same; the VAT inside it follows where you are (a VAT ID is not verified yet).
countryNoYour country, ISO 3166-1 alpha-2.
currencyNoISO 4217: each environment states its prices in it with its own rates. Default: each environment's own.
filenameNoIts name, e.g. bracket.step.
lot_sizeNoPieces per lot the run is priced at. Default: 1.
materialNoThe material.
offer_idNoAn earlier offer.
lot_sizesNoThe lots the answer states, at most 12. Default: 1, 10, 100 and 1000.
invoice_toNoWho the invoice names: name and address. The price is the same.
file_base64NoThe CAD file (STEP or DXF) as base64, or a data: URI; gzip-compressed is accepted.
costing_dateNoNot used yet: an offer is priced as of the day it runs.
environmentsNoUp to 16 environments to price in, in order (the first is the baseline): ids price_parts lists when called with no arguments, `id@version`, or `{id, version}`. Default: DE-BY.
annual_volumeNoPieces a year.
drawing_base64NoA drawing of the part: not read and not kept, the price is the geometry's (the offer's item says so in `drawing`).
sheet_gauge_mmNoSheet thickness in millimetres: with `material`, required for a DXF flat pattern.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, idempotentHint=true and destructiveHint=false; the description goes far beyond them with the price model (EUR 0.89 per made part per environment, VAT included, no account), the 16 MB payload ceiling and its alternate endpoint, the full x402 payment handshake including where the payment goes (_meta['x402/payment']) and the pay_url fallback, and the billing rule that only paid calls are charged and failed calculations are free. This is unusually complete behavioral disclosure for a paid, stateful operation.

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?

The purpose is front-loaded in the first clause and essentially every clause carries non-redundant information: price, modes, size limit, response states, billing. It is, however, delivered as a single semicolon-chained run-on paragraph, making the payment-flow and response-state details harder to scan than they need to 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 16-parameter, no-output-schema, paid tool with multiple input modes, the description covers everything an agent needs to call it correctly: which argument combination selects which mode, what a success, running, settling, pricing or unpaid response means, and when money is actually charged. Return-value structure is described inline for each status despite there being no output schema.

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, and the description earns the extra point by explaining how the optional parameters combine — file_base64 vs items vs offer_id vs neither — a mutually-exclusive-mode constraint the flat, all-optional schema does not enforce or express. It also states the 16 MB base64 limit, which appears only as an external constraint rather than a schema maximum.

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 states a specific verb and resource ("Price CAD parts (STEP or DXF, base64) and buy their manufacturing cost") and enumerates the four operating modes — single file, items array, offer_id replay, and no-argument catalogue lookup — so an agent knows exactly which shape of call it is making. It also names the sibling get_result for the polling case, distinguishing itself from it.

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?

Mode selection is spelled out explicitly ("One file (file_base64) or many (items)... offer_id alone: an earlier offer... neither: the environments, parameters, limits and unit price, free"), and each response status comes with the next action ("status pricing: call again", running/settling → get_result). What is missing is any exclusion or pointer for a free-preview path before paying, which is the main decision an agent faces here.

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