MCP Reference
TOOL Booking confirm: true

Attach Document

anamaya_booking_attach

Attach an uploaded document to a booking. Confirm-gated.

Authorization

Optional MCP gate: Authorization: Bearer <MAYA_ANAMAYA_MCP_API_TOKEN>. Required OMS identity: pass email and password on the tool call. MCP caches the OMS JWT server-side and never returns it to the LLM. This mutation requires confirm: true after human approval.

Parameters

Name Type Example Description
email Required string user@company.com OMS user email. Required on inventory and mutation tools (unless demo server env defaults are set).
password Required string •••••••• OMS user password. MCP exchanges this for a JWT and caches it server-side — the JWT is never returned to the LLM.
confirm Required boolean true Must be true for mutating tools. Without it, MCP refuses and performs no OMS write.
bookingId Required number | string 316 Booking id from create.
body Required object — Attachment payload referencing the uploaded document key.

Notes

  • Call after anamaya_document_upload returns a document key.