MCP server
Nuveki runs a Model Context Protocol server at:
https://api.nuveki.ai/api/v0/mcpIt speaks Streamable HTTP without sessions. Connect with an API key as a bearer
header; the host must accept both application/json and text/event-stream
(every answer is an event stream, which lets a long run report progress).
For example, in Claude Code:
claude mcp add --transport http nuveki https://api.nuveki.ai/api/v0/mcp \ --header "Authorization: Bearer nvk_…"run_agent waits for the answer and sends progress notices while it runs. For a
long run, pass wait: false: it returns the run’s id as soon as the run has
started, and get_run reads it later. To ask many things at once, run_batch
starts up to 20 runs in one call and returns their ids; list_runs with the
batch’s batchId reads their answers. create_schedule runs an agent or team
on a schedule, and list_runs with its scheduleId reads what it ran.
list_runs, cancel_run, get_key and the other schedule tools do what the
REST routes in Runs do.
A run the API refuses answers as an isError tool result whose
structuredContent holds status and the same fields a REST refusal has
(code, error, retryAfter, conversationId, …), so a program handles both
the same way. See POST /api/v0/mcp for the
transport’s own answers (202, 400, 406, 415).
list_agents (read-only)
The Nuveki agents and teams this connection may run: each one’s username, name and what it does, and the agents each team runs. Call it to choose an agent or team for run_agent.
| Argument | Type | Required | Limits | Description |
|---|---|---|---|---|
query | string | no | at most 100 characters | Optional: only agents and teams whose username, name or description contains this. |
limit | integer | no | from 1; to 200 | Optional: at most this many of each (default 100). |
Input schema
{ "type": "object", "properties": { "query": { "type": "string", "maxLength": 100, "description": "Optional: only agents and teams whose username, name or description contains this." }, "limit": { "type": "integer", "minimum": 1, "maximum": 200, "default": 100, "description": "Optional: at most this many of each (default 100)." } }, "additionalProperties": false}run_agent
Ask Nuveki and wait for the answer (often tens of seconds). Name one agent or one team by its username from list_agents, or neither to let Nuveki choose among what this connection may run. To follow up in the same conversation, pass the conversationId an earlier run_agent returned. Each run is billed to the organization that owns this connection.
| Argument | Type | Required | Limits | Description |
|---|---|---|---|---|
agent | string | no | at most 50 characters | Optional: the agent’s username, from list_agents. Not with team. |
team | string | no | at most 50 characters | Optional: the team’s username, from list_agents. Not with agent. |
input | string | yes | at least 1 character; at most 1,000,000 characters | What to ask the agent, with any material it needs. |
conversationId | string | no | Optional: continue the conversation an earlier run_agent returned. | |
images | array | no | at most 4 items | Optional: pictures for the agent to look at, as base64 data URLs of a JPEG, PNG, WebP or GIF. |
documents | array | no | at most 4 items | Optional: files for the agent to read, attached to the run as files are in a chat: text as text, anything else (PDF, Word, Excel, PowerPoint) as base64 data. |
metadata | object | no | at most 16 keys | Optional: your own labels for the conversation, kept with it. Never read as an instruction. Each key matches ^[A-Za-z0-9_.:-]{1,64}$. |
mentions | string | no | one of route, ignore | Optional: `ignore` treats the input as plain text, so an @handle in it routes nothing. Default `route`, except with `output` or `tools: 'none'`, which always ignore mentions (and refuse `route`). |
tools | string | no | one of default, none | Optional, with agent: `none` offers the agent no tools, so it answers from the input alone. |
output | object | no | Optional, with agent: the answer as one JSON document matching schema, returned as output.json (or output.violation saying why it was not one). | |
wait | boolean | no | Optional: `false` returns as soon as the run has started, with its id; read the answer later with get_run. Default `true`. | |
idempotencyKey | string | no | at least 1 character; at most 255 characters | Optional: your own unique value for this request. Repeating it returns the run it first started instead of starting another. |
Input schema
{ "type": "object", "properties": { "agent": { "type": "string", "maxLength": 50, "pattern": "^[a-z0-9]([a-z0-9._-]*[a-z0-9])?$", "description": "Optional: the agent’s username, from list_agents. Not with team." }, "team": { "type": "string", "maxLength": 50, "pattern": "^[a-z0-9-]+$", "description": "Optional: the team’s username, from list_agents. Not with agent." }, "input": { "type": "string", "minLength": 1, "maxLength": 1000000, "description": "What to ask the agent, with any material it needs." }, "conversationId": { "type": "string", "pattern": "^[a-z0-9]{20,32}$", "description": "Optional: continue the conversation an earlier run_agent returned." }, "images": { "type": "array", "maxItems": 4, "items": { "type": "string", "maxLength": 6000000, "pattern": "^data:image\\/(jpeg|png|webp|gif);base64,[A-Za-z0-9+/]+=*$" }, "description": "Optional: pictures for the agent to look at, as base64 data URLs of a JPEG, PNG, WebP or GIF." }, "documents": { "type": "array", "maxItems": 4, "items": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 200, "description": "The file name the agent sees, e.g. sales.csv: a letter or digit in it, no slashes, no control or invisible formatting characters." }, "text": { "type": "string", "minLength": 1, "maxLength": 1000000, "description": "The file as text. Exactly one of text and data." }, "data": { "type": "string", "minLength": 1, "maxLength": 6000000, "pattern": "^[A-Za-z0-9+/]+=*$", "description": "The file as base64, for a file that is not text (a PDF, a spreadsheet, a deck); its name's extension decides its type. Exactly one of text and data." } }, "required": [ "name" ], "additionalProperties": false }, "description": "Optional: files for the agent to read, attached to the run as files are in a chat: text as text, anything else (PDF, Word, Excel, PowerPoint) as base64 data." }, "metadata": { "type": "object", "maxProperties": 16, "additionalProperties": { "type": "string", "maxLength": 500 }, "description": "Optional: your own labels for the conversation, kept with it. Never read as an instruction. Each key matches ^[A-Za-z0-9_.:-]{1,64}$." }, "mentions": { "type": "string", "enum": [ "route", "ignore" ], "description": "Optional: `ignore` treats the input as plain text, so an @handle in it routes nothing. Default `route`, except with `output` or `tools: 'none'`, which always ignore mentions (and refuse `route`)." }, "tools": { "type": "string", "enum": [ "default", "none" ], "description": "Optional, with agent: `none` offers the agent no tools, so it answers from the input alone." }, "output": { "type": "object", "properties": { "name": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,63}$", "description": "The shape’s name, snake_case." }, "schema": { "type": "object", "description": "A JSON Schema (draft-07) the whole answer must match, at most 32,000 characters serialized. Its descriptions are read by the agent as part of the platform's instruction and are not security-checked: it is the program's own configuration, so never build it from your users' text — that goes in input. No `pattern` or `patternProperties`: a regular expression would run on the server, so say a format in the description instead. A schema whose check of an answer runs too long is answered as invalid_schema." } }, "required": [ "name", "schema" ], "additionalProperties": false, "description": "Optional, with agent: the answer as one JSON document matching schema, returned as output.json (or output.violation saying why it was not one)." }, "wait": { "type": "boolean", "default": true, "description": "Optional: `false` returns as soon as the run has started, with its id; read the answer later with get_run. Default `true`." }, "idempotencyKey": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[A-Za-z0-9_.:-]+$", "description": "Optional: your own unique value for this request. Repeating it returns the run it first started instead of starting another." } }, "required": [ "input" ], "additionalProperties": false}run_batch
Start up to 20 runs in one call, each with the arguments run_agent takes (without wait), and get each run's id back at once. They start in order, as many at a time as this connection may run together (runs continuing one conversation one after another); read their answers with list_runs and the batchId this returns. A run that cannot start within 10 minutes ends refused (RUN_NOT_STARTED) and can be sent again. Use it for many independent asks — one per item of a list — rather than calling run_agent for each. Each run is billed as run_agent's is.
| Argument | Type | Required | Limits | Description |
|---|---|---|---|---|
runs | array | yes | at most 20 items | The runs to start, in order. Give each an idempotencyKey to resend the batch safely. A key that works in no project, or in an archived one, has the whole batch refused, a resend included; the runs an earlier send recorded stay readable with list_runs. |
Input schema
{ "type": "object", "properties": { "runs": { "type": "array", "minItems": 1, "maxItems": 20, "items": { "type": "object", "properties": { "agent": { "type": "string", "maxLength": 50, "pattern": "^[a-z0-9]([a-z0-9._-]*[a-z0-9])?$", "description": "Optional: the agent’s username, from list_agents. Not with team." }, "team": { "type": "string", "maxLength": 50, "pattern": "^[a-z0-9-]+$", "description": "Optional: the team’s username, from list_agents. Not with agent." }, "input": { "type": "string", "minLength": 1, "maxLength": 1000000, "description": "What to ask the agent, with any material it needs." }, "conversationId": { "type": "string", "pattern": "^[a-z0-9]{20,32}$", "description": "Optional: continue the conversation an earlier run_agent returned." }, "images": { "type": "array", "maxItems": 4, "items": { "type": "string", "maxLength": 6000000, "pattern": "^data:image\\/(jpeg|png|webp|gif);base64,[A-Za-z0-9+/]+=*$" }, "description": "Optional: pictures for the agent to look at, as base64 data URLs of a JPEG, PNG, WebP or GIF." }, "documents": { "type": "array", "maxItems": 4, "items": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 200, "description": "The file name the agent sees, e.g. sales.csv: a letter or digit in it, no slashes, no control or invisible formatting characters." }, "text": { "type": "string", "minLength": 1, "maxLength": 1000000, "description": "The file as text. Exactly one of text and data." }, "data": { "type": "string", "minLength": 1, "maxLength": 6000000, "pattern": "^[A-Za-z0-9+/]+=*$", "description": "The file as base64, for a file that is not text (a PDF, a spreadsheet, a deck); its name's extension decides its type. Exactly one of text and data." } }, "required": [ "name" ], "additionalProperties": false }, "description": "Optional: files for the agent to read, attached to the run as files are in a chat: text as text, anything else (PDF, Word, Excel, PowerPoint) as base64 data." }, "metadata": { "type": "object", "maxProperties": 16, "additionalProperties": { "type": "string", "maxLength": 500 }, "description": "Optional: your own labels for the conversation, kept with it. Never read as an instruction. Each key matches ^[A-Za-z0-9_.:-]{1,64}$." }, "mentions": { "type": "string", "enum": [ "route", "ignore" ], "description": "Optional: `ignore` treats the input as plain text, so an @handle in it routes nothing. Default `route`, except with `output` or `tools: 'none'`, which always ignore mentions (and refuse `route`)." }, "tools": { "type": "string", "enum": [ "default", "none" ], "description": "Optional, with agent: `none` offers the agent no tools, so it answers from the input alone." }, "output": { "type": "object", "properties": { "name": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,63}$", "description": "The shape’s name, snake_case." }, "schema": { "type": "object", "description": "A JSON Schema (draft-07) the whole answer must match, at most 32,000 characters serialized. Its descriptions are read by the agent as part of the platform's instruction and are not security-checked: it is the program's own configuration, so never build it from your users' text — that goes in input. No `pattern` or `patternProperties`: a regular expression would run on the server, so say a format in the description instead. A schema whose check of an answer runs too long is answered as invalid_schema." } }, "required": [ "name", "schema" ], "additionalProperties": false, "description": "Optional, with agent: the answer as one JSON document matching schema, returned as output.json (or output.violation saying why it was not one)." }, "idempotencyKey": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[A-Za-z0-9_.:-]+$", "description": "Optional: your own unique value for this request. Repeating it returns the run it first started instead of starting another." } }, "required": [ "input" ], "additionalProperties": false }, "description": "The runs to start, in order. Give each an idempotencyKey to resend the batch safely. A key that works in no project, or in an archived one, has the whole batch refused, a resend included; the runs an earlier send recorded stay readable with list_runs." } }, "required": [ "runs" ], "additionalProperties": false}get_run (read-only)
A run this connection started, by the id run_agent returned: whether it is still running, and once it has ended, its answer, usage and cost, or why it stopped. Use it after run_agent with wait false.
| Argument | Type | Required | Limits | Description |
|---|---|---|---|---|
runId | string | yes | The id run_agent returned. |
Input schema
{ "type": "object", "properties": { "runId": { "type": "string", "pattern": "^[a-z0-9]{20,32}$", "description": "The id run_agent returned." } }, "required": [ "runId" ], "additionalProperties": false}list_runs (read-only)
The runs this connection started, newest first: each one’s id, state, agent and cost.
| Argument | Type | Required | Limits | Description |
|---|---|---|---|---|
limit | integer | no | from 1; to 100 | Optional: at most this many (default 20). |
status | string | no | one of queued, running, completed, no_answer, blocked, refused, failed, cancelled | Optional: only runs in this state. |
conversationId | string | no | Optional: only runs in this conversation. | |
batchId | string | no | Optional: only the runs of the batch run_batch returned. | |
scheduleId | string | no | Optional: only the runs of the schedule create_schedule returned. | |
before | string | no | Optional: only runs older than this run id, for the next page. |
Input schema
{ "type": "object", "properties": { "limit": { "type": "integer", "minimum": 1, "maximum": 100, "default": 20, "description": "Optional: at most this many (default 20)." }, "status": { "type": "string", "enum": [ "queued", "running", "completed", "no_answer", "blocked", "refused", "failed", "cancelled" ], "description": "Optional: only runs in this state." }, "conversationId": { "type": "string", "pattern": "^[a-z0-9]{20,32}$", "description": "Optional: only runs in this conversation." }, "batchId": { "type": "string", "pattern": "^[a-z0-9]{20,32}$", "description": "Optional: only the runs of the batch run_batch returned." }, "scheduleId": { "type": "string", "pattern": "^[a-z0-9]{20,32}$", "description": "Optional: only the runs of the schedule create_schedule returned." }, "before": { "type": "string", "pattern": "^[a-z0-9]{20,32}$", "description": "Optional: only runs older than this run id, for the next page." } }, "additionalProperties": false}cancel_run
Stops a run this connection started that is still running. Its conversation keeps what it wrote; what it spent stays spent.
| Argument | Type | Required | Limits | Description |
|---|---|---|---|---|
runId | string | yes | The id run_agent returned. |
Input schema
{ "type": "object", "properties": { "runId": { "type": "string", "pattern": "^[a-z0-9]{20,32}$", "description": "The id run_agent returned." } }, "required": [ "runId" ], "additionalProperties": false}get_key (read-only)
This connection’s API key: its spend caps and run rate, and what it has spent today and this month, so you can pace your runs.
| Argument | Type | Required | Limits | Description |
|---|
Input schema
{ "type": "object", "properties": {}, "additionalProperties": false}get_file (read-only)
A fresh link to one of this connection's files: a run's documents and pictures, and every file its turns made (run_agent's output.files). Use it when an earlier link has expired; each link lasts an hour.
| Argument | Type | Required | Limits | Description |
|---|---|---|---|---|
id | string | yes | The file id a run returned in output.files. |
Input schema
{ "type": "object", "properties": { "id": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$", "description": "The file id a run returned in output.files." } }, "required": [ "id" ], "additionalProperties": false}create_schedule
Run an agent or team on a schedule, as this connection: each time it comes due it starts one run of input, billed and limited as run_agent's runs are. Give cron (a repeat, at most every 15 minutes) or at (one time, local YYYY-MM-DDTHH:mm), and timezone. Its runs never wait: read them with list_runs and the scheduleId this returns. While this connection's project is archived its schedules make no runs; they pick up again when it is unarchived. A connection holds at most 25 schedules, each one of the organization's workflows, so the plan's workflow limit can refuse one too. The answer estimates what its runs cost over 30 days. Pass idempotencyKey so a retry makes no second schedule.
| Argument | Type | Required | Limits | Description |
|---|---|---|---|---|
agent | string | no | at most 50 characters | Optional: the agent’s username, from list_agents. Not with team. |
team | string | no | at most 50 characters | Optional: the team’s username, from list_agents. Not with agent. |
input | string | yes | at least 1 character; at most 1,000,000 characters | What each run asks, with any material the agent needs. |
metadata | object | no | at most 16 keys | Optional: your own labels for the conversation, kept with it. Never read as an instruction. Each key matches ^[A-Za-z0-9_.:-]{1,64}$. |
mentions | string | no | one of route, ignore | Optional: `ignore` treats the input as plain text, so an @handle in it routes nothing. Default `route`, except with `output` or `tools: 'none'`, which always ignore mentions (and refuse `route`). |
cron | string | no | at most 50 characters | A repeat: a 5-field cron read in timezone, at most every 15 minutes (e.g. "30 8 * * 1-5"). Leave out for one run at `at`. |
at | string | no | One run at this local time in timezone, YYYY-MM-DDTHH:mm, still ahead. With cron, the first run. | |
timezone | string | yes | at most 50 characters | The IANA time zone cron and at are read in. |
name | string | no | at most 100 characters | Optional: your name for the schedule. |
idempotencyKey | string | no | at least 1 character; at most 255 characters | Optional: your own unique value, so a retry answers with the schedule it first made. |
Input schema
{ "type": "object", "properties": { "agent": { "type": "string", "maxLength": 50, "pattern": "^[a-z0-9]([a-z0-9._-]*[a-z0-9])?$", "description": "Optional: the agent’s username, from list_agents. Not with team." }, "team": { "type": "string", "maxLength": 50, "pattern": "^[a-z0-9-]+$", "description": "Optional: the team’s username, from list_agents. Not with agent." }, "input": { "type": "string", "minLength": 1, "maxLength": 1000000, "description": "What each run asks, with any material the agent needs." }, "metadata": { "type": "object", "maxProperties": 16, "additionalProperties": { "type": "string", "maxLength": 500 }, "description": "Optional: your own labels for the conversation, kept with it. Never read as an instruction. Each key matches ^[A-Za-z0-9_.:-]{1,64}$." }, "mentions": { "type": "string", "enum": [ "route", "ignore" ], "description": "Optional: `ignore` treats the input as plain text, so an @handle in it routes nothing. Default `route`, except with `output` or `tools: 'none'`, which always ignore mentions (and refuse `route`)." }, "cron": { "type": "string", "maxLength": 50, "description": "A repeat: a 5-field cron read in timezone, at most every 15 minutes (e.g. \"30 8 * * 1-5\"). Leave out for one run at `at`." }, "at": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$", "description": "One run at this local time in timezone, YYYY-MM-DDTHH:mm, still ahead. With cron, the first run." }, "timezone": { "type": "string", "maxLength": 50, "description": "The IANA time zone cron and at are read in." }, "name": { "type": "string", "maxLength": 100, "description": "Optional: your name for the schedule." }, "idempotencyKey": { "type": "string", "minLength": 1, "maxLength": 255, "pattern": "^[A-Za-z0-9_.:-]+$", "description": "Optional: your own unique value, so a retry answers with the schedule it first made." } }, "required": [ "input", "timezone" ], "additionalProperties": false}list_schedules (read-only)
The schedules this connection made, newest first: what each asks of whom, its repeat, and when it runs next.
| Argument | Type | Required | Limits | Description |
|---|---|---|---|---|
limit | integer | no | from 1; to 25 | Optional: at most this many. |
Input schema
{ "type": "object", "properties": { "limit": { "type": "integer", "minimum": 1, "maximum": 25, "default": 25, "description": "Optional: at most this many." } }, "additionalProperties": false}get_schedule (read-only)
One schedule this connection made: when it runs next and last, and what its runs would cost over 30 days.
| Argument | Type | Required | Limits | Description |
|---|---|---|---|---|
scheduleId | string | yes | The id create_schedule returned. |
Input schema
{ "type": "object", "properties": { "scheduleId": { "type": "string", "pattern": "^[a-z0-9]{20,32}$", "description": "The id create_schedule returned." } }, "required": [ "scheduleId" ], "additionalProperties": false}update_schedule
enabled false stops its runs until it is resumed with enabled true. A schedule made in another project than this connection works in now, or a one-time schedule whose run is behind it, cannot be resumed: make a new one.
| Argument | Type | Required | Limits | Description |
|---|---|---|---|---|
scheduleId | string | yes | The id create_schedule returned. | |
enabled | boolean | yes | false pauses it; true resumes it. |
Input schema
{ "type": "object", "properties": { "scheduleId": { "type": "string", "pattern": "^[a-z0-9]{20,32}$", "description": "The id create_schedule returned." }, "enabled": { "type": "boolean", "description": "false pauses it; true resumes it." } }, "required": [ "scheduleId", "enabled" ], "additionalProperties": false}delete_schedule
The schedule runs no more. The runs it made stay readable with list_runs.
| Argument | Type | Required | Limits | Description |
|---|---|---|---|---|
scheduleId | string | yes | The id create_schedule returned. |
Input schema
{ "type": "object", "properties": { "scheduleId": { "type": "string", "pattern": "^[a-z0-9]{20,32}$", "description": "The id create_schedule returned." } }, "required": [ "scheduleId" ], "additionalProperties": false}