On this page

A read-only MCP fixture for Odoo purchase order promises

How can an assistant read a supplier promise without gaining PO write access? Expose one bounded lookup, enforce read access in the server and return the promise record with the PO-line ID. A readOnlyHint describes the tool but does not grant or enforce permission. The supplied fixture reads local JSON and rejects write requests.

Download the numbered input files and separate answer keys. Use folder 11-odoo-readonly-mcp-po-promises. Use the editable buying worksheets, sheet 11 PO promise lookup.

Download the MIT Arc read-only promise fixture.

Start with the purchase order line and the acknowledgement

Fictional local promise record
FieldValueReview meaning
PO line ID5007Stable line owner, not description matching
PO / part / revisionPO-507 / MTR-10 / DOne released purchasing requirement
Ordered / received each12 / 4Open quantity is 8
Promise date14 Dec 2026Recorded supplier-confirmed date
Promise evidenceACK-507-v2Read the latest acknowledgement before acting

The answer distinguishes the confirmed promise from the buyer’s requested date. Eight open each are calculated as twelve ordered less four received. The fixture returns po-lines.json#id=5007 as its evidence locator. It does not prove that a supplier has acknowledged a real order or that an Odoo database contains this record.

Run the offline dispatcher and inspect its rejection

python3 test_fixture.py
python3 server.py < requests.jsonl

The archive contains server.py, the fictional PO line, three requests and regression tests. The requests list the tool, call lookup_supplier_promise for line 5007 and attempt a write tool. Expected results are one advertised lookup, open quantity eight and METHOD_NOT_ALLOWED for the write. An unknown line returns NOT_FOUND. No network or ERP credentials are required.

Keep the production adapter as a separate acceptance decision

  1. Have the ERP administrator verify the installed Odoo release, external API entitlement, access rights and record rules. The cited Odoo 20.0 page documents the External JSON-2 API, while this package is only a local MCP-style fixture.
  2. Use an account that can read only the approved purchase records. A schema annotation cannot compensate for broad server credentials or a write-capable backend.
  3. Choose a nominated PO-line ID and return the supplier acknowledgement ID, date, state and read time. Hold ambiguous, stale or unconfirmed promises instead of turning them into a delivery guarantee.
  4. Test denied records, unknown IDs and write attempts in an approved nonproduction database before approving an adapter. The buyer reviews a proposed follow-up separately from any read request.

The MCP tools specification defines discovery and tool calls and warns clients to treat annotations as untrusted unless the server is trusted. These local tests validate the dispatcher’s supplied cases, not production authentication, tenancy or full protocol interoperability.

Continue with the open-PO guide to review the wider buying workflow.

Move faster without compromising engineering rigour.

Bring one nonconfidential PO line and its acknowledgement to define the smallest useful read-only lookup.

Arc connects released parts, quotes, open purchase orders and supplier replies so buyers can review sourcing decisions and follow up on the orders they approve.