create_provider
Create a workspace provider that inherits an integration key but sets its own usage limits, alerts, and expiration.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the provider | |
| integration_id | Yes | Integration slug for the provider (e.g., 'openai', 'anthropic', 'azure-openai') | |
| workspace_id | No | Workspace ID - required when using organization admin API keys | |
| slug | No | Custom slug for the provider. Auto-generated with random suffix if omitted | |
| note | No | Optional note or description for the provider | |
| credit_limit | No | Credit limit for usage | |
| alert_threshold | No | Alert threshold percentage (0-100) | |
| usage_limit_type | No | Type of usage limit: 'cost' (monetary) or 'tokens' (token count). Defaults to 'cost'. | |
| periodic_reset | No | Period for resetting usage limits: 'monthly' or 'weekly'. Defaults to 'monthly'. | |
| rate_limit_value | No | Must be provided together with rate_limit_unit. | |
| rate_limit_unit | No | Must be provided together with rate_limit_value. Values: 'rpm' (requests/min), 'rph' (requests/hour), or 'rpd' (requests/day). | |
| expires_at | No | Expiration date in ISO 8601 format |
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 |