# moments_mutate

Canonical HTML page: https://bitterclip.com/docs/assistants/tools/moments_mutate

Surface: app-only

Product release: 185ad8f4adfa21ae055b5bd6f97968d9044480d1
Public contract commit: d2ab41fab4088c07c0f6b924fa4f3c63481b936a
Public contract SHA-256: 2365c73c2aef7b9f85e8434d8e29ea29f40824bc3a46a72a356155ea328757fc
Descriptor SHA-256: ef560141873b318181e4a3e6c2c93c1bbe9d49fc3c3fd417cce2e079ef1c4bee
Captured: 2026-10-29T03:35:56.855Z
Source: https://app.bitterclip.com/api/v1/mcp_descriptors.json

One moment change per call: create, update_label, adjust_range, or set_state. create saves a moment on the recording from an explicit time range or transcript unit IDs (transcript editor save). update_label renames a saved moment and optionally updates its description. adjust_range changes a moment's start/end seconds (selected-moment trim). set_state saves or dismisses a suggested moment, optionally applying reviewed title and description atomically; discarded moments remain recoverable. recording_id scopes the moment lane (a bare id resolves as a recording); every action requires a caller-stable idempotency key. The moments lane has no structural revision today — expected_revision is carried optionally so the lane converges on the standard mutation contract when revisions land.

The JSON blocks below are the exact MCP descriptor projections served by Rails for the named profiles at capture time. Security schemes and resource URIs may vary by connected host.

## App descriptor

```json
{
  "name": "moments_mutate",
  "title": "Change a saved moment",
  "description": "One moment change per call: create, update_label, adjust_range, or set_state. create saves a moment on the recording from an explicit time range or transcript unit IDs (transcript editor save). update_label renames a saved moment and optionally updates its description. adjust_range changes a moment's start/end seconds (selected-moment trim). set_state saves or dismisses a suggested moment, optionally applying reviewed title and description atomically; discarded moments remain recoverable. recording_id scopes the moment lane (a bare id resolves as a recording); every action requires a caller-stable idempotency key. The moments lane has no structural revision today — expected_revision is carried optionally so the lane converges on the standard mutation contract when revisions land.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "recording_id": {
        "type": "string",
        "description": "Recording public ID that owns this moment lane. create requires it; moment-scoped actions carry it as scope."
      },
      "expected_revision": {
        "type": "integer",
        "description": "Optional: carried toward the standard mutation contract. The moments lane exposes no structural revision yet, so it is unused for now."
      },
      "idempotency_key": {
        "type": "string",
        "description": "Caller-stable retry key for this exact change."
      },
      "action": {
        "type": "object",
        "description": "One moment action, in the canonical field names of its matching action shape.",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "create"
                ]
              },
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "from_unit_id": {
                "type": "string"
              },
              "to_unit_id": {
                "type": "string"
              },
              "start_seconds": {
                "type": "number"
              },
              "end_seconds": {
                "type": "number"
              },
              "unit_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "type",
              "title"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "update_label"
                ]
              },
              "moment_id": {
                "type": "string",
                "description": "Saved moment public ID."
              },
              "label": {
                "type": "string"
              },
              "description": {
                "type": "string",
                "description": "Optional moment description; persisted as the moment's rationale (the clip's description)."
              }
            },
            "required": [
              "type",
              "moment_id",
              "label"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "adjust_range"
                ]
              },
              "moment_id": {
                "type": "string",
                "description": "Saved moment public ID."
              },
              "start_seconds": {
                "type": "number"
              },
              "end_seconds": {
                "type": "number"
              }
            },
            "required": [
              "type",
              "moment_id",
              "start_seconds",
              "end_seconds"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "set_state"
                ]
              },
              "moment_id": {
                "type": "string",
                "description": "Saved moment public ID."
              },
              "state": {
                "type": "string",
                "enum": [
                  "saved",
                  "discarded",
                  "suggested"
                ],
                "description": "Target state. saved=keep, discarded=hide (recoverable)."
              },
              "label": {
                "type": "string",
                "description": "Optional reviewed title, applied atomically when state is saved."
              },
              "description": {
                "type": "string",
                "description": "Optional reviewed description, applied atomically when state is saved."
              }
            },
            "required": [
              "type",
              "moment_id",
              "state"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "required": [
      "recording_id",
      "idempotency_key",
      "action"
    ],
    "additionalProperties": false
  },
  "annotations": {
    "title": "Change a saved moment",
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "securitySchemes": [
    {
      "type": "noauth"
    }
  ],
  "_meta": {
    "securitySchemes": [
      {
        "type": "noauth"
      }
    ],
    "ui": {
      "visibility": [
        "app"
      ]
    },
    "openai/widgetAccessible": true,
    "openai/visibility": "private"
  },
  "outputSchema": {
    "type": "object",
    "properties": {
      "moment": {
        "type": "object"
      },
      "moment_id": {
        "type": "string"
      }
    },
    "required": [],
    "additionalProperties": false
  }
}
```

## Errors

```json
[
  "moment_not_found",
  "recording_not_found",
  "invalid_input"
]
```

## Examples

```json
[]
```
