Agent tools

Several calculator runs in one request, each answered or refused on its own

post/calculate-batch

Request

  • Base URL: https://api.craftquantities.com/v1
  • URL: https://api.craftquantities.com/v1/calculate-batch
  • Auth: none declared

Query parameters

detail'full' | 'summary'

full (the default): the whole answer. summary: the result lines, the citation line and the page only — fewer tokens to read.

summary: the result lines, the citation and the page only (fewer tokens); full, the default: the whole answer. A POST body may carry detail instead.

format'json' | 'md'

md: the engine's Markdown report as text/markdown (or send Accept: text/markdown); json, the default.

Request body

system'metric' | 'imperial'

The unit system for every run that does not name its own.

market'US' | 'CA' | 'UK' | 'AU' | 'INTL'

The market for every run that does not name its own.

inputUnits'base'

Send "base" to pass bare numbers on dimensioned inputs in base units (m, m², L, kg …), as the published test vectors are written. Without it a length, area or volume must carry its unit.

Response

One entry per run, in order: the calculator's answer or that run's refusal.

OR

Changes

No recorded changes to this operation across all 1 revision of this API.