> ## Documentation Index
> Fetch the complete documentation index at: https://www.rootset.app/llms.txt
> Use this file to discover all available pages before exploring further.

# rootset_rotate_personal_key

> Rotate a personal key with bounded overlap and one-time secret display; preserve name, permissions and expiry unless explicitly changed.

## Workflow

```mermaid theme={"system"}
flowchart LR
  discover["Check the account"] --> invoke["Rotate personal key"]
  invoke --> outcome["Read the result"]
```

## Access and behavior

Use a personal OAuth connection for the signed-in account. The connection needs `keys:manage` scope.

* This tool changes data or starts work. Confirm the target and input before calling it.
* Keep the same `idempotencyKey` when retrying an unchanged request; use a new key for different input.

## Arguments

| Argument | Required | Type | Details |
| - | - | - | - |
| `id` | Yes | string | — |
| `overlapSeconds` | No | integer | — |
| `name` | No | string | — |
| `access` | No | "read" or "edit" | — |
| `includeAdmin` | No | boolean | — |
| `expiresAt` | No | string or null | — |
| `idempotencyKey` | Yes | string | Stable caller-provided key across retries of this exact operation. |

<Accordion title="Complete input schema">
  ```json theme={"system"}
  {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "id": {
        "type": "string",
        "pattern": "^[0-7][0-9A-HJKMNP-TV-Z]{25}$"
      },
      "overlapSeconds": {
        "type": "integer",
        "minimum": 0,
        "maximum": 86400
      },
      "name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 255
      },
      "access": {
        "type": "string",
        "enum": ["read", "edit"]
      },
      "includeAdmin": {
        "type": "boolean"
      },
      "expiresAt": {
        "anyOf": [
          {
            "type": "string",
            "pattern": "^(?!0000)\\d{4}-\\d{2}-\\d{2}T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d{1,3})?Z$",
            "format": "date-time",
            "description": "UTC instant with mandatory Z and at most three fractional digits.",
            "examples": ["2024-01-01T12:30:00.000Z"]
          },
          {
            "type": "null"
          }
        ]
      },
      "idempotencyKey": {
        "type": "string",
        "minLength": 8,
        "maxLength": 255,
        "description": "Stable caller-provided key across retries of this exact operation."
      }
    },
    "required": ["id", "idempotencyKey"],
    "additionalProperties": false
  }
  ```
</Accordion>

## Example call

Your client initializes the MCP connection before this call. Example identifiers and values are illustrative; use the IDs, schema version and values from your installation.

```json theme={"system"}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "rootset_rotate_personal_key",
    "arguments": {
      "id": "01K6J7B8000000000000000000",
      "idempotencyKey": "example-request-0001"
    }
  }
}
```

## Result

Read the structured result returned by the tool. A tool failure sets `isError`; do not treat an error as a completed operation. The [REST operation](/api-reference/rotatePersonalKey) documents the corresponding result fields and errors.

[Connect an MCP client](/mcp-guide) · [REST conventions](/api-reference/overview)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.