Skip to main content
Glama

Update contract

clm_update_contract
DestructiveIdempotent

Partially update approved contract metadata using its current version; stale versions conflict. Returns the updated contract metadata; use clm_bulk_update_contracts for multiple records. Send at least one field besides id and expectedUpdatedAt. Contracko's extracted values are preferred over manual supplementation. Date changes may update scheduled email notifications; changes may update calendar feeds.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>",
      "expectedUpdatedAt": "<expectedUpdatedAt>"
    },
    "name": "clm_update_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID
notesNoNotes
titleNoTitle
statusNoLifecycle status
endDateNoEnd date
partiesNoList-parties IDs, not guessed; A/B primary, third_party not; supplied roles replace, others stay
startDateNoStart date
categoryIdNoType ID; null clears
annualValueNoAnnual value
descriptionNoDescription
isExclusiveNoExclusivity
isOpenEndedNoTrue requires omitting endDate, autoRenewing and renewal settings.
autoRenewingNoFixed-term auto-renewal
governingLawNoGoverning law
jurisdictionNoJurisdiction
reviewStatusNoReview status
financialSummaryNoFinancial summary
liabilitySummaryNoLiability summary
noticePeriodUnitNoNotice unit
customFieldValuesNoRead the contract and its type with Get contract and Get contract type. Use the fieldKey each type field declares, never its id or label. Match fieldType and config: text/select use strings, date uses an ISO date string, number/percentage use JSON numbers, boolean uses true/false, currency uses {amount: nonnegative number, currency: configured code}, and multi-select uses an array of distinct configured option strings. Respect configured limits, decimalPlaces and options. Omit customFieldValues to keep saved values.
expectedUpdatedAtYesSaved update time
noticePeriodValueNoNotice length
renewalPeriodUnitNoRenewal unit
liabilityCapAmountNoCap amount
noticeDeadlineDateNoFixed deadline; overrides notice period.
noticeInstructionsNoServing notice
renewalPeriodValueNoRenewal length
financialTotalValueNoTotal value
liabilityCapCurrencyNoCap currency
financialValueCurrencyNoValue currency

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / customFieldValues / description
      Previous value: -"fieldKey to saved values"New value: +"Read the contract and its type with Get contract and Get contract type. Use the fieldKey each type field declares, never its id or label. Match fieldType and config: text/select use strings, date uses an ISO date string, number/percentage use JSON numbers, boolean uses true/false, currency uses {amount: nonnegative number, currency: configured code}, and multi-select uses an array of distinct configured option strings. Respect configured limits, decimalPlaces and options. Omit customFieldValues to keep saved values."
  2. Changed1 schema field changed
    • addedInput schema / properties / noticeDeadlineDate
      Added value: +{
      +  "description": "Fixed deadline; overrides notice period.",
      +  "format": "date",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  3. Changed44 schema fields changed
    • addedInput schema / properties / annualValue / description
      Added value: +"Annual value"
    • changedInput schema / properties / autoRenewing / description
      Previous value: -"Whether the fixed-term contract auto-renews"New value: +"Fixed-term auto-renewal"
    • removedInput schema / properties / categoryId / anyOf
      Removed value: -[
      -  {
      -    "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"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / categoryId / description
      Previous value: -"Contract type identifier. Set to null to clear the contract type."New value: +"Type ID; null clears"
    • addedInput schema / properties / categoryId / format
      Added value: +"uuid"
    • addedInput schema / properties / categoryId / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedInput schema / properties / customFieldValues / description
      Added value: +"fieldKey to saved values"
    • addedInput schema / properties / description / description
      Added value: +"Description"
    • removedInput schema / properties / endDate / 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 / endDate / description
      Added value: +"End date"
    • addedInput schema / properties / endDate / format
      Added value: +"date"
    • addedInput schema / properties / endDate / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedInput schema / properties / expectedUpdatedAt / description
      Added value: +"Saved update time"
    • addedInput schema / properties / financialSummary
      Added value: +{
      +  "description": "Financial summary",
      +  "maxLength": 2000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / financialTotalValue
      Added value: +{
      +  "description": "Total value",
      +  "maximum": 999999999999.99,
      +  "minimum": 0,
      +  "multipleOf": 0.01,
      +  "type": "number"
      +}
    • addedInput schema / properties / financialValueCurrency
      Added value: +{
      +  "description": "Value currency",
      +  "maxLength": 3,
      +  "minLength": 3,
      +  "pattern": "^[A-Za-z]{3}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / governingLaw
      Added value: +{
      +  "description": "Governing law",
      +  "maxLength": 20000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / id / description
      Added value: +"ID"
    • removedInput schema / properties / id / 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)$"
    • addedInput schema / properties / isExclusive
      Added value: +{
      +  "description": "Exclusivity",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / isOpenEnded / description
      Previous value: -"Whether the contract is open-ended. When true, also clears end date, auto-renewal, and renewal period."New value: +"True requires omitting endDate, autoRenewing and renewal settings."
    • addedInput schema / properties / jurisdiction
      Added value: +{
      +  "description": "Jurisdiction",
      +  "maxLength": 20000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / liabilityCapAmount
      Added value: +{
      +  "description": "Cap amount",
      +  "maximum": 999999999999.99,
      +  "minimum": 0,
      +  "multipleOf": 0.01,
      +  "type": "number"
      +}
    • addedInput schema / properties / liabilityCapCurrency
      Added value: +{
      +  "description": "Cap currency",
      +  "maxLength": 3,
      +  "minLength": 3,
      +  "pattern": "^[A-Za-z]{3}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / liabilitySummary
      Added value: +{
      +  "description": "Liability summary",
      +  "maxLength": 20000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / notes / description
      Added value: +"Notes"
    • addedInput schema / properties / noticeInstructions
      Added value: +{
      +  "description": "Serving notice",
      +  "maxLength": 20000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / noticePeriodUnit
      Added value: +{
      +  "description": "Notice unit",
      +  "enum": [
      +    "days",
      +    "weeks",
      +    "months",
      +    "quarters",
      +    "years"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / noticePeriodValue
      Added value: +{
      +  "description": "Notice length",
      +  "exclusiveMinimum": 0,
      +  "maximum": 2147483647,
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / parties / description
      Added value: +"List-parties IDs, not guessed; A/B primary, third_party not; supplied roles replace, others stay"
    • removedInput schema / properties / parties / items / properties / counterpartyId / 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)$"
    • addedInput schema / properties / renewalPeriodUnit / description
      Added value: +"Renewal unit"
    • removedInput schema / properties / renewalPeriodValue / anyOf
      Removed value: -[
      -  {
      -    "exclusiveMinimum": 0,
      -    "maximum": 2147483647,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / renewalPeriodValue / description
      Added value: +"Renewal length"
    • addedInput schema / properties / renewalPeriodValue / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / renewalPeriodValue / maximum
      Added value: +2147483647
    • addedInput schema / properties / renewalPeriodValue / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • addedInput schema / properties / reviewStatus / description
      Added value: +"Review status"
    • addedInput schema / properties / startDate / description
      Added value: +"Start date"
    • removedInput schema / properties / startDate / pattern
      Removed value: -"^(?:(?:\\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])))$"
    • addedInput schema / properties / status / description
      Added value: +"Lifecycle status"
    • addedInput schema / properties / title / description
      Added value: +"Title"
    • removedInput schema / properties / title / maxLength
      Removed value: -500
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "changedFields": {
      -      "description": "Names of the metadata fields changed by this request",
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "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"
      -        }
      -      ],
      -      "description": "Updated contract UUID",
      -      "type": "string"
      -    },
      -    "updated": {
      -      "description": "Whether this request changed persisted metadata",
      -      "type": "boolean"
      -    }
      -  },
      -  "required": [
      -    "id",
      -    "updated",
      -    "changedFields"
      -  ],
      -  "type": "object"
      -}New value: +null
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true, readOnly=false; the description goes beyond them by disclosing optimistic-concurrency conflict behavior and downstream side effects (scheduled email notifications, calendar feeds). It also states the return payload exists. It does not say what specifically is destroyed or whether conflicts are retryable, which keeps it below a 5.

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?

Five short, front-loaded clauses with almost no filler; the constraint and the alternative are stated early. Slightly telegraphic phrasing ("Contracko's extracted values are preferred") assumes product context the model may not have.

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?

For a 30-parameter, nested mutation tool with no output schema, the description covers the essentials: concurrency model, minimum payload, return value, bulk alternative, and side effects. Remaining gaps (retry-on-conflict, permission requirements) are minor but real for a destructive write.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real semantics on top: the minimum-fields rule (id + expectedUpdatedAt + at least one more) and the preference for Contracko-extracted values over manual supplementation. It does not attempt to explain any individual field, but the schema already does.

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 precise verb and resource — "partially update approved contract metadata" — and adds the scope qualifier that only approved contracts and current versions are eligible. It also names the sibling clm_bulk_update_contracts as the multi-record path, so the agent can differentiate without opening another schema.

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?

Gives concrete preconditions: current version required (stale versions conflict), at least one field besides id and expectedUpdatedAt, and bulk edits go to clm_bulk_update_contracts. Missing only explicit exclusions against other contract-mutating siblings (events, reminders), which the agent must infer.

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.