create_provider
Create a workspace provider backed by an org integration, with independent usage limits and expiration. Returns the provider 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.
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 | 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 |