models
Manage agent-model registry entries: list, retrieve, create, update, and promote provider configurations across staging and prod environments.
Instructions
Agent-model registry (agent_models). action: list | get | create (name, provider, model_string, ...) | update (model_id + fields) | promote (model_id, target_env) — clones the model to the sibling env, idempotent on (name, environment).
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": {
"action": "<action>"
},
"name": "models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Config branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves. | staging |
| name | No | Model registry name (unique per environment). | |
| action | Yes | Operation to run: list | get | create | update | promote. The tool description lists what each action needs. | |
| model_id | No | agent_models UUID. | |
| provider | No | LLM provider id (see runtime.llm_factory.SUPPORTED_PROVIDERS). | |
| is_active | No | Whether the model is selectable. | |
| target_env | No | promote: environment to clone the model into. | |
| temperature | No | Default temperature. | |
| extra_config | No | JSON object of provider-specific settings. | |
| model_string | No | Provider model name, e.g. gemini-3-pro. | |
| max_output_tokens | No | Default max output tokens. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |