Skip to main content
Glama

Update contract terms

assinafy_update_contract
Destructive

Manage an existing document’s CLM record: set creates/patches terms or links a signed amendment; renew starts the next term; terminate closes tracking. Requires a tracking plan. Read first: include terms.updated_at for existing terms or links; renew requires the current term and updated_at, terminate requires updated_at. A conflict needs a fresh read and user review, never blind retries. Only supplied terms change; external_references replaces the list; null can clear values or unlink a pending amendment. Assinafy owns auto-renewal and owner reminders; changes can trigger lifecycle emails/webhooks. These actions do not sign, send or cancel the document itself. Use only for changes the user authorized.

Input Schema

NameRequiredDescriptionDefault
termNoThe term this renewal starts from, the contract's current `term`. Required unless `end_date` is sent; for a contract in another term the renewal is refused, so a repeated request never renews twice.
termsNoEvery attribute is optional and only the ones sent change. `null` clears an attribute, except `auto_renew` (back to `false`) and `currency` (back to `BRL` while a `value` is set); `status` does not accept `null`. A changed `end_date` starts a new `term`.
valueNoThe new value; unchanged when not sent, cleared by `null`.
actionYes
reasonNoKept in the `document_contract_terminated` event; HTML is stripped.
end_dateNoThe new end date, after the current one. Absent, empty or `null`: the current end date plus the renewal term, stepped until it is in the future; `term` is then required.
account_idNo
updated_atNoOptional precondition: the contract's `updated_at` as read. Changed since: `409`, nothing terminated.
document_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "account_id": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "action": {
      -        "const": "set",
      -        "type": "string"
      -      },
      -      "document_id": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "terms": {
      -        "additionalProperties": false,
      -        "anyOf": [
      -          {
      -            "required": [
      -              "status"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "counterparty_name"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "counterparty_taxpayer_id"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "value"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "currency"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "start_date"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "end_date"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "auto_renew"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "renewal_term_months"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "notice_period_days"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "owner_id"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "metadata"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "external_references"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "parent_document_id"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "relation_type"
      -            ]
      -          }
      -        ],
      -        "description": "Every attribute is optional and only the ones sent change. `null` clears an attribute, except `auto_renew` (back to `false`) and `currency` (back to `BRL` while a `value` is set); `status` does not accept `null`. A changed `end_date` starts a new `term`.",
      -        "minProperties": 1,
      -        "properties": {
      -          "auto_renew": {
      -            "description": "Whether the hourly run starts the next term the day after `end_date`, by `renewal_term_months`, instead of expiring the contract.",
      -            "type": "boolean"
      -          },
      -          "counterparty_name": {
      -            "description": "Emoji are kept; other characters outside the 3-byte range are dropped.",
      -            "maxLength": 255,
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "counterparty_taxpayer_id": {
      -            "description": "A valid CPF or CNPJ, formatted or not.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "currency": {
      -            "description": "Three letters, such as `BRL` or `USD`, stored in capitals; `BRL` when a `value` is set without one.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "end_date": {
      -            "description": "`YYYY-MM-DD`, on or after `start_date`.",
      -            "format": "date",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "external_references": {
      -            "description": "Replaces the whole list; `[]` or `null` clears it. Two items whose `system` and `id` compare equal case aside are one reference (the first sent is kept); a pair the database takes for one beyond that (accents, `ß` and `ss`) answers `400`.",
      -            "items": {
      -              "properties": {
      -                "id": {
      -                  "description": "Kept as sent; must not contain emoji or other 4-byte characters.",
      -                  "example": "98765",
      -                  "maxLength": 255,
      -                  "type": "string"
      -                },
      -                "system": {
      -                  "description": "Letters, digits, `_`, `-` and `.`; stored in lower case.",
      -                  "example": "hubspot",
      -                  "maxLength": 64,
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "system",
      -                "id"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 20,
      -            "type": [
      -              "array",
      -              "null"
      -            ]
      -          },
      -          "metadata": {
      -            "additionalProperties": {
      -              "maxLength": 500,
      -              "type": "string"
      -            },
      -            "description": "Your own fields: up to 50 keys of 1 to 40 letters, digits, `_`, `-` or `.`, each holding plain text of at most 500 characters; no number under a key ending in `_at`, or `stuck_since`.",
      -            "maxProperties": 50,
      -            "type": [
      -              "object",
      -              "null"
      -            ]
      -          },
      -          "notice_period_days": {
      -            "description": "Days before `end_date` the notice period starts (`document_contract_renewal_notice`); none when unset.",
      -            "maximum": 3650,
      -            "minimum": 0,
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          },
      -          "owner_id": {
      -            "description": "An active member of this workspace.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "parent_document_id": {
      -            "description": "Links the document as an amendment of this contract document, or of any document in its family (resolved to the root); `null` unlinks a pending amendment. With it, the other attributes are the terms the instrument changes, not terms of its own; on a pending amendment a `null` value drops that term from the delta rather than clearing it on the parent.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "relation_type": {
      -            "description": "Required on the first link. `amendment` may change `value`, `currency`, `start_date` (effective from, display only), `end_date`, `auto_renew`, `renewal_term_months`, `notice_period_days`, `counterparty_name`, `counterparty_taxpayer_id` and `metadata`; `renewal` only `end_date` and `value`; `termination` only `end_date` (the effective date).",
      -            "enum": [
      -              "amendment",
      -              "renewal",
      -              "termination"
      -            ],
      -            "type": "string"
      -          },
      -          "renewal_term_months": {
      -            "description": "How far a renewal by the term moves `end_date`; 12 when unset.",
      -            "maximum": 600,
      -            "minimum": 1,
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          },
      -          "start_date": {
      -            "description": "`YYYY-MM-DD`, from the year 1000.",
      -            "format": "date",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "status": {
      -            "description": "On creation any status, so a contract that ended before it was tracked is registered as it ended: `expired` needs an `end_date` in the past, `terminated` its `end_date`; neither is walked by the lifecycle. Afterwards only `draft` or `active` (a contract in force never goes back to `draft`): `expired` and `terminated` are set by the lifecycle and the terminate endpoint; a closed contract is reopened by renewing it.",
      -            "enum": [
      -              "draft",
      -              "active",
      -              "expired",
      -              "terminated"
      -            ],
      -            "type": "string"
      -          },
      -          "updated_at": {
      -            "description": "Optional precondition: the `updated_at` the client read the contract (or this document's amendment link) with, as the API returned it. If the contract or link changed since, nothing is written and the answer is `409` with `code: ContractChanged`. Not sent, or `null`: the write applies whatever changed meanwhile (last write wins). Compared to the second; a fraction of a second, as a JavaScript date prints it, is read and ignored. New terms and a first link have nothing to have read, so sending one answers `409`; on a pending amendment, send the link's own `updated_at` (the GET on that document).",
      -            "format": "date-time",
      -            "type": "string"
      -          },
      -          "value": {
      -            "description": "Two decimal places at most.",
      -            "maximum": 9999999999999.99,
      -            "minimum": 0,
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "document_id",
      -      "terms"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "account_id": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "action": {
      -        "const": "renew",
      -        "type": "string"
      -      },
      -      "document_id": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "end_date": {
      -        "description": "The new end date, after the current one. Absent, empty or `null`: the current end date plus the renewal term, stepped until it is in the future; `term` is then required.",
      -        "format": "date",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "term": {
      -        "description": "The term this renewal starts from, the contract's current `term`. Required unless `end_date` is sent; for a contract in another term the renewal is refused, so a repeated request never renews twice.",
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "updated_at": {
      -        "description": "Optional precondition: the contract's `updated_at` as read. Changed since: `409`, nothing renewed.",
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "The new value; unchanged when not sent, cleared by `null`.",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "document_id",
      -      "updated_at",
      -      "term"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "account_id": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "action": {
      -        "const": "terminate",
      -        "type": "string"
      -      },
      -      "document_id": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "reason": {
      -        "description": "Kept in the `document_contract_terminated` event; HTML is stripped.",
      -        "maxLength": 500,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "updated_at": {
      -        "description": "Optional precondition: the contract's `updated_at` as read. Changed since: `409`, nothing terminated.",
      -        "format": "date-time",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "action",
      -      "document_id",
      -      "updated_at"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "account_id": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "action": {
      +        "const": "set",
      +        "type": "string"
      +      },
      +      "document_id": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "terms": {
      +        "additionalProperties": false,
      +        "anyOf": [
      +          {
      +            "required": [
      +              "status"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "counterparty_name"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "value"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "currency"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "start_date"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "end_date"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "auto_renew"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "renewal_term_months"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "notice_period_days"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "owner_id"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "metadata"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "external_references"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "parent_document_id"
      +            ]
      +          },
      +          {
      +            "required": [
      +              "relation_type"
      +            ]
      +          }
      +        ],
      +        "description": "Every attribute is optional and only the ones sent change. `null` clears an attribute, except `auto_renew` (back to `false`) and `currency` (back to `BRL` while a `value` is set); `status` does not accept `null`. A changed `end_date` starts a new `term`.",
      +        "minProperties": 1,
      +        "properties": {
      +          "auto_renew": {
      +            "description": "Whether the hourly run starts the next term the day after `end_date`, by `renewal_term_months`, instead of expiring the contract.",
      +            "type": "boolean"
      +          },
      +          "counterparty_name": {
      +            "description": "Emoji are kept; other characters outside the 3-byte range are dropped.",
      +            "maxLength": 255,
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "currency": {
      +            "description": "Three letters, such as `BRL` or `USD`, stored in capitals; `BRL` when a `value` is set without one.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "end_date": {
      +            "description": "`YYYY-MM-DD`, on or after `start_date`.",
      +            "format": "date",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "external_references": {
      +            "description": "Replaces the whole list; `[]` or `null` clears it. Two items whose `system` and `id` compare equal case aside are one reference (the first sent is kept); a pair the database takes for one beyond that (accents, `ß` and `ss`) answers `400`.",
      +            "items": {
      +              "properties": {
      +                "id": {
      +                  "description": "Kept as sent; must not contain emoji or other 4-byte characters.",
      +                  "example": "98765",
      +                  "maxLength": 255,
      +                  "type": "string"
      +                },
      +                "system": {
      +                  "description": "Letters, digits, `_`, `-` and `.`; stored in lower case.",
      +                  "example": "hubspot",
      +                  "maxLength": 64,
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "system",
      +                "id"
      +              ],
      +              "type": "object"
      +            },
      +            "maxItems": 20,
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "metadata": {
      +            "additionalProperties": {
      +              "maxLength": 500,
      +              "type": "string"
      +            },
      +            "description": "Your own fields: up to 50 keys of 1 to 40 letters, digits, `_`, `-` or `.`, each holding plain text of at most 500 characters; no number under a key ending in `_at`, or `stuck_since`.",
      +            "maxProperties": 50,
      +            "type": [
      +              "object",
      +              "null"
      +            ]
      +          },
      +          "notice_period_days": {
      +            "description": "Days before `end_date` the notice period starts (`document_contract_renewal_notice`); none when unset.",
      +            "maximum": 3650,
      +            "minimum": 0,
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "owner_id": {
      +            "description": "An active member of this workspace.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "parent_document_id": {
      +            "description": "Links the document as an amendment of this contract document, or of any document in its family (resolved to the root); `null` unlinks a pending amendment. With it, the other attributes are the terms the instrument changes, not terms of its own; on a pending amendment a `null` value drops that term from the delta rather than clearing it on the parent.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "relation_type": {
      +            "description": "Required on the first link. `amendment` may change `value`, `currency`, `start_date` (effective from, display only), `end_date`, `auto_renew`, `renewal_term_months`, `notice_period_days`, `counterparty_name` and `metadata`; `renewal` only `end_date` and `value`; `termination` only `end_date` (the effective date).",
      +            "enum": [
      +              "amendment",
      +              "renewal",
      +              "termination"
      +            ],
      +            "type": "string"
      +          },
      +          "renewal_term_months": {
      +            "description": "How far a renewal by the term moves `end_date`; 12 when unset.",
      +            "maximum": 600,
      +            "minimum": 1,
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "start_date": {
      +            "description": "`YYYY-MM-DD`, from the year 1000.",
      +            "format": "date",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "status": {
      +            "description": "On creation any status, so a contract that ended before it was tracked is registered as it ended: `expired` needs an `end_date` in the past, `terminated` its `end_date`; neither is walked by the lifecycle. Afterwards only `draft` or `active` (a contract in force never goes back to `draft`): `expired` and `terminated` are set by the lifecycle and the terminate endpoint; a closed contract is reopened by renewing it.",
      +            "enum": [
      +              "draft",
      +              "active",
      +              "expired",
      +              "terminated"
      +            ],
      +            "type": "string"
      +          },
      +          "updated_at": {
      +            "description": "Optional precondition: the `updated_at` the client read the contract (or this document's amendment link) with, as the API returned it. If the contract or link changed since, nothing is written and the answer is `409` with `code: ContractChanged`. Not sent, or `null`: the write applies whatever changed meanwhile (last write wins). Compared to the second; a fraction of a second, as a JavaScript date prints it, is read and ignored. New terms and a first link have nothing to have read, so sending one answers `409`; on a pending amendment, send the link's own `updated_at` (the GET on that document).",
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Two decimal places at most.",
      +            "maximum": 9999999999999.99,
      +            "minimum": 0,
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "document_id",
      +      "terms"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "account_id": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "action": {
      +        "const": "renew",
      +        "type": "string"
      +      },
      +      "document_id": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "end_date": {
      +        "description": "The new end date, after the current one. Absent, empty or `null`: the current end date plus the renewal term, stepped until it is in the future; `term` is then required.",
      +        "format": "date",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "term": {
      +        "description": "The term this renewal starts from, the contract's current `term`. Required unless `end_date` is sent; for a contract in another term the renewal is refused, so a repeated request never renews twice.",
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "updated_at": {
      +        "description": "Optional precondition: the contract's `updated_at` as read. Changed since: `409`, nothing renewed.",
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The new value; unchanged when not sent, cleared by `null`.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "document_id",
      +      "updated_at",
      +      "term"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "account_id": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "action": {
      +        "const": "terminate",
      +        "type": "string"
      +      },
      +      "document_id": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "reason": {
      +        "description": "Kept in the `document_contract_terminated` event; HTML is stripped.",
      +        "maxLength": 500,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "updated_at": {
      +        "description": "Optional precondition: the contract's `updated_at` as read. Changed since: `409`, nothing terminated.",
      +        "format": "date-time",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "action",
      +      "document_id",
      +      "updated_at"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / terms / anyOf
      Previous value: -[
      -  {
      -    "required": [
      -      "status"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "counterparty_name"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "counterparty_taxpayer_id"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "value"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "currency"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "start_date"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "end_date"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "auto_renew"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "renewal_term_months"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "notice_period_days"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "owner_id"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "metadata"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "external_references"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "parent_document_id"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "relation_type"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "required": [
      +      "status"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "counterparty_name"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "value"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "currency"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "start_date"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "end_date"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "auto_renew"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "renewal_term_months"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "notice_period_days"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "owner_id"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "metadata"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "external_references"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "parent_document_id"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "relation_type"
      +    ]
      +  }
      +]
    • removedInput schema / properties / terms / properties / counterparty_taxpayer_id
      Removed value: -{
      -  "description": "A valid CPF or CNPJ, formatted or not.",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • changedInput schema / properties / terms / properties / relation_type / description
      Previous value: -"Required on the first link. `amendment` may change `value`, `currency`, `start_date` (effective from, display only), `end_date`, `auto_renew`, `renewal_term_months`, `notice_period_days`, `counterparty_name`, `counterparty_taxpayer_id` and `metadata`; `renewal` only `end_date` and `value`; `termination` only `end_date` (the effective date)."New value: +"Required on the first link. `amendment` may change `value`, `currency`, `start_date` (effective from, display only), `end_date`, `auto_renew`, `renewal_term_months`, `notice_period_days`, `counterparty_name` and `metadata`; `renewal` only `end_date` and `value`; `termination` only `end_date` (the effective date)."
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description adds real behavioral context beyond that: optimistic concurrency returning 409 ContractChanged, the fact that changes trigger lifecycle emails/webhooks, that Assinafy owns auto-renewal and owner reminders, and that external_references replaces rather than merges. What it does not say is what a successful response returns, though with no output schema that is a minor gap for a mutation tool.

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 the three action modes, then preconditions, then side effects and scope — a sensible ordering. It is dense and telegraphic ('set creates/patches terms or links a signed amendment'), which costs a little readability, but no sentence is filler for a tool this complex.

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

Completeness4/5

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

Covers the multiplexed actions, required read-before-write precondition, conflict handling, side effects and out-of-scope operations, which is most of what an agent needs for a 9-parameter destructive mutation with no output schema. The main omission is any indication of what a successful call returns (created vs patched record, renewal result), leaving the agent to infer it from the schema alone.

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 coverage is 67% and the embedded schema descriptions are already extremely detailed about updated_at, null-clearing, and relation_type constraints. The description mostly restates those at a workflow level ('include terms.updated_at for existing terms or links') rather than adding new per-parameter semantics; its genuinely additive content — null unlinks a pending amendment, external_references replaces the list — is a modest increment over the schema.

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

Purpose5/5

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

States a specific verb and resource ('Manage an existing document's CLM record') and then enumerates the three action modes the tool multiplexes: set (creates/patches terms or links an amendment), renew, terminate. It also fences scope against siblings by declaring 'These actions do not sign, send or cancel the document itself', which separates it from send_pdf_for_signature, delete_document and the getters.

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

Usage Guidelines5/5

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

Gives explicit prerequisites ('Requires a tracking plan'), a mandatory read-first workflow ('include terms.updated_at for existing terms or links'), per-action preconditions (renew needs current term + updated_at, terminate needs updated_at), a negative instruction ('never blind retries'), and an authorization gate ('Use only for changes the user authorized'). An agent knows both when to call it and how to sequence the call.

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.