# MCP
Source: https://nordvec.com/docs/guides/mcp#tools

## Tools [#tools]

The tools are derived from the REST API, one tool per operation an API key may
call. A tool's name is the operation's contract path in snake case, with a
segment that repeats the one before it dropped. The scope column is the API key
scope the tool needs:

| REST operation | Contract path | MCP tool | Scope |
| --- | --- | --- | --- |
| `POST /documents/search` | `documents.search` | `documents_search` | `search:read` |
| `GET /documents/{id}` | `documents.get` | `documents_get` | `search:read` |
| `POST /documents/batch` | `documents.batchGet` | `documents_batch_get` | `search:read` |
| `GET /documents/list` | `documents.list` | `documents_list` | `search:read` |
| `POST /documents/push` | `documentPush.push` | `document_push` | `index:write` |
| `POST /documents/push/bulk` | `documentPush.pushBulk` | `document_push_bulk` | `index:write` |
| `POST /documents/push/permissions` | `documentPush.pushUpdatePermissions` | `document_push_update_permissions` | `index:write` |
| `POST /documents/push/delete` | `documentPush.pushDelete` | `document_push_delete` | `index:delete` |
| `GET /documents/push/status` | `documentPush.pushStatus` | `document_push_status` | `index:status` |
| `GET /documents/push/upload` | `documentPush.pushUploadStatus` | `document_push_upload_status` | `index:status` |
| `POST /documents/push/upload/restore` | `documentPush.pushUploadRestore` | `document_push_upload_restore` | `index:write` |
| `GET /analytics/ingestion` | `analytics.ingestion` | `analytics_ingestion` | `index:status` |
| `GET /quota/embedding` | `quota.embedding` | `quota_embedding` | `quota:read` |
| `GET /analytics/usage` | `analytics.usage` | `analytics_usage` | `quota:read` |
| `POST /tenant/audit-log/search` | `auditLog.list` | `audit_log_list` | `audit:read` |
| `GET /tenant/audit-log/catalog` | `auditLog.catalog` | `audit_log_catalog` | `audit:read` |

`tools/list` is the authoritative catalog: it shows a key only the tools its
scopes admit, and each tool's description names the scope it requires. A tool's
`inputSchema` is the operation's request schema and, where the operation
returns an object, its `outputSchema` is the response schema and results carry
`structuredContent` alongside the JSON text.

Calling a tool the key's scopes do not admit answers with a tool error naming
`FORBIDDEN`, the same refusal the REST route gives, so a client holding a
cached listing from another key learns why rather than that the tool is
missing.