create_provider
Create a workspace provider backed by an organization integration, with independent usage limits, rate limits, and expiration, and return its new ID and slug.
Instructions
Create a workspace provider backed by an org integration. The provider inherits the integration key, but its limits and expiration are enforced independently for that workspace. Returns the new provider id and slug.
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": {
"name": "<name>",
"integration_id": "<integration_id>"
},
"name": "create_provider"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the provider | |
| note | No | Optional note or description for the provider | |
| slug | No | Custom slug for the provider. Auto-generated with random suffix if omitted | |
| expires_at | No | Expiration date in ISO 8601 format | |
| credit_limit | No | Credit limit for usage | |
| workspace_id | No | Workspace ID - required when using organization admin API keys | |
| integration_id | Yes | Integration slug for the provider (e.g., 'openai', 'anthropic', 'azure-openai') | |
| periodic_reset | No | Period for resetting usage limits: 'monthly' or 'weekly'. Defaults to 'monthly'. | |
| alert_threshold | No | Alert threshold percentage (0-100) | |
| rate_limit_unit | No | Must be provided together with rate_limit_value. Values: 'rpm' (requests/min), 'rph' (requests/hour), or 'rpd' (requests/day). | |
| rate_limit_value | No | Must be provided together with rate_limit_unit. | |
| usage_limit_type | No | Type of usage limit: 'cost' (monetary) or 'tokens' (token count). Defaults to 'cost'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Call succeeded | |
| data | No | Success payload | |
| error | No | Failure details |