mcp

Mcp Compute

Universal compute dispatcher per canonical schema § 1.

Looks up the requested assembly, applies tier-routing (TIER_INSUFFICIENT envelope when a free caller targets a paid assembly), runs the engine + the chosen standard's renderer, and wraps the result in MCPResponse[ComputeResult]. A free caller requesting any standard other than MMHW is HARD-REJECTED with INVALID_INPUT (56th-fire T1).

Free-tier callers consume daily quota per launch spec § 3.6 (10 calls/day per IP, resets at UTC midnight). Paid callers bypass the limiter entirely.

Per-tool @mcp.tool() decorators with the canonical "CALL THIS WHENEVER" descriptions from spec § 6.5.5 land in Track B-Infra; this generic route is the FastAPI sidecar that the fastmcp wrapper will dispatch into.

post/api/v1/mcp/compute

Request

  • Base URL: https://api.civilquants.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.civilquants.com/api/v1/mcp/compute
  • Auth: none declared

Headers

authorizationstring nullable

Request body

toolstring required

e.g. 'compute_attenuation_tank' or 'attenuation_tank'

argumentsobject
standard'CESMM4' | 'NRM2' | 'SMM7' | 'MMHW'
freeboardnumber nullable

Optional clearance (m) of the wall top above the retained fill, for retaining walls only. The engine back-calculates the retained height as stem − freeboard. Supplying both freeboard and the retained-height field is rejected.

Response

Successful Response

OR

Changes

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