create_config
Create a configuration that defines routing, caching, retry logic, and target endpoints for API requests. New configs become active immediately and are referenced by key or prompt.
Instructions
Create a config that defines routing, cache, retry, and targets for requests; use update_config to modify an existing one and list_config_versions for history. At least one setting is required, new configs become active immediately once referenced by a key or prompt, and the call returns the new id and version_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new configuration | |
| workspace_id | No | Workspace ID to create config in | |
| cache_mode | No | Cache mode: 'simple' or 'semantic' | |
| cache_max_age | No | Cache max age in seconds | |
| retry_attempts | No | Number of retry attempts (1-5) | |
| retry_on_status_codes | No | HTTP status codes to retry on (e.g., [429, 500, 502, 503]) | |
| strategy_mode | No | Routing strategy: 'loadbalance' or 'fallback' | |
| targets | No | Array of target providers with virtual keys |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |