kb_rules_set
Link an existing document as the rule doc for a scope. Pass scope=tenant|project|group, document_id, and (for project/group) owner_slug. The document is promoted to the matching rules kind and the scope's rule link is set to it. Idempotent. The document must live in the same tenant. Tenant-scope changes require admin; project/group require editor. Use kb_documents_update to edit the rule body.
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": {
"scope": "<scope>",
"document_id": "<document_id>"
},
"name": "kb_rules_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Which rule layer to address: tenant (workspace-wide), project, or group. | |
| owner_slug | No | Slug of the project or group that owns the rules. Required for project/group scope; ignored for tenant scope. | |
| document_id | Yes | Id of the document to link as this scope's rule doc. Must be in the same tenant. | |
| tenant_slug | No | Tenant slug to target. Required when your token grants several workspaces; omit when it grants one. If you omit it with several, the refusal names your default workspace; call kb_tenants_list to see every workspace the token grants. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | ||
| linked | Yes | ||
| owner_slug | No | ||
| document_id | Yes |