Create Federation Rule
create-federation-ruleCreate a cluster federation rule that maps an external identity to a user or service account, enabling authentication and granting the configured access.
Instructions
Create a cluster rule mapping an external identity to your user or a service account. An enabled rule permits authentication and grants the configured access. Returns a rule object with its full configuration, id, organization_id, cluster_id, created_at and updated_at. Requires an organization admin using a user session or OAuth with full_access. API keys and workload tokens cannot manage federation configuration.
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>",
"issuer_id": "<issuer_id>",
"allowed_audiences": "<allowed_audiences>",
"claim_conditions": "<claim_conditions>",
"principal_type": "<principal_type>",
"principal_id": "<principal_id>",
"database": "<database>",
"enabled": "<enabled>",
"organization": "<organization>",
"cluster": "<cluster>"
},
"name": "create-federation-rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| cluster | Yes | ||
| enabled | Yes | Whether this rule permits workload token exchange. | |
| database | Yes | Default database for this rule; not inherited from the MCP connection. | |
| issuer_id | Yes | ||
| permission | No | ||
| description | No | ||
| organization | Yes | ||
| principal_id | Yes | Your own user ID or a service account ID in this organization. | |
| database_roles | No | ||
| principal_type | Yes | ||
| claim_conditions | Yes | ||
| allowed_audiences | Yes |