kb_rules_get
Fetch the rule document linked to one scope. Pass scope=tenant|project|group; for project/group also pass owner_slug. Returns linked=false with rule=null when the scope has no rule doc. Use kb_rules_list_for_context instead when you want every rule that applies to an authoring context at once. Rules are advisory conventions, not machine-enforced.
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>"
},
"name": "kb_rules_get"
}
}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. | |
| 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 |
|---|---|---|---|
| rule | Yes | ||
| scope | Yes | ||
| linked | Yes | ||
| owner_slug | No |