Skip to main content
Glama

Create contract events

clm_create_contract_events
DestructiveIdempotent

Create custom events with optional linked notifications emailed to recipients when due.

Input Schema

NameRequiredDescriptionDefault
eventsYesEvent changes
idempotencyKeyYesIdentical-input retry key

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • addedInput schema / properties / events / description
      Added value: +"Event changes"
    • removedInput schema / properties / events / items / properties / contractId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / events / items / properties / date / anyOf
      Removed value: -[
      -  {
      -    "format": "date",
      -    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / events / items / properties / date / format
      Added value: +"date"
    • addedInput schema / properties / events / items / properties / date / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / events / items / properties / recurrenceInterval / anyOf
      Removed value: -[
      -  {
      -    "exclusiveMinimum": 0,
      -    "maximum": 2147483647,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / events / items / properties / recurrenceInterval / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / events / items / properties / recurrenceInterval / maximum
      Added value: +2147483647
    • addedInput schema / properties / events / items / properties / recurrenceInterval / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / events / items / properties / reminders / items / properties / message / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 5000,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / events / items / properties / reminders / items / properties / message / maxLength
      Added value: +5000
    • addedInput schema / properties / events / items / properties / reminders / items / properties / message / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / events / items / properties / reminders / items / properties / recipient / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "type": {
      -        "const": "contract_owner",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "type": {
      -        "const": "user",
      -        "type": "string"
      -      },
      -      "userId": {
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "userId"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "type": {
      +        "const": "contract_owner",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "type": {
      +        "const": "user",
      +        "type": "string"
      +      },
      +      "userId": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "userId"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Identical-input retry key"
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "results": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "contractId": {
      -            "allOf": [
      -              {
      -                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                "type": "string"
      -              },
      -              {
      -                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                "type": "string"
      -              }
      -            ],
      -            "type": "string"
      -          },
      -          "error": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "errorCode": {
      -            "anyOf": [
      -              {
      -                "enum": [
      -                  "conflict",
      -                  "denied",
      -                  "invalid",
      -                  "not_found",
      -                  "failed"
      -                ],
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "event": {
      -            "anyOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "contractId": {
      -                    "allOf": [
      -                      {
      -                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                        "type": "string"
      -                      }
      -                    ],
      -                    "type": "string"
      -                  },
      -                  "date": {
      -                    "anyOf": [
      -                      {
      -                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "id": {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "recurrenceInterval": {
      -                    "anyOf": [
      -                      {
      -                        "exclusiveMinimum": 0,
      -                        "maximum": 9007199254740991,
      -                        "type": "integer"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "recurrenceUnit": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "days",
      -                          "weeks",
      -                          "months",
      -                          "quarters",
      -                          "years"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "reminders": {
      -                    "items": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "anchorType": {
      -                          "enum": [
      -                            "custom",
      -                            "system"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "contractId": {
      -                          "allOf": [
      -                            {
      -                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                              "type": "string"
      -                            },
      -                            {
      -                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                              "type": "string"
      -                            }
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "eventId": {
      -                          "anyOf": [
      -                            {
      -                              "allOf": [
      -                                {
      -                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                                  "type": "string"
      -                                },
      -                                {
      -                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                                  "type": "string"
      -                                }
      -                              ],
      -                              "type": "string"
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ]
      -                        },
      -                        "id": {
      -                          "allOf": [
      -                            {
      -                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                              "type": "string"
      -                            },
      -                            {
      -                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                              "type": "string"
      -                            }
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "isDisabled": {
      -                          "type": "boolean"
      -                        },
      -                        "message": {
      -                          "anyOf": [
      -                            {
      -                              "type": "string"
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ]
      -                        },
      -                        "offsetDirection": {
      -                          "enum": [
      -                            "before",
      -                            "on",
      -                            "after"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "offsetUnit": {
      -                          "enum": [
      -                            "days",
      -                            "weeks",
      -                            "months",
      -                            "quarters",
      -                            "years"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "offsetValue": {
      -                          "maximum": 9007199254740991,
      -                          "minimum": 0,
      -                          "type": "integer"
      -                        },
      -                        "recipient": {
      -                          "oneOf": [
      -                            {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "type": {
      -                                  "const": "contract_owner",
      -                                  "type": "string"
      -                                }
      -                              },
      -                              "required": [
      -                                "type"
      -                              ],
      -                              "type": "object"
      -                            },
      -                            {
      -                              "additionalProperties": false,
      -                              "properties": {
      -                                "type": {
      -                                  "const": "user",
      -                                  "type": "string"
      -                                },
      -                                "userId": {
      -                                  "allOf": [
      -                                    {
      -                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                                      "type": "string"
      -                                    },
      -                                    {
      -                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                                      "type": "string"
      -                                    }
      -                                  ],
      -                                  "type": "string"
      -                                }
      -                              },
      -                              "required": [
      -                                "type",
      -                                "userId"
      -                              ],
      -                              "type": "object"
      -                            }
      -                          ]
      -                        },
      -                        "systemType": {
      -                          "anyOf": [
      -                            {
      -                              "enum": [
      -                                "notice",
      -                                "end",
      -                                "renewal",
      -                                "open_ended_review"
      -                              ],
      -                              "type": "string"
      -                            },
      -                            {
      -                              "type": "null"
      -                            }
      -                          ]
      -                        },
      -                        "updatedAt": {
      -                          "allOf": [
      -                            {
      -                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      -                              "type": "string"
      -                            },
      -                            {
      -                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      -                              "type": "string"
      -                            }
      -                          ],
      -                          "type": "string"
      -                        }
      -                      },
      -                      "required": [
      -                        "id",
      -                        "contractId",
      -                        "anchorType",
      -                        "eventId",
      -                        "systemType",
      -                        "offsetValue",
      -                        "offsetUnit",
      -                        "offsetDirection",
      -                        "recipient",
      -                        "message",
      -                        "isDisabled",
      -                        "updatedAt"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "type": "array"
      -                  },
      -                  "systemType": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "notice",
      -                          "end",
      -                          "open_ended_review"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "title": {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "type": {
      -                    "enum": [
      -                      "system",
      -                      "contract",
      -                      "custom"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  "updatedAt": {
      -                    "allOf": [
      -                      {
      -                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      -                        "type": "string"
      -                      }
      -                    ],
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "id",
      -                  "contractId",
      -                  "title",
      -                  "date",
      -                  "recurrenceInterval",
      -                  "recurrenceUnit",
      -                  "type",
      -                  "systemType",
      -                  "updatedAt",
      -                  "reminders"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "eventId": {
      -            "anyOf": [
      -              {
      -                "allOf": [
      -                  {
      -                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                    "type": "string"
      -                  }
      -                ],
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "ok": {
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "contractId",
      -          "eventId",
      -          "ok",
      -          "event",
      -          "error",
      -          "errorCode"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "results"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and idempotentHint=true, so the safety profile is covered. The description adds genuinely new behavior - that reminder notifications are emailed to recipients when due - but omits the batch nature (a single call creates up to 100 events) and says nothing about what happens on partial failure or what is returned.

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?

A single front-loaded sentence with no filler or redundancy. It is efficiently sized, though the phrase 'when due' is slightly vague about trigger timing.

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 batch mutation with deeply nested reminder/recipient objects, the description covers only the headline purpose and the email side effect. Given the fully documented schema and the rich annotations, this is roughly adequate, but an agent gets no signal that this is a bulk create that can fan out up to 25 reminders per event to real email recipients.

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 schema documents events, reminders, offsets, and recipients in detail, so baseline is 3. The description only loosely gestures at the reminders array through 'optional linked notifications'; it adds no meaning about the batch 'events' array or the idempotencyKey beyond the schema's own 'Identical-input retry key' note.

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?

The description pairs the specific verb 'Create' with the resource 'custom events', and adds that events may carry linked notifications emailed to recipients. That is enough to distinguish it from read/delete siblings, but it never mentions clm_create_event_reminders or clm_update_contract_events, so an agent cannot tell why 'linked notifications' here is different from the standalone reminders tool.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (e.g. the contract must exist), and no named alternative such as clm_update_contract_events or clm_create_event_reminders. The reader must infer usage entirely from the tool name.

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.