Skip to main content

Which API should I use?

In brief

Pick the surface by intent: sourced lookup (v2), tracked and logged intervention (Diagnostic Guide Beta sessions), or MCP agents. One contract, two uses.

Two uses, one contract

https://api.askmarcel.app exposes REST v2 (sourced lookup + Diagnostic Guide Beta sessions) and an MCP server at https://mcp.askmarcel.app (protocol 2025-06-18, manifest 1.3.0-beta.1). Two distinct perimeters: documentary lookup (400k+ codes) vs Diagnostic Guide Beta (5 anchor brands, families pac_air_eau / pac_air_air, pack 0.0.1).

Decision matrix

Use this table before integrating. Listed paths and tools are the public contract (WebApp snapshot).

  • [Live] Agents, software and automations that must cite or abstain
  • When: You want a sourced error code or fault: an exact manual for the equipment, with the page — otherwise abstention (not billed). A danger (CO, high voltage…) returns the emergency before any search.
  • REST: /v2/equipment/resolve, /v2/lookups, /v2/sources/{source_token}, /v2/sources/{source_token}/page
  • MCP: resolve_equipment, lookup_fault, get_source
  • Limit: Documentary read: no multi-turn session. Every answer returns a next step towards the session.
  • [Beta] CMMS, FSM, cockpit — tracked and logged intervention
  • When: You want the Diagnostic Guide: safe next check, session journal, and resume by session_id. Requires the diagnostics.write scope.
  • REST: /v2/diagnostic-sessions, /v2/diagnostic-sessions/{session_id}, /v2/diagnostic-sessions/{session_id}/responses, /v2/diagnostic-sessions/{session_id}/close, /v2/diagnostic-sessions/{session_id}/summary
  • MCP: start_diagnostic, respond_to_diagnostic, get_diagnostic, close_diagnostic
  • Limit: Beta — 5 anchor brands, Air/Water + Air/Air HP; not full depth on 400k codes.
  • [Live] ChatGPT, Claude, custom agents
  • When: Your agent calls the 7 MCP tools on mcp.askmarcel.app (protocol 2025-06-18), with OAuth or an API key.
  • REST: — (MCP only)
  • MCP: resolve_equipment, lookup_fault, get_source, start_diagnostic (+3)
  • Limit: Read tools require docs.read; session tools require diagnostics.read or diagnostics.write (new OAuth consent).

Diagnostic Guide Beta perimeter

The Diagnostic Guide does not cover the global error-code dictionary. Closed Beta: panasonic, daikin, atlantic, mitsubishi-electric, gree; 148/958 codes with a causal path (~15%). Beta 0.0.1 packs are mutable: a resumed session uses the current pack content. The manufacturer lookup at start remains journaled.

Do not conflate

A code recognized in lookup may exist without a compatible Diagnostic Guide procedure — Marcel cites the manufacturer then abstains from action when no safe pack check exists.

Abstention and billing

POST /v2/lookups / lookup_fault: without an exact manual for the equipment the status is no_exact_source or model_ambiguous; without brand and model, equipment_required; facing a danger, emergency. These cases cost no unit and the AskMarcel-Usage header is 0. Only a found answer with a served source consumes 1 unit. A retry with the same Idempotency-Key and the same request is not re-billed for 10 minutes.

MCP and OAuth

Scopes: docs.read (lookup, equipment, sources), diagnostics.read (read a session), diagnostics.write (create, respond, close). OAuth tokens issued before the change keep docs.read; sessions need a new consent. Supported protocol: 2025-06-18 only (not 2026-07-28 until deployed).

Next steps

Quickstart → Developer key → first sourced call. For commercial evaluation or a pilot: field REST /solutions/hvac-field-service-software; support REST /solutions/hvac-support-automation; error-code API /api; MCP /solutions/hvac-mcp-server; Diagnostic Guide /solutions/hvac-diagnostic-harness.

  • Quickstart: /api/docs/quickstart
  • REST details: /api/docs/rest
  • MCP: /api/docs/mcp
  • Machine contract: https://api.askmarcel.app/v2/public-surface.json

Create my key →

Create my key →