# Nodi agent APIs

Nodi AI (usenodi.com) makes Nodi Commerce, the AI employee for ecommerce businesses in the UAE, the Gulf and Bangladesh. These public endpoints let AI agents use the same calculators and information as the website. They are read-only, need no sign-in or API key, and store nothing.

| What | Where |
|---|---|
| MCP server (Streamable HTTP) | `POST https://www.usenodi.com/mcp` |
| MCP server card | https://www.usenodi.com/.well-known/mcp/server-card.json |
| A2A agent (v1.0, JSON-RPC) | `POST https://www.usenodi.com/a2a` |
| A2A agent card | https://www.usenodi.com/.well-known/agent-card.json |
| OpenAPI description | https://www.usenodi.com/openapi.json |
| APIs.json (API directory listing) | https://www.usenodi.com/apis.json |
| API catalog (RFC 9727) | https://www.usenodi.com/.well-known/api-catalog |
| Access (no sign-in needed) | https://www.usenodi.com/auth.md |
| Our bot (NodiCheckup) | https://www.usenodi.com/bots/nodicheckup |

## Tools

Both endpoints offer the same six tools (MCP tool name = A2A skill id):

| Tool | What it does | Arguments |
|---|---|---|
| `calculate_uae_vat` | Adds 5% UAE VAT, or finds the VAT inside a VAT-inclusive price | `amount` (AED), `mode`: `add` or `remove` |
| `whatsapp_link` | Builds a wa.me click-to-chat link | `phone`, `message` (optional) |
| `order_profit` | Profit per order after VAT, fees, delivery and refused cash-on-delivery parcels (AED) | `price`, `product_cost`, optional `delivery_cost`, `packaging_cost`, `cod_share_pct`, `cod_fee`, `cod_refusal_pct`, `return_cost`, `card_fee_pct`, `card_fee_fixed`, `vat_registered` |
| `whatsapp_api_cost` | Monthly Meta fees for WhatsApp Business API messages in the UAE or Saudi Arabia | `market`: `AE` or `SA`, `currency`, `marketing`, `utility`, `authentication`, `service`, `numbers` |
| `nodi_pricing` | Nodi's plans, prices, trial and sign-up links | `currency`: `AED`, `USD` or `BDT` |
| `search_guides` | Finds usenodi.com guides and tools for a seller's question | `query`, `limit` (optional) |

## MCP

Add `https://www.usenodi.com/mcp` as a remote MCP server in your client. It is stateless and answers in JSON.

```bash
curl https://www.usenodi.com/mcp \
  -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"calculate_uae_vat","arguments":{"amount":199,"mode":"remove"}}}'
```

## A2A

Call `SendMessage`. A data part runs a skill; a text part returns matching guides. The answer comes back at once as a message with a JSON data part. Streaming, push notifications and stored tasks are not supported.

```bash
curl https://www.usenodi.com/a2a \
  -H 'content-type: application/json' -H 'A2A-Version: 1.0' \
  -d '{"jsonrpc":"2.0","id":1,"method":"SendMessage","params":{"message":{"messageId":"1","role":"ROLE_USER","parts":[{"data":{"skill":"nodi_pricing","arguments":{"currency":"AED"}}}]}}}'
```

## Limits and contact

Prices and rates match the website on the day of the request; Meta's WhatsApp rates can change. Questions: hello@usenodi.com.
