Publish Model
publish_modelPublishes any registered model to MAS, CAS, a container registry, or Git; supports dry-run reporting and optional replacement of published models with the same name.
Instructions
Publish a registered model to a destination: MAS, CAS, a container registry, Git, ...
Any model in the Model Repository can be published, whatever made it.
With dry_run the tool only reports what it would do: the
destination and its type, the published name, and whether a published
model of that name is already there. A published model of the same
name is not replaced unless replace is true. Publishing runs in the
background; list_published_models shows its state and
validate_published_model checks the published copy.
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": {
"model_id": "<model_id>"
},
"name": "publish_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Only report what would happen. | |
| replace | No | Replace a published model of the same name. | |
| model_id | Yes | The model's ID. | |
| publish_name | No | The published name (default: the model's name, with characters a destination refuses turned into underscores). | |
| git_remote_path | No | For a Git destination: the directory in the repository to publish to. | |
| destination_name | No | Destination (see ``list_publishing_destinations``). Default: the deployment's ``MCP_DEFAULT_PUBLISH_DESTINATION``, ``maslocal`` unless an administrator changed it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||