Skip to main content
Glama

context_write

Idempotent

Access the context write operations listed below. Compatibility dispatcher; prefer the individually named tool when available. Select operation and its matching payload. Supported operations: archive_context_note, convert_context_note, link_context_nodes, link_context_project_node, move_context_note, rebuild_context_graph, record_context_node, set_context_layout, update_context_note. Effects and required fields depend on that operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesArguments for the selected operation. Follow its matching oneOf branch; fields and side effects differ by operation.
operationYesExact operation to dispatch; prefer its individually named tool when available.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "archive_context_note",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "noteId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "noteId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "convert_context_note",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "noteId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "noteId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "link_context_nodes",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sourceId": {
      -            "maxLength": 500,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "targetId": {
      -            "maxLength": 500,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "sourceId",
      -          "targetId",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "link_context_project_node",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sourceId": {
      -            "maxLength": 500,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "targetId": {
      -            "maxLength": 500,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "sourceId",
      -          "targetId",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "move_context_note",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "noteId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "noteId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "rebuild_context_graph",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "record_context_node",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "set_context_layout",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "update_context_note",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "noteId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "noteId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "archive_context_note",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "noteId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "noteId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "convert_context_note",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "noteId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "noteId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "link_context_nodes",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sourceId": {
      +            "maxLength": 500,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "targetId": {
      +            "maxLength": 500,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "sourceId",
      +          "targetId",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "link_context_project_node",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sourceId": {
      +            "maxLength": 500,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "targetId": {
      +            "maxLength": 500,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "sourceId",
      +          "targetId",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "move_context_note",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "noteId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "noteId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "rebuild_context_graph",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "record_context_node",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "set_context_layout",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "update_context_note",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "noteId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "noteId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / operation / description
      Added value: +"Exact operation to dispatch; prefer its individually named tool when available."
    • addedInput schema / properties / payload / description
      Added value: +"Arguments for the selected operation. Follow its matching oneOf branch; fields and side effects differ by operation."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the safety profile is covered structurally. The description adds only the caveat that 'effects and required fields depend on that operation', which is honest but uninformative — it does not say which of the nine operations mutate, archive, or rebuild anything, so an agent gains little behavioral insight.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and the fallback guidance, then the unavoidable operation list. Every element earns its place, though the third and fourth sentences restate the dispatch idea already covered by 'compatibility dispatcher' and add mild redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-branch dispatcher with nested payloads and no output schema, the description is adequate but thin: it never explains how to choose among the operations, deferring entirely to the siblings. Acceptable for a compatibility shim, but it leaves the per-operation semantics entirely to the schema branches.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the nested payload fields (idempotencyKey, expectedVersion, details) carry their own documentation, so the baseline is 3. The description only says 'select operation and its matching payload', adding no semantics beyond what the schema constrains.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (context write operations) and enumerates the nine supported operations, which distinguishes it from context_read. However, the framing as a 'compatibility dispatcher' is meta rather than describing what any single invocation actually accomplishes, so the agent learns the surface area but not the intent of each route.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says 'prefer the individually named tool when available', which routes the agent to the nine siblings and implies this tool is a fallback. That is clear context, though it never states the positive condition under which this dispatcher is actually the right choice beyond 'named tool unavailable'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources