---
canonical_url: "https://docs.composio.dev/toolkits/opper_mcp"
markdown_url: "https://docs.composio.dev/toolkits/opper_mcp.md"
product: "platform"
version: null
last_updated: null
---

# Opper MCP

Opper MCP lets agents run and compare AI models, generate images, video and speech, manage projects, inference keys, guardrail rules and dynamic model routes, and read traces and usage.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 48
- **Triggers:** 0
- **Slug:** `OPPER_MCP`
- **Version:** 00000000_00

## Tools

### Call model

**Slug:** `OPPER_MCP_CALL_MODEL`

Use this to run or test a model inside a project, with a project inference key ID from create_api_key or list_api_keys; for your own organization-scoped personal key, use call_model_with_org_key. It runs a non-streaming text or structured-output model call. Send model and messages; max_tokens, temperature and response_format are optional. For typed output use response_format={type:json_schema,json_schema:{name:answer,strict:true,schema:<JSON Schema>}} and choose a model supporting structured_output. Normal inference costs, plan restrictions and policy checks apply. Use get_trace with the returned meta.trace_uuid when retention is enabled. Advanced tool calling and multimodal inputs use the SDK or HTTP API. Requires runtime:call.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Inference key ID in this project; its secret is never returned by this operation |
| `uuid` | string | Yes | Project UUID in the authorized organization |
| `model` | string | Yes | Exact model ID from list_models, or a deployed dynamic/<route-name>. |
| `messages` | array | Yes | Text conversation to send to the model. A single user message is enough to test a model. |
| `max_tokens` | integer | No | Optional output token limit. Omit to use the model default. |
| `temperature` | number | No | Optional sampling temperature. Omit to use the model default. |
| `response_format` | string | No | Optional structured output. Omit or use null for ordinary text. json_object requests JSON; json_schema specifies its shape. The returned message content contains the generated JSON text. |

### Call model with org key

**Slug:** `OPPER_MCP_CALL_MODEL_WITH_ORG_KEY`

Use this to run or test a model with your own organization-scoped personal inference key ID from create_organization_personal_key; for a project key, use call_model. It runs a non-streaming model call. Omit project_uuid for organization policies, or select a live project in your organization. Normal policy, member budget and inference charges apply. Secrets remain server-side. Use get_trace_with_org_key with the same optional project target when retention is enabled. Requires runtime:call.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Inference key ID in this project; its secret is never returned by this operation |
| `model` | string | Yes | Exact model ID from list_models, or a deployed dynamic/<route-name>. |
| `messages` | array | Yes | Text conversation to send to the model. A single user message is enough to test a model. |
| `max_tokens` | integer | No | Optional output token limit. Omit to use the model default. |
| `temperature` | number | No | Optional sampling temperature. Omit to use the model default. |
| `project_uuid` | string | No | Optional project target for your own organization-scoped personal key. Omit for organization policies. |
| `response_format` | string | No | Optional structured output. Omit or use null for ordinary text. json_object requests JSON; json_schema specifies its shape. The returned message content contains the generated JSON text. |

### Check model access

**Slug:** `OPPER_MCP_CHECK_MODEL_ACCESS`

Read-only preflight for an exact callable text model ID from list_models and optional project UUID. Checks plan, provider entitlement, effective policy and billing without inference or a paid probe. Requires account:read. Policy is marked requires_authorization when controls:read is missing. Missing billing/provider information stays unknown; no_known_blockers is a snapshot and never guarantees a successful runtime call. Without a project UUID, project policy and spend caps are not assessed. Dynamic routes and BYOK models are outside this public-catalog preflight.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `model` | string | Yes | Exact callable model ID (chat, image, video or speech) returned by list_models. |
| `project_uuid` | string | No | Optional project UUID within the authorized organization. Omit for organization-only checks. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | Yes |  |
| `meta` | object | Yes |  |

### Create api key

**Slug:** `OPPER_MCP_CREATE_API_KEY`

Mints an inference key for the project. The full key is returned only on initial creation when return_secret is not false; the user MCP tool defaults false. Optional `allowed_ips` restricts the key to those addresses. Each entry is an IP address or CIDR range (for example 203.0.113.7 or 198.51.100.0/24). Public addresses only, up to 100 entries, ranges no wider than /8 (IPv4) or /16 (IPv6). An empty list accepts calls from any IP. Calls from any other address get 403 with code `ip_not_allowed`. A change takes up to a minute to apply. Reuse idempotency_key with identical arguments after uncertain results. A replay returns existing metadata without a secret; changed arguments or a deleted key return 409. Requires the `apikeys:write` scope. Runtime secrets are omitted by default; call_model uses the returned key ID. For local application setup use opper keys create --project <uuid> --name <name> --output <env-file> (native OAuth, private file delivery). Supply idempotency_key and reuse it with identical arguments on retries.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `kind` | string ("personal" | "project") | No | personal (the default) or project. A project key needs the project_keys:manage permission. |
| `name` | string | Yes |  |
| `uuid` | string | Yes | Project UUID |
| `allowed_ips` | array | No | IP addresses or CIDR ranges the key accepts calls from (for example 203.0.113.7 or 198.51.100.0/24). Public addresses only; up to 100 entries; ranges no wider than /8 for IPv4 or /16 for IPv6. Empty accepts any IP. Calls from any other address get 403 ip_not_allowed. A change takes up to a minute to apply. |
| `return_secret` | boolean | No | Default false: keep the runtime secret on the server and return its ID for the matching model-call tool. For local application setup use opper keys create to install a key privately. Set true only when the user explicitly needs the raw secret and the client can deliver it privately; raw tool results may enter the model conversation. |
| `idempotency_key` | string | No | Generate a unique operation ID (for example UUID) before creation. Reuse it and the exact original arguments after a timeout or uncertain result; never generate a new ID merely to retry. A changed payload or deleted original resource returns 409. Key replays return metadata without the raw secret. |
| `monthly_limit_cents` | integer | No | Monthly spend cap in US cents (500 is $5). Needs controls:write. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No | Empty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`. |

### Create dynamic route

**Slug:** `OPPER_MCP_CREATE_DYNAMIC_ROUTE`

Creates a route draft. Omit graph to seed a complete default graph, then use data.draft.graph as a starting point. Empty graphs are invalid. Omit deploy or set deploy=false to keep the route unpublished; deploy=true changes live routing immediately. Review data.draft.validation, save changes with update_dynamic_route_draft, then use simulate_dynamic_route without version_number to test the draft before deploy_dynamic_route. Optional display_name is a human label separate from the route identifier; it preserves case and spaces. Invoke a deployed route with model=dynamic/<name>; invocation_model contains the exact string. Requires the `dynamic_routes:write` scope.

Graph format: an object with an `elements` array. Each element has a unique `id`, a `type`, optional `properties`, and `outputs`, an object mapping output names to `{"elementId":"target-node-id"}`. Include `id: START, type: start` and `id: END, type: end`; `input` and `output` are not node types. A minimal deployable graph (replace the model with an available catalog ID permitted by your policy):
```json
{"elements":[{"id":"START","type":"start","outputs":{"next":{"elementId":"primary"}}},{"id":"primary","type":"model","properties":{"model":"cerebras/gpt-oss-120b"},"outputs":{"success":{"elementId":"END"},"fallback":{"elementId":"END"}}},{"id":"END","type":"end","outputs":{}}]}
```

Supported node types and properties:
- `start`: the START node; `outputs.next` selects the first node.
- `end`: the END node; `outputs` is `{}`.
- `model`: `properties.model` is a catalog model ID. `outputs.success` targets END or an observe node; `outputs.fallback` targets another model, pool, or END.
- `pool`: `properties.models` contains 2-10 `{model,metrics}` candidates; `properties.expression` is a numeric CEL expression such as `model.cost`, sorted ascending. Uses the same success/fallback outputs as model.
- `conditional`: `properties.cases` contains `{id,expression}` entries; each expression is a CEL predicate over `metadata`, `auth`, and `input`. Connect an output for each case ID and a `default` output. The first true case wins.
- `percentage`: `properties.buckets` contains at least two `{id,weight}` entries with positive integer weights totaling 100. Connect an output for each bucket ID.
- `classifier`: `properties.cases` contains 2-10 `{id,label,instructions}` entries with unique labels, plus optional `context` and `model` properties. Connect an output per case ID; no default output. Classification failures fail the route.
- `observe`: `properties.criteria` defines an asynchronous evaluation, with optional `score_type` (`score` or `binary`), `model`, `threshold`, and `sample_rate` (both greater than 0 and at most 1). Place after model/pool success or another observe node; `outputs.next` leads to another observe node or END.

Graphs must be acyclic. Every node except END accepts at most one incoming edge; use separate model nodes on separate branches. Deployment requires each path from START to reach a model or pool before END. The route name is the model identifier on chat completions, responses, messages and native calls.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name; callers invoke the route as dynamic/<name>. Lowercase letters and digits plus '.' '_' '-'; up to 128 characters; unique per organization. |
| `note` | string | No | Release note recorded on the deployed version. Only read when deploy is true. |
| `graph` | object | No | Routing graph object with elements. Each node has id, type, outputs mapping output names to {elementId: targetID}, and optional properties. Include START/start and END/end. Supported types: start, end, model, pool, conditional, percentage, classifier, observe. Omit graph on create to seed a default; copy its returned draft.graph to customize. See tool description for node properties and topology. |
| `deploy` | boolean | No | When true the draft is validated and deployed as version 1 in the same call; the response then carries deployed_version in meta. |
| `layout` | object | No | Editor canvas positions keyed by element id. Opaque to the gateway; omit when authoring from code. |
| `description` | string | No | Free-text description shown in the platform. |
| `display_name` | string | No | Optional human label; preserves case and spaces. Empty uses the route identifier. Editable without deploying. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No |  |

### Create dynamic route deployment

**Slug:** `OPPER_MCP_CREATE_DYNAMIC_ROUTE_DEPLOYMENT`

Fail-closed deployment contract for infrastructure clients. expected_route_uuid (nonzero), expected_draft_revision, expected_active_version_number and idempotency_key are all required. Validates the row-locked reviewed draft and publishes one immutable version only if the reviewed identity and live pointer still match. Zero active version means unpublished. Missing preconditions are rejected before mutation. The separate path is absent on older backends, so clients must not fall back to /deploy when it is unavailable. Reusing identical arguments and the same key returns the original version without reactivating it; use a fresh key for every new deployment. meta.deployed_version is the original affected version and data is current observational state. Requires the `dynamic_routes:write` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name |
| `note` | string | No | Release note recorded on the new version. |
| `idempotency_key` | string | Yes | Required unique operation identifier. Reuse only for an identical retry; a fresh deployment requires a fresh key. |
| `expected_route_uuid` | string | Yes | Required nonzero identity of the route reviewed by the caller. |
| `expected_draft_revision` | integer | Yes | Required positive revision of the reviewed draft. |
| `expected_active_version_number` | integer | Yes | Required active version precondition; zero means currently unpublished. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No |  |

### Create organization personal key

**Slug:** `OPPER_MCP_CREATE_ORGANIZATION_PERSONAL_KEY`

Create a personal inference key with no project in the connected organization. Secrets are omitted by default; its ID supports call_model_with_org_key. Only kind=personal is allowed. Reuse idempotency_key and identical arguments on uncertain results; replay returns metadata without the secret. Requires apikeys:write. Runtime secrets are omitted by default; call_model_with_org_key uses the returned key ID. Project resources require an explicit project_uuid; credentials remain organization scoped. Supply idempotency_key and reuse it with identical arguments on retries.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `kind` | string ("personal" | "project") | No | personal (the default) or project. A project key needs the project_keys:manage permission. |
| `name` | string | Yes |  |
| `return_secret` | boolean | No | Default false: keep the runtime secret on the server and return its ID for the matching model-call tool. For local application setup use opper keys create to install a key privately. Set true only when the user explicitly needs the raw secret and the client can deliver it privately; raw tool results may enter the model conversation. |
| `idempotency_key` | string | No | Generate a unique operation ID (for example UUID) before creation. Reuse it and the exact original arguments after a timeout or uncertain result; never generate a new ID merely to retry. A changed payload or deleted original resource returns 409. Key replays return metadata without the raw secret. |
| `monthly_limit_cents` | integer | No | Monthly spend cap in US cents (500 is $5). Needs controls:write. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No | Empty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`. |

### Create project

**Slug:** `OPPER_MCP_CREATE_PROJECT`

