wafeq_request
Make arbitrary requests to any Wafeq API endpoint by specifying method, path, query, body, and headers. Use this fallback when a dedicated tool for the endpoint is not available.
Instructions
๐ด DESTRUCTIVE ยท arbitrary API call ยท Escape hatch ยท any method, any path
Call any Wafeq endpoint directly, with full control over method, path, query, body AND headers.
This is the FALLBACK, not the primary interface: every documented endpoint already has its own generated tool with a correct input schema and an accurate safety category. Reach for this only for something the bundled spec does not cover.
It is categorized destructive because the effect cannot be known in advance โ the same tool can read a report or delete an invoice. Confirm with the user before any non-GET call.
Writes get an automatic X-Wafeq-Idempotency-Key unless you supply one in headers. Authorization is always set from the server's own credentials and cannot be overridden.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body, for POST/PUT/PATCH. | |
| path | Yes | Path relative to the API base, e.g. "/invoices/" or "/invoices/inv_123/". | |
| query | No | Query parameters as a JSON object. Array values repeat the key. | |
| method | Yes | HTTP method. | |
| headers | No | Extra request headers, e.g. {"X-Wafeq-Idempotency-Key": "..."}. Authorization is ignored here. |