TOOL Booking confirm: true
Document Upload
anamaya_document_upload
Upload a document (e.g. Surat Jalan) as base64. 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. |
fileBase64 Required | string | — | Base64-encoded file contents. |
fileName Required | string | surat-jalan.pdf | Original file name. |
type | string | ATTACHMENT_BOOKING | Document type. Defaults to ATTACHMENT_BOOKING. |
Notes
- Do not paste document contents into long-term LLM memory.