Creates a project with Organization access in the calling organization. Requires the `projects:write` scope. For an atomic initial Restricted policy use the dedicated /management/v1/projects/with-access operation; access fields are not accepted here.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes |  |
| `description` | string | No |  |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No | Empty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`. |

### Create rule

**Slug:** `OPPER_MCP_CREATE_RULE`

Creates a rule with a client-generated UUID. Setting enabled applies it immediately. Read rules again to inspect effective policy. Requires the `controls:write` scope. Supply idempotency_key and reuse it with identical arguments on retries.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Client-generated UUID for this new rule. |
| `kind` | string ("guard" | "observe" | "route" | "comply") | Yes |  |
| `name` | string | No | Display name; null clears it. |
| `scope` | object | Yes | Use org for organization-wide scope; projects requires project_uuids. IDs must belong to the caller's organization. roles (role_names) and members (member_uuids) are only for comply budget rules: a monthly cap on each member's personal-key spend, where a member's own cap wins over their role's. |
| `config` | string | Yes | Config for the rule kind. Replaces the full config on update. Read existing rules and get_rule_vocabulary before changing it; organization constraints remain in force. For an allowlist, its description says which schema_version to write. Opper retention_days and upstream handling.max_retention_days are separate controls. Each anyOf branch is one rule type's exact schema without field descriptions, titled by its id; get_rule_vocabulary rule_schemas has each id with descriptions and a validated example. Read the one you need before writing config. |
| `enabled` | boolean | No | Whether the rule is enforced. Omitted on create means false. |
| `schema_version` | integer | No | Config schema version. Omit on create for version 1. Version 2 comply allowlists identify providers by company slug. Use 4 for model lists (models and exclude_models name model keys, endpoints and exclude_endpoints name endpoint ids), and 5 only when exclude_models or exclude_endpoints hold "*" wildcards or the rule has except_models or except_endpoints. |
| `idempotency_key` | string | No | Generate a unique operation ID (for example UUID) before creation. Reuse it and the exact original arguments after a timeout or uncertain result; never generate a new ID merely to retry. A changed payload or deleted original resource returns 409. Key replays return metadata without the raw secret. |
| `confirm_file_deletion` | boolean | No | Deprecated and ignored: no rule deletes stored files. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No | Empty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`. |

### Delete api key

**Slug:** `OPPER_MCP_DELETE_API_KEY`

Permanently deletes an inference key. Requires the `apikeys:write` scope. Only API keys owned by the signed-in user can be revoked.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Inference key id |
| `uuid` | string | Yes | Project UUID |

### Delete dynamic route

**Slug:** `OPPER_MCP_DELETE_DYNAMIC_ROUTE`

Soft-deletes the route. Calls to `dynamic/<name>` fail from the next request on. Requires the `dynamic_routes:write` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name |

### Delete organization personal key

**Slug:** `OPPER_MCP_DELETE_ORGANIZATION_PERSONAL_KEY`

Revoke only your own personal inference key with no project in the connected organization. Disconnecting MCP OAuth is separate. Requires apikeys:write.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Your organization-scoped personal inference key ID |

### Delete project

**Slug:** `OPPER_MCP_DELETE_PROJECT`

Soft-deletes the project and permanently deletes every inference key bound to it. Requires the `projects:delete` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | Project UUID |

### Delete rule

**Slug:** `OPPER_MCP_DELETE_RULE`

Deletes a rule and stops its enforcement; inherited rules still apply. Requires the `controls:write` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | Rule id |

### Deploy dynamic route

**Slug:** `OPPER_MCP_DEPLOY_DYNAMIC_ROUTE`

Validates the row-locked current draft and deploys it as a new immutable version, changing live routing. Optional expected_route_uuid, expected_draft_revision and expected_active_version_number bind the operation to the reviewed identity, draft and live pointer; zero active version means unpublished. A mismatch returns 409. Supply a fresh idempotency_key for each new deployment and reuse identical arguments only to retry that operation. A replay returns the original version in meta.deployed_version and current observational data without reactivating the original version or validating a later draft. meta.idempotency_replayed identifies replays. The receipt can also be recovered by the read-only deployments/{idempotency_key} endpoint. Requires the `dynamic_routes:write` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name |
| `note` | string | No | Release note recorded on the new version. |
| `idempotency_key` | string | No | Unique operation identifier. Reusing the same request returns its original deployed version without reactivating it. Use a fresh identifier for every new deployment. |
| `expected_route_uuid` | string | No | Optional route identity precondition; a recycled route name does not satisfy it. |
| `expected_draft_revision` | integer | No | Optional positive revision of the draft reviewed by the caller; a changed draft returns 409. |
| `expected_active_version_number` | integer | No | Optional active version precondition; zero means currently unpublished. A changed live pointer returns 409. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No |  |

### Generate image

**Slug:** `OPPER_MCP_GENERATE_IMAGE`

Generate one image, or edit one, with the selected project key. Unless the user names a model, pick from list_models type=image featured=true, the curated current ones; a model's params.image (detail=full) lists sizes, aspect ratios and qualities. Waits up to about 45 seconds: status completed carries url, a download link valid for 1 hour; status processing carries id for get_media_job. Identical calls return one job: for several versions, set variant 1, 2, 3. The result is deleted 24 hours after the job ends (1 hour on a zero-retention project) unless store is true. Normal costs and policy checks apply; usage.cost is the charge in USD. Requires runtime:call.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Inference key ID in this project; its secret is never returned |
| `size` | string | No | Pixel size WxH, for models that take one. |
| `uuid` | string | Yes | Project UUID in the authorized organization |
| `image` | string | No | Image to edit (needs the image_edit capability). An https URL or a file_<id>. |
| `model` | string | Yes | Image model id from list_models type=image (featured=true for the curated ones). |
| `store` | boolean | No | Also save the result to the project's files and return a reusable file_id. Default false: only a temporary link. |
| `prompt` | string | Yes | What the image shows. |
| `quality` | string | No | A tier from params.image.qualities. |
| `variant` | integer | No | Version number. |
| `parameters` | object | No | Provider settings, forwarded verbatim. Each model lists the keys it takes in params.image.parameters (list_models detail=full). |
| `resolution` | string | No | Output tier such as 1k or 2k, for models that declare one. |
| `aspect_ratio` | string | No | Shape such as 16:9, from params.image.aspect_ratios. |
| `reference_images` | array | No | Images the result draws on: subject, product or style. An https URL or a file_<id>. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes |  |
| `url` | string | No |  |
| `next` | string | No |  |
| `note` | string | No |  |
| `error` | string | No |  |
| `usage` | object | No |  |
| `status` | string ("processing" | "completed" | "failed") | Yes |  |
| `file_id` | string | No |  |
| `mime_type` | string | No |  |
| `expires_at` | string | No |  |

### Generate speech

**Slug:** `OPPER_MCP_GENERATE_SPEECH`

