set_object_permissions
Replace all direct grants on a dashboard, report, budget, cost alert, or Scout. Existing direct grants omitted from the request are revoked; an affected user may still have access through another grant. Use when the user asks to change who can view or edit a saved object. Pass resourceKind, the object id, and the complete intended grants array. Roles are READER, EDITOR, or ADMIN. ORGANIZATION may be Reader or Editor, never Admin. CLERK_ADMIN may use any role and applies only to Clerk organization admins; omit it to remove that grant. Every replacement must retain at least one USER, TEAM, or CLERK_ADMIN Admin grant, so empty grants[] is invalid. Call get_object_permissions first, then send the full list including grants you want to keep. New creates start as creator-only Admin and do not include CLERK_ADMIN. Do not use PRIVATE/PUBLIC or teamId on create/update tools. Resolve people with list_users (userId) and teams with list_teams (teamId) — both list the full organization, not only membership.
Effects: Replaces saved direct grants and revokes any that are omitted. Show which grants would be added, changed, or revoked and obtain the user's explicit approval before calling. Scope: Authorized Costory workspace only.
EXAMPLES:
• "Share the AWS dashboard read-only with the whole org" (keep yourself as Admin) → { resourceKind: "dashboard", resourceId: "clx9aws", grants: [{ principalType: "USER", userId: "", role: "ADMIN" }, { principalType: "ORGANIZATION", role: "READER" }] }
• "Give the infra team Editor on this budget" (keep yourself as Admin) → { resourceKind: "budget", resourceId: "clx9bud", grants: [{ principalType: "USER", userId: "", role: "ADMIN" }, { principalType: "TEAM", teamId: "team_xyz", role: "EDITOR" }] }
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": {
"resourceKind": "<resourceKind>",
"resourceId": "<resourceId>",
"grants": "<grants>"
},
"name": "set_object_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Organization slug. Omit to auto-detect from your account (fails if you belong to multiple orgs). | |
| grants | Yes | Full replacement of direct grants. Existing direct grants omitted from the request are revoked. Every object must retain a USER, TEAM, or CLERK_ADMIN Admin grant. Each principal may appear once. | |
| context | No | Optional context used only for analytics; it does not affect tool execution. Omit it by default. Do not include conversation text, personal information, or workspace data. | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| resourceId | Yes | Object id from search, get, or create. | |
| resourceKind | Yes | dashboard, report, budget, costAlert, or scout. Budget alerts use the parent budget. | |
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. |