Create a guarded route deployment
create_dynamic_route_deploymentFail-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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"expected_active_version_number": "<expected_active_version_number>",
"expected_draft_revision": "<expected_draft_revision>",
"expected_route_uuid": "<expected_route_uuid>",
"idempotency_key": "<idempotency_key>",
"name": "<name>"
},
"name": "create_dynamic_route_deployment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Route name | |
| note | No | Release note recorded on the new version. | |
| idempotency_key | Yes | Required unique operation identifier. Reuse only for an identical retry; a fresh deployment requires a fresh key. | |
| expected_route_uuid | Yes | Required nonzero identity of the route reviewed by the caller. | |
| expected_draft_revision | Yes | Required positive revision of the reviewed draft. | |
| expected_active_version_number | Yes | Required active version precondition; zero means currently unpublished. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | No |