Turn text into speech with the selected project key. Unless the user names a model, pick from list_models type=tts featured=true, the curated current ones; a model's params lists voices and formats. The audio is saved to the project's files: the result carries audio.file_id and audio.url, a download link valid for 1 hour. The file stays until it is deleted on the platform's Files page or with DELETE /v3/files/{id}. Normal costs and policy checks apply. Requires runtime:call.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Inference key ID in this project; its secret is never returned |
| `uuid` | string | Yes | Project UUID in the authorized organization |
| `input` | string | Yes | The text to speak. |
| `model` | string | Yes | Speech model id from list_models type=tts (featured=true for the curated ones). |
| `speed` | number | No | Speaking rate, 1 is normal. |
| `voice` | string | No | A voice the model lists. |
| `format` | string | No | Audio format such as mp3 (default) or wav. |
| `parameters` | object | No | Provider settings, forwarded verbatim. Each model lists the keys it takes in params.tts.parameters (list_models detail=full). |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | No |  |
| `audio` | object | No |  |
| `model` | string | No |  |
| `usage` | object | No |  |

### Generate video

**Slug:** `OPPER_MCP_GENERATE_VIDEO`

Start a video with the selected project key. Unless the user names a model, pick from list_models type=video featured=true, the curated current ones; a model's params.video (detail=full) lists durations, resolutions, aspect ratios and capabilities. A video takes from about 30 seconds to 30 minutes or more: this waits up to about 45 seconds, then returns status processing with id; call get_media_job with it until status is completed or failed. Identical calls return one job: for several versions, set variant 1, 2, 3. The result is deleted 24 hours after the job ends (1 hour on a zero-retention project) unless store is true. Normal costs and policy checks apply; usage.cost is the charge in USD. Requires runtime:call.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Inference key ID in this project; its secret is never returned |
| `uuid` | string | Yes | Project UUID in the authorized organization |
| `audio` | string | No | Speech a talking avatar or lip-sync model follows (needs audio_to_video). An https URL or file_<id>. |
| `image` | string | No | First frame to animate (needs image_to_video). An https URL or a file_<id>. |
| `model` | string | Yes | Video model id from list_models type=video (featured=true for the curated ones). |
| `store` | boolean | No | Also save the result to the project's files and return a reusable file_id. Default false: only a temporary link. |
| `video` | string | No | Clip to extend, edit, re-voice or copy motion from (needs video_editing, video_extension or reference_video); it may be billed too. An https URL or file_<id>. |
| `prompt` | string | No | What the clip shows; none on a lip-sync model. |
| `seconds` | integer | No | Clip length, within params.video.min_duration and max_duration. |
| `variant` | integer | No | Version number. |
| `web_url` | string | No | Public https page to base the video on (needs webpage_to_video); not with image or document. |
| `document` | string | No | PDF the video is based on, an https URL or file_<id> (needs document_to_video); not with image or web_url. |
| `last_image` | string | No | Last frame the clip moves to (needs image and last_frame). An https URL or a file_<id>. |
| `parameters` | object | No | Provider settings, forwarded verbatim. Each model lists the keys it takes in params.video.parameters (list_models detail=full). |
| `resolution` | string | No | Output tier such as 720p or 1080p, from params.video.resolutions. |
| `aspect_ratio` | string | No | Shape such as 16:9 or 9:16, from params.video.aspect_ratios. |
| `reference_audios` | array | No | Voice, music or sound clips, cited as audio 1, audio 2 (needs reference_audio). An https URL or file_<id>. |
| `reference_images` | array | No | Subject or character images to keep consistent, not frames (needs reference_images). An https URL or a file_<id>. |
| `reference_videos` | array | No | More clips, cited as video 1, video 2 (needs reference_video). An https URL or file_<id>. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes |  |
| `url` | string | No |  |
| `next` | string | No |  |
| `note` | string | No |  |
| `error` | string | No |  |
| `usage` | object | No |  |
| `status` | string ("processing" | "completed" | "failed") | Yes |  |
| `file_id` | string | No |  |
| `mime_type` | string | No |  |
| `expires_at` | string | No |  |

### Get allowed models

**Slug:** `OPPER_MCP_GET_ALLOWED_MODELS`

Models passing inherited comply rules at the requested scope. This is a policy verdict, not a promise of plan eligibility, balance, or provider availability. Requires controls:read.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_uuid` | string | No | Optional project UUID in the authorized organization. The project's rules are applied on top of the organization's. Omit it for the organization alone. |

### Get context

**Slug:** `OPPER_MCP_GET_CONTEXT`

Current user, authorized organization, plan, scopes, billing snapshot and next steps. Pass project_uuid to assess that project's spend cap. Missing billing information is explicitly unknown. Requires account:read.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_uuid` | string | No | Optional project UUID in the authorized organization. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | Yes |  |
| `meta` | object | Yes |  |

### Get dynamic route

**Slug:** `OPPER_MCP_GET_DYNAMIC_ROUTE`

Returns the route, draft graph, validation issues and active version. Requires the `dynamic_routes:read` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No | Empty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`. |

### Get dynamic route deployment

**Slug:** `OPPER_MCP_GET_DYNAMIC_ROUTE_DEPLOYMENT`

Pure read of a completed deployment operation belonging to the same organization and authenticated actor. Returns the original immutable version in meta.deployed_version and the current observational route detail in data; it never activates a version, changes a draft or creates a receipt. Returns 404 when no matching completed receipt exists; a deleted-and-recreated route identity returns 409. Requires the `dynamic_routes:read` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name |
| `idempotency_key` | string | Yes | Deployment operation identifier |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No |  |

### Get dynamic route version

**Slug:** `OPPER_MCP_GET_DYNAMIC_ROUTE_VERSION`

Returns a historical deployed version, including its graph and layout. Requires the `dynamic_routes:read` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name |
| `version_number` | integer | Yes | Version number, from 1 |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No | Empty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`. |

### Get guide

**Slug:** `OPPER_MCP_GET_GUIDE`

Public, versioned recipes for getting_started, connect_app, structured_output, rules, and debugging. Each guide names live MCP tools and links to the current docs. Examples use placeholders; discover actual projects, keys and callable model IDs rather than copying placeholder values. Requires no account connection.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `topic` | string ("getting_started" | "connect_app" | "structured_output" | "rules" | "debugging" | "media") | Yes | Which guide to return: getting_started, connect_app, structured_output, rules, debugging or media (images and video). |

### Get media job

**Slug:** `OPPER_MCP_GET_MEDIA_JOB`

Read a generate_image or generate_video job with the key that started it. Waits up to about 45 seconds while it is processing. status completed: url (a download link valid for 1 hour from this call; call again for a fresh one), mime_type, usage, and file_id when the job stored its result. status failed: error. status processing: call again with the same id. The result is deleted 24 hours after the job ends (1 hour on a zero-retention project) unless store is true. Requires runtime:call.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Inference key ID in this project; its secret is never returned |
| `uuid` | string | Yes | Project UUID in the authorized organization |
| `job_id` | string | Yes | The id generate_image or generate_video returned. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes |  |
| `url` | string | No |  |
| `next` | string | No |  |
| `note` | string | No |  |
| `error` | string | No |  |
| `usage` | object | No |  |
| `status` | string ("processing" | "completed" | "failed") | Yes |  |
| `file_id` | string | No |  |
| `mime_type` | string | No |  |
| `expires_at` | string | No |  |

### Get project

**Slug:** `OPPER_MCP_GET_PROJECT`

Fetches one project by UUID. Requires the `projects:read` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | Project UUID |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No | Empty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`. |

### Get rule vocabulary

**Slug:** `OPPER_MCP_GET_RULE_VOCABULARY`

Machine-readable rule config schemas with validated examples, supported scopes, plan requirements, and live location/data-handling vocabulary. Read this before creating rules. Requires controls:read.

### Get trace

**Slug:** `OPPER_MCP_GET_TRACE`

Use this to read the trace of a call made with call_model and a project key; for a call made with call_model_with_org_key, use get_trace_with_org_key. Accepts a trace UUID or the span UUID returned in call_model meta.trace_uuid, resolved within the selected project. Traces exist only when a positive retention policy was enabled for the call; otherwise 404 is expected. Requires runtime:read.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Inference key ID in this project; its secret is never returned by this operation |
| `uuid` | string | Yes | Project UUID in the authorized organization |
| `trace_id` | string | Yes | A trace UUID, or the span UUID returned in call_model meta.trace_uuid; either is resolved within the selected project. |

### Get trace with org key

**Slug:** `OPPER_MCP_GET_TRACE_WITH_ORG_KEY`

Use this to read the trace of a call made with call_model_with_org_key and your own organization-scoped personal key. Omit project_uuid to read only traces without a project; pass it for that project. Current trace permissions apply. Requires runtime:read.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Inference key ID in this project; its secret is never returned by this operation |
| `trace_id` | string | Yes | A trace UUID, or the span UUID returned in call_model meta.trace_uuid; either is resolved within the selected project. |
| `project_uuid` | string | No | Optional project target. Omit to read only traces without a project. |

### Get usage

**Slug:** `OPPER_MCP_GET_USAGE`

Read usage in projects you can access in the connected organization, including calls without retained traces. Omit project_uuid to include unassigned organization usage. For limited project access, only metrics with recorded organization scope qualify as unassigned usage. All arguments are optional; start with {} for a seven-day summary. Use group_by=model or project to find the most expensive groups, ranked by total_cost descending (stable group-key tie break), up to limit; grouping requires bucket=none. Project groups use public project UUIDs and names when metadata is available. With no grouping, bucket=day returns up to 32 daily buckets over a maximum 31-day window. Costs are USD: cost covers customer model calls, evals_cost covers evaluations, guards_cost covers guards/routing checks, and total_cost includes all three. Counts/tokens/errors describe customer calls, matching the app's usage analytics. This is recorded inference/controls usage, not an invoice or balance; credits, storage and other billing adjustments are not represented. If meta.has_more, increase limit up to 100 or narrow the project/date filter. Requires runtime:read.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `to` | string | No | Exclusive RFC3339 end time. Defaults to now. Reuse the returned from/to values while paging. |
| `from` | string | No | Inclusive RFC3339 start time. Defaults to seven days before to. The window must be positive and at most 31 days. |
| `limit` | string | No | Maximum groups in a ranking, default 20, maximum 100. Does not truncate ungrouped summaries or daily series. |
| `bucket` | string ("none" | "day") | No | none (default) for a summary or grouped ranking; day for a compact UTC daily series without grouping. |
| `group_by` | string ("none" | "model" | "project") | No | none (default), model, or project. Grouped rankings require bucket=none. |
| `project_uuid` | string | No | Optional project UUID you can access. Omit to include eligible projects and attributable unassigned organization usage. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | array | Yes |  |
| `meta` | object | Yes |  |

### List api keys

**Slug:** `OPPER_MCP_LIST_API_KEYS`

Lists the inference keys bound to a project. Only the key prefix is returned — the full key is shown once, at creation. Requires the `apikeys:read` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | Project UUID |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | array | No |  |
| `meta` | object | No |  |

### List dynamic routes

**Slug:** `OPPER_MCP_LIST_DYNAMIC_ROUTES`

Lists routes in the calling organization, including whether drafts differ from the deployed version. Requires the `dynamic_routes:read` scope. meta.default_classifier_chain is the model chain a classifier uses when it does not pin one. meta.default_first_token_timeout_ms is the first-token timeout a model or pool node runs on when its arguments state none.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | array | No |  |
| `meta` | object | No |  |

### List dynamic route versions

**Slug:** `OPPER_MCP_LIST_DYNAMIC_ROUTE_VERSIONS`

Lists immutable deployed-version summaries for a route. Requires the `dynamic_routes:read` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | array | No |  |
| `meta` | object | No |  |

### List models

**Slug:** `OPPER_MCP_LIST_MODELS`

Search the public model catalog before or after connecting. All arguments are optional. Start with {"type":"llm","limit":3} for a few text models, or {"limit":3} for any models. Rows are summaries: id, name, type, model, maker, provider, service_tier, capabilities, modalities, context_window, max_output_tokens, pricing, compliance (inference_location, training, logging), release date, access, retired_at and successor. For one model's full record (parameters, every compliance fact, references) pass detail="full" with q or model; it returns at most 3 rows. Pages hold 20 rows by default and at most 30, and end early rather than pass 40,000 characters, so a page can hold fewer rows than asked for. Each page starts with total, has_more and next_offset: while has_more is true, call again with offset set to next_offset. Narrow with type, provider, capability or q rather than paging everything. Omit unused filters; never send the strings "undefined" or "null", which are literal filters and can hide all results. If a filtered search is empty, retry with only limit before concluding the catalog is empty. To find models that run in the EU pass inference_location=["EU"], and add storage_location=["EU"] to keep retained content there too. For No training and No logging on the Rules page pass training=["no"] and logging=["none"], and add moderation=["none"] for No provider moderation. These filters match the way Rules do; each parameter says how an unrecorded fact is treated. include takes only maker,benchmarks; get_allowed_models gives effective policy. The callable id selects an endpoint; model names the underlying weights, which several endpoints can share. For comply.allowlist.models, remove only the first provider prefix from id (gemini/gemma-4-26b-moe becomes gemma-4-26b-moe). pricing holds USD rates; no pricing object means a free-priced model under the runtime plan gate. For image, video or tts start with featured=true, the curated current models. Listing does not guarantee credentials, entitlement or policy access.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `q` | string | No | Case-insensitive substring of a model's id, name, description or alias. Dots, dashes, underscores, colons, slashes and spaces are also ignored on both sides from the start of a word, so `gpt-5-1`, `gpt 5.1` and `gpt5.1` all find `gpt-5.1`. |
| `sort` | string | No | Field to sort by (`id`, `name`, `provider`, `type`, `cost`, `speed`, `quality`, `context_window`, `ttft`, `tokens_per_second`). Default `id`. `speed` and `quality` are editorial tiers; `ttft` and `tokens_per_second` are measured on Opper traffic, and unmeasured endpoints sort last in either order, so `?sort=tokens_per_second&order=desc` lists the fastest first. |
| `type` | string | No | Filter by model type (`llm`, `image`, `tts`, `stt`, `video`, `realtime`, `embedding`, `rerank`, `ocr`, `evaluation`, `extraction`, `forecast`, `music`, `sound`). |
| `limit` | string | No | Page size, 1 to 30, default 20 (detail=full: at most 3). A larger value is capped, and 0 or less means the default, never the whole catalog. A page ends early rather than pass 40,000 characters; has_more and next_offset then say where to continue. |
| `model` | string | No | Keep the endpoints of one model, by the canonical key each item carries as `model` (e.g. `kimi-k3`), exact match. |
| `order` | string | No | `asc` (default) or `desc`. |
| `detail` | string ("summary" | "full") | No | summary (default) or full. Full rows add parameter schemas, every compliance fact, references and descriptions, and a full page holds at most 3 rows: use it with q or model for one model. |
| `offset` | string | No | Pagination offset. |
| `include` | string | No | Comma-separated public enrichments: maker,benchmarks (summary rows keep benchmarks). Use get_allowed_models for effective policy. |
| `logging` | string | No | Keep models whose provider's logging stance is one of `none`, `abuse_monitoring`, `limited_debug`, `other`. Repeatable, or comma-separated. A stance that has not been researched never matches. `logging=none` is No logging on the Rules page. Each item reports its stance as `compliance.logging`. |
| `featured` | string | No | true keeps the short, hand-curated list of current models per type that Opper features. |
| `provider` | string | No | Filter by provider (company) slug as published in each item's `provider.slug` and on `/v3/providers` (e.g. `openai`, `anthropic`, `google`). Adapter keys like `vertexai` are not companies and match nothing. |
| `training` | string | No | Keep models whose provider's training stance is one of `no`, `yes`. Repeatable, or comma-separated. A stance that has not been researched never matches. `training=no` is No training on the Rules page. Each item reports its stance as `compliance.training`. |
| `capability` | string | No | Filter by capability (repeatable). Items matching ALL listed capabilities are returned. |
| `deprecated` | string | No | Set to `true` to include retired models in results. |
| `moderation` | string | No | Keep models whose provider's moderation stance is one of `none`, `optional`, `default_on`, `mandatory`. Repeatable, or comma-separated. A stance that has not been researched never matches. `moderation=none` is No provider moderation on the Rules page. Each item reports its stance as `compliance.moderation`. |
| `max_ttft_ms` | string | No | Keep endpoints whose measured median time to first token is at most this many milliseconds (see `include=performance`). Unmeasured endpoints are left out. |
| `service_tier` | string | No | Keep endpoints of these processing tiers, comma-separated: `flex`, `priority` (alias `fast`), `ultrafast`, `economy`, `batch` (served by POST /v3/batches only), or `default` for standard endpoints. Each tier endpoint carries its tier as `service_tier` and its own price; request one with the `service_tier` field or by its id. E.g. `?service_tier=flex` lists every model sold at flex, `?model=kimi-k3&service_tier=priority` the priority endpoints of one model. |
| `max_input_price` | string | No | Keep token-priced models whose base input price (`pricing.input[0]`, USD per million tokens) is at most this. Models not priced per token are left out. |
| `input_modalities` | string | No | Keep models that take ALL of these inputs, comma-separated: `text`, `image`, `file`, `pdf`, `audio`, `video`. Each item lists what it takes as `input_modalities`; a model without recorded modalities matches no modality filter. |
| `max_output_price` | string | No | Keep token-priced models whose base output price (`pricing.output[0]`, USD per million tokens) is at most this. Models not priced per token are left out. |
| `storage_location` | string | No | Keep models whose provider stores retained content (logs, content retained for moderation) only inside these locations. Matches like Storage location on the Rules page, by the same containment as `inference_location`. A model whose provider keeps no content (no logs, nothing retained for moderation, no training on it by default) matches any location. Values come from the catalog's location list: the ISO 3166-1 alpha-2 codes of the countries providers serve from, and the areas `EU`, `EEA` and `GLOBAL`. A country missing from the list has no model recorded in it. Repeatable, or comma-separated. |
| `output_modalities` | string | No | Keep models that give back ANY of these outputs, comma-separated: `text`, `image`, `embeddings`, `audio`, `video`, `rerank`, `decisions`, `speech`, `transcription`, or `all` for no filter. Each item lists what it gives back as `output_modalities`. |
| `inference_location` | string | No | Keep models whose inference runs inside any of these locations. Matches like Inference location on the Rules page: `EU` includes a model running in Sweden, and a model with no recorded location only matches `GLOBAL`. Each item reports its location as `compliance.inference_location`. Values come from the catalog's location list: the ISO 3166-1 alpha-2 codes of the countries providers serve from, and the areas `EU`, `EEA` and `GLOBAL`. A country missing from the list has no model recorded in it. Repeatable, or comma-separated. |
| `min_context_window` | string | No | Keep models whose `context_window` is at least this many tokens, e.g. `200000`. |
| `min_tokens_per_second` | string | No | Keep endpoints Opper measured at no fewer than this many output tokens per second on its own traffic (see `include=performance`). Unmeasured endpoints are left out. |

### List organization personal keys

**Slug:** `OPPER_MCP_LIST_ORGANIZATION_PERSONAL_KEYS`

List only your own personal inference keys with no project in the connected organization. Returns prefixes, never secrets. Existing project keys are listed with list_api_keys. Requires apikeys:read.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | array | No |  |
| `meta` | object | No |  |

### List projects

**Slug:** `OPPER_MCP_LIST_PROJECTS`

Lists every project in the calling organization. Requires the `projects:read` scope.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | array | No |  |
| `meta` | object | No |  |

### List rules

**Slug:** `OPPER_MCP_LIST_RULES`

Lists rules in the calling organization. Project filters include inherited organization rules and matching function rules. Allowlist rules include effective_count and parent_allowlist; guard rules may include allowed_model_ids. Requires the `controls:read` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `kind` | string ("guard" | "observe" | "route" | "comply") | No | Only rules of this kind |
| `project_uuid` | string | No | Only rules that apply in this project |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | array | No |  |
| `meta` | object | No |  |

### List traces

**Slug:** `OPPER_MCP_LIST_TRACES`

List retained trace metadata in projects you can access in the connected organization. Omit project_uuid to include eligible projects and unassigned organization traces. All arguments are optional; start with {"limit":5}. Defaults to the last seven days, at most 31 days per request, newest trace IDs first. The window uses the earliest retained span in the trace's project scope. Returns names, project/trace UUIDs, timestamps, duration, generation count, error flag and scoped trace cost in USD. Follow meta.next_cursor with the same filters and returned from/to values. Use get_trace for retained detail and get_usage for usage across all calls, including zero-retention calls. Absence of traces does not mean no usage. Requires runtime:read.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `to` | string | No | Exclusive RFC3339 end time. Defaults to now. Reuse the returned from/to values while paging. |
| `from` | string | No | Inclusive RFC3339 start time. Defaults to seven days before to. The window must be positive and at most 31 days. |
| `limit` | string | No | Page size, default 20, maximum 100. |
| `cursor` | string | No | Opaque meta.next_cursor from the previous page; omit on the first page. |
| `status` | string ("error" | "success") | No | Optional error or success filter based on retained spans in the trace's project scope. |
| `project_uuid` | string | No | Optional project UUID you can access. Omit to include eligible projects and unassigned organization traces. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | array | Yes |  |
| `meta` | object | Yes |  |

### Restore dynamic route version

**Slug:** `OPPER_MCP_RESTORE_DYNAMIC_ROUTE_VERSION`

Replaces the current draft with a historical version without changing live routing. Review the returned draft validation, then simulate the draft by omitting version_number before explicitly deploying. Requires the `dynamic_routes:write` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name |
| `version_number` | integer | Yes | Version number, from 1 |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No | Empty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`. |

