Skip to the main content

Programmatic Surface · 14 Published Tools · REST + MCP + CLI

Programmatic API, MCP & CLI access

Call the same deterministic power, thermal, and structural solver that produces our engineering studies from your own software, autonomous agents, or terminal—with published unit weights, evidence classes on every output, and hard euro spend caps.

THE SHORT ANSWER

Bearer gfk1.* · MCP 2025-06-18

Programmatic access exposes the GridForge Capacity Engine over HTTPS JSON, a JSON-RPC 2.0 Model Context Protocol endpoint, and a zero-dependency Python command-line client. Public qualification and cost-estimation calls run free without authentication, while metered endpoints authenticate with signed bearer keys, honour idempotency headers, and stop cleanly at customer spend caps.

1 · HTTPS JSON API

OpenAPI 3.1 REST endpoints

Deterministic JSON schemas validated directly from /openapi.json and documented route-by-route at /docs/api. Send Authorization: Bearer gfk1.* and an Idempotency-Key UUIDv7 header on metered POST calls.

2 · Model Context Protocol

JSON-RPC 2.0 at `/mcp`

Auto-discoverable via /.well-known/mcp.json. Exposes all 14 gridforge_* tools with per-tool tier enforcement and pre-flight cost checks via gridforge_estimate.

3 · CLI & Cloud Shell

Zero-dependency `gridforge` CLI

100% Python stdlib client with RFC 8628 device sign-in, offline --local parity, and an in-browser /console/shell sandbox.

Catalogue Pricing · Single Source of Truth

Free allowance, pay-as-you-go, and monthly committed tiers

Machine billing spec (/llms-api-billing.txt)

Developer & Arrears

Pay-as-you-go

€2 / unit

Includes 25 free developer units. Choose a hard monthly cap from €20 to €2,000 (default €100); sub-€5 balances roll forward.

Mint key in console →

Monthly Subscription

API — Triage

€900 per month

600 units / month

Metered access to the engine for one team screening a portfolio it already owns. 600 units a month: 600 screen calls, or 120 full solves, or any mix. The free qualifier stays free and never touches the allowance.

Subscribe in console →

Monthly Subscription

API — Scale

€2,900 per month

2,500 units / month

For a platform or fund pricing halls continuously rather than in batches. 2,500 units a month and the portfolio endpoint billed per hall. Change notes (/v1/diff) are available on every plan.

Subscribe in console →

Monthly Subscription

API — Platform

€7,500 per month

10,000 units / month

For embedding the engine in a product your own customers use. 10,000 units a month at the lowest per-unit rate we sell. Showing output to your own customers is not licensed by default: ask us before you do, and any terms are agreed by email, not by the plan.

Subscribe in console →

Published tool & endpoint unit weights (`tools.json`)

Read directly from the committed engine contract (/reference/tools.json). Screening-mode output only: no issued engineering opinion or professional indemnity.

GridForge MCP tool names, HTTP endpoints, authentication tiers, and metered unit weights
MCP ToolREST EndpointAuth TierMetered Weight
gridforge_qualifyPOST /v1/qualifyPublic (no key)0 units (free)
gridforge_estimatePOST /v1/estimatePublic (no key)0 units (free)
gridforge_screenPOST /v1/screenBearer gfk1.*1 unit
gridforge_comparePOST /v1/compareBearer gfk1.*1 unit
gridforge_studyPOST /v1/studyBearer gfk1.*5 units
gridforge_portfolioPOST /v1/portfolioBearer gfk1.*1 unit / hall
gridforge_diffPOST /v1/diffBearer gfk1.*2 units
gridforge_specPOST /v1/specBearer gfk1.*3 units
gridforge_bidsPOST /v1/bidsBearer gfk1.*2 units
gridforge_power_assessPOST /v1/power/assessBearer gfk1.*5 units
gridforge_power_deploy_assessPOST /v1/power/deploy/assessBearer gfk1.*5 units
gridforge_power_deploy_specPOST /v1/power/deploy/specBearer gfk1.*3 units
gridforge_power_deploy_bidsPOST /v1/power/deploy/bidsBearer gfk1.*2 units
gridforge_proposalPOST /v1/proposalBearer gfk1.*2 units

Common questions

Which GridForge API and MCP operations are free without an API key?
`gridforge_qualify` (`POST /v1/qualify`) and `gridforge_estimate` (`POST /v1/estimate`) carry a zero-unit weight and answer without an API key, alongside discovery reads such as `/v1/version`, `/v1/tools`, and `/v1/calibration`.
How do pay-as-you-go metering, free developer units, and spend caps work?
New developer keys include 25 free units; pay-as-you-go usage beyond the free scope is metered at €2 per unit with a customer-chosen monthly spend cap between €20 and €2,000 that halts accruals with HTTP 402 once reached.
Are rejected, invalid, or retried API requests ever billed?
No. Rejected (`4xx`) or failed (`5xx`) calls accrue zero billable units, and retries carrying the same `Idempotency-Key` header replay deterministically without double-charging.
How do AI agents and CLI users discover and authenticate against the engine?
Agents read machine metadata at /.well-known/mcp.json and /openapi.json and send signed gfk1 keys via Authorization: Bearer or X-API-Key to /mcp (MCP protocol 2025-06-18); CLI users authenticate via RFC 8628 device flow with gridforge login.