rsc_execute_operation
Execute raw GraphQL queries against Rubrik Security Cloud's live API to retrieve security data. Supports read-only operations only.
Instructions
Execute a raw GraphQL query against the live RSC API.
This tool supports queries only. Mutations are not available via raw GraphQL — use built-in tools (rsc_take_on_demand_snapshot, etc.) for supported write operations. If you submit a mutation, this tool returns a mutation_blocked error with the attempted operation so Claude can generate a Python code sample for you.
IMPORTANT: Write operation as a single line with no newlines or extra
whitespace. Multi-line strings appear as ugly \n escape sequences in the
tool call display. Good: "query { nodes { id name } }"
Requires RSC credentials — set one of:
RSC_SERVICE_ACCOUNT_FILE env var (path to service account JSON)
RSC_URL + RSC_CLIENT_ID + RSC_CLIENT_SECRET env vars
~/.rsc/config.json
Args: operation: A complete GraphQL query string on a single line, e.g.: "query { accountId }" "query ListSLAs($after: String) { slaDomains(after: $after) { count nodes { id name } pageInfo { hasNextPage endCursor } } }" variables: Optional dict of variable values for parameterized operations.
Returns: The raw JSON response from the RSC GraphQL API (data + errors if any). Returns {"error": "mutation_blocked", "blocked_operation": "...", "message": "..."} if a mutation is submitted — Claude will use this to generate a Python code sample.
Note: returns the raw GraphQL response with no field filtering or redaction — do not use in contexts where data minimization of personal-data-bearing fields is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| variables | No |