### Rollback dynamic route

**Slug:** `OPPER_MCP_ROLLBACK_DYNAMIC_ROUTE`

Publishes a historical version as a new deployed version and changes live routing immediately. Returns the new version in meta.deployed_version. Requires the `dynamic_routes:write` scope. The draft is left unchanged.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name |
| `note` | string | No | Release note recorded on the new version. |
| `version_number` | integer | Yes | Version number, from 1 |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No |  |

### Send feedback

**Slug:** `OPPER_MCP_SEND_FEEDBACK`

Send general feedback to the Opper team: something missing (a model, a feature), unclear or wrong in the docs, a bug you noticed in passing, or something that worked well. A person reads it, but it is not a support channel and gets no reply: for a problem that blocks you or needs an answer, tell the user to open Support in the Opper platform (https://platform.opper.ai, bottom of the left sidebar). Include request_id, model, endpoint and error in context when you have them. Never include API keys, passwords or personal data. Returns an id. Requires no account connection.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `kind` | string ("bug" | "feature_request" | "model_request" | "docs" | "praise" | "other") | No | What this is about. Defaults to other. |
| `agent` | object | No | Who is sending. Every field is optional. |
| `context` | object | No | Where it happened. Every field is optional. |
| `message` | string | Yes | What happened or what you need, in plain text. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | Yes |  |
| `meta` | object | Yes |  |

### Simulate dynamic route

**Slug:** `OPPER_MCP_SIMULATE_DYNAMIC_ROUTE`

Omit version_number or set it to null to simulate the current draft, including an unpublished route. To simulate history, supply a positive version_number from list_dynamic_route_versions. Zero is invalid and does not mean draft. Minimal draft call: {"name":"support","version_number":null}. Optional input and metadata supply request context; overrides.model_outcomes maps model/pool node IDs to success or fallback, and overrides.classifier_cases maps classifier node IDs to case IDs. For example {"name":"support","version_number":null,"overrides":{"model_outcomes":{"primary":"success"}}} tests the documented example graph. May call a live classifier when no override is provided; does not deploy or invoke the selected final model. Inspect data.status and data.path for the routing verdict. Fix draft issues with update_dynamic_route_draft before deployment. Requires the `dynamic_routes:write` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name |
| `input` | object | No | The request body a conditional or classifier node reads; in the shape of the compat endpoint you call the route from (for chat completions: messages). |
| `metadata` | object | No | Request metadata a conditional node can test (tags; headers; the caller's project). |
| `overrides` | object | No | Forced outcomes per node id: which conditional case matches; which percentage bucket is drawn; whether a model succeeds or fails; which classifier case is picked. |
| `request_id` | string | No | Seeds the percentage-split draw so a run is reproducible. |
| `version_number` | string | No | Omit or set null to simulate the current draft; supply a positive existing deployed version to simulate history. Zero is invalid. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No |  |

### Undeploy dynamic route

**Slug:** `OPPER_MCP_UNDEPLOY_DYNAMIC_ROUTE`

Clears only the current active version pointer. The draft and immutable version history are preserved. Optional expected_route_uuid and expected_active_version_number protect the identity and live pointer; zero means already unpublished. A positive expected version conflicts when the route is now unpublished. Use a fresh idempotency_key per new operation and retry identical arguments only; replays return the original affected version without clearing any newer deployment. data is the current observational route detail. Requires the `dynamic_routes:write` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name |
| `idempotency_key` | string | No | Unique undeploy operation identifier. A replay returns the original affected version without clearing a newer deployment. |
| `expected_route_uuid` | string | No | Optional route identity precondition; a recycled route name does not satisfy it. |
| `expected_active_version_number` | integer | No | Optional active version precondition; zero means already unpublished. A stale positive version returns 409 even when the route is now unpublished. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No |  |

### Update api key

**Slug:** `OPPER_MCP_UPDATE_API_KEY`

Sets or clears the IP allowlist of an inference key: `allowed_ips` replaces the list, and `null` or `[]` clears it. Each entry is an IP address or CIDR range (for example 203.0.113.7 or 198.51.100.0/24). Public addresses only, up to 100 entries, ranges no wider than /8 (IPv4) or /16 (IPv6). An empty list accepts calls from any IP. Calls from any other address get 403 with code `ip_not_allowed`. A change takes up to a minute to apply. A key held by an agent login cannot have a list. Requires the `apikeys:write` scope. Only API keys owned by the signed-in user can be changed. call_model with a restricted key is refused unless its list includes the address the MCP client connects from.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Inference key id |
| `uuid` | string | Yes | Project UUID |
| `allowed_ips` | string | Yes | Replaces the key's allowlist; null or [] clears it so the key accepts any IP. IP addresses or CIDR ranges the key accepts calls from (for example 203.0.113.7 or 198.51.100.0/24). Public addresses only; up to 100 entries; ranges no wider than /8 for IPv4 or /16 for IPv6. Empty accepts any IP. Calls from any other address get 403 ip_not_allowed. A change takes up to a minute to apply. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No | Empty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`. |

### Update dynamic route draft

**Slug:** `OPPER_MCP_UPDATE_DYNAMIC_ROUTE_DRAFT`

Saves draft changes without deploying. Omitted description, graph and layout are preserved; an empty description clears it. Supply the complete graph to replace it. Structural errors reject the save; inspect meta.issues and data.draft.validation for remaining issues before deployment. Use simulate_dynamic_route without version_number to test the saved draft; deploy_dynamic_route performs full deployment validation. Requires the `dynamic_routes:write` scope.

Graph format: an object with an `elements` array. Each element has a unique `id`, a `type`, optional `properties`, and `outputs`, an object mapping output names to `{"elementId":"target-node-id"}`. Include `id: START, type: start` and `id: END, type: end`; `input` and `output` are not node types. A minimal deployable graph (replace the model with an available catalog ID permitted by your policy):
```json
{"elements":[{"id":"START","type":"start","outputs":{"next":{"elementId":"primary"}}},{"id":"primary","type":"model","properties":{"model":"cerebras/gpt-oss-120b"},"outputs":{"success":{"elementId":"END"},"fallback":{"elementId":"END"}}},{"id":"END","type":"end","outputs":{}}]}
```

Supported node types and properties:
- `start`: the START node; `outputs.next` selects the first node.
- `end`: the END node; `outputs` is `{}`.
- `model`: `properties.model` is a catalog model ID. `outputs.success` targets END or an observe node; `outputs.fallback` targets another model, pool, or END.
- `pool`: `properties.models` contains 2-10 `{model,metrics}` candidates; `properties.expression` is a numeric CEL expression such as `model.cost`, sorted ascending. Uses the same success/fallback outputs as model.
- `conditional`: `properties.cases` contains `{id,expression}` entries; each expression is a CEL predicate over `metadata`, `auth`, and `input`. Connect an output for each case ID and a `default` output. The first true case wins.
- `percentage`: `properties.buckets` contains at least two `{id,weight}` entries with positive integer weights totaling 100. Connect an output for each bucket ID.
- `classifier`: `properties.cases` contains 2-10 `{id,label,instructions}` entries with unique labels, plus optional `context` and `model` properties. Connect an output per case ID; no default output. Classification failures fail the route.
- `observe`: `properties.criteria` defines an asynchronous evaluation, with optional `score_type` (`score` or `binary`), `model`, `threshold`, and `sample_rate` (both greater than 0 and at most 1). Place after model/pool success or another observe node; `outputs.next` leads to another observe node or END.

Graphs must be acyclic. Every node except END accepts at most one incoming edge; use separate model nodes on separate branches. Deployment requires each path from START to reach a model or pool before END.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name |
| `graph` | object | No | Routing graph object with elements. Each node has id, type, outputs mapping output names to {elementId: targetID}, and optional properties. Include START/start and END/end. Supported types: start, end, model, pool, conditional, percentage, classifier, observe. Omit graph on create to seed a default; copy its returned draft.graph to customize. See tool description for node properties and topology. |
| `layout` | object | No | Editor canvas positions keyed by element id. Opaque to the gateway. |
| `description` | string | No | New description. Omit to leave it unchanged. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No |  |

### Update dynamic route metadata

**Slug:** `OPPER_MCP_UPDATE_DYNAMIC_ROUTE_METADATA`

Updates current route presentation metadata without validating or changing the draft graph, incrementing its revision, or deploying a version. display_name preserves case, spaces and Unicode; boundary whitespace is trimmed. Empty clears the label; omission, null, control characters, unknown fields and labels longer than 128 characters are rejected. The route identifier and invocation_model are unchanged. Restore and rollback preserve the current label. Requires the `dynamic_routes:write` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Route name |
| `display_name` | string | Yes | Human label; preserves case and spaces. Empty clears the label. Does not change routing; draft revision; or deployed version. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No | Empty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`. |

### Update project

**Slug:** `OPPER_MCP_UPDATE_PROJECT`

Updates a project's name and/or description. Omit a field to leave it unchanged; send `"description": null` to clear it. An empty body is rejected. Retention is not settable here — it is a control-plane setting, managed through `/management/v1/controls/rules`. Requires the `projects:write` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No |  |
| `uuid` | string | Yes | Project UUID |
| `description` | string | No |  |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No | Empty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`. |

### Update rule

**Slug:** `OPPER_MCP_UPDATE_RULE`

Updates name, enabled, config or schema_version; omit fields to keep them and use name:null to clear a name. Config is replaced, not merged. ID, kind and scope are immutable. An empty update is rejected. Requires the `controls:write` scope.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Display name; null clears it. |
| `uuid` | string | Yes | Rule id |
| `config` | string | No | Config for the rule kind. Replaces the full config on update. Read existing rules and get_rule_vocabulary before changing it; organization constraints remain in force. For an allowlist, its description says which schema_version to write. Opper retention_days and upstream handling.max_retention_days are separate controls. Each anyOf branch is one rule type's exact schema without field descriptions, titled by its id; get_rule_vocabulary rule_schemas has each id with descriptions and a validated example. Read the one you need before writing config. |
| `enabled` | boolean | No | Whether the rule is enforced. Omitted on create means false. |
| `schema_version` | integer | No | Config schema version. Omit on create for version 1. Version 2 comply allowlists identify providers by company slug. Use 4 for model lists (models and exclude_models name model keys, endpoints and exclude_endpoints name endpoint ids), and 5 only when exclude_models or exclude_endpoints hold "*" wildcards or the rule has except_models or except_endpoints. |
| `confirm_file_deletion` | boolean | No | Deprecated and ignored: no rule deletes stored files. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | No |  |
| `meta` | object | No | Empty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`. |
