Skip to main content
Glama

Update contracts in bulk

clm_bulk_update_contracts
DestructiveIdempotent

Patch metadata for up to 100 contracts with per-contract outcomes; use clm_update_contract for one record. Each expectedUpdatedAt must match the latest read. Date changes may update scheduled emails; 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": {
      "updates": "<updates>"
    },
    "name": "clm_bulk_update_contracts"
  }
}

Input Schema

NameRequiredDescriptionDefault
updatesYesVersion-fenced updates, <=100

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / updates / items / properties / noticeDeadlineDate
      Added value: +{
      +  "format": "date",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed31 schema fields changed
    • addedInput schema / properties / updates / description
      Added value: +"Version-fenced updates, <=100"
    • changedInput schema / properties / updates / items / properties / autoRenewing / description
      Previous value: -"Whether the fixed-term contract auto-renews"New value: +"Fixed-term auto-renewal"
    • removedInput schema / properties / updates / items / 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 / updates / items / 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 / updates / items / properties / categoryId / format
      Added value: +"uuid"
    • addedInput schema / properties / updates / items / properties / categoryId / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / updates / items / 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 / updates / items / properties / endDate / format
      Added value: +"date"
    • addedInput schema / properties / updates / items / properties / endDate / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedInput schema / properties / updates / items / properties / financialSummary
      Added value: +{
      +  "maxLength": 2000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / updates / items / properties / financialTotalValue
      Added value: +{
      +  "maximum": 999999999999.99,
      +  "minimum": 0,
      +  "multipleOf": 0.01,
      +  "type": "number"
      +}
    • addedInput schema / properties / updates / items / properties / financialValueCurrency
      Added value: +{
      +  "maxLength": 3,
      +  "minLength": 3,
      +  "pattern": "^[A-Za-z]{3}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / updates / items / properties / governingLaw
      Added value: +{
      +  "maxLength": 20000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / updates / items / 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 / updates / items / properties / isExclusive
      Added value: +{
      +  "type": "boolean"
      +}
    • changedInput schema / properties / updates / items / 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 / updates / items / properties / jurisdiction
      Added value: +{
      +  "maxLength": 20000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / updates / items / properties / liabilityCapAmount
      Added value: +{
      +  "maximum": 999999999999.99,
      +  "minimum": 0,
      +  "multipleOf": 0.01,
      +  "type": "number"
      +}
    • addedInput schema / properties / updates / items / properties / liabilityCapCurrency
      Added value: +{
      +  "maxLength": 3,
      +  "minLength": 3,
      +  "pattern": "^[A-Za-z]{3}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / updates / items / properties / liabilitySummary
      Added value: +{
      +  "maxLength": 20000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / updates / items / properties / noticeInstructions
      Added value: +{
      +  "maxLength": 20000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / updates / items / properties / noticePeriodUnit
      Added value: +{
      +  "enum": [
      +    "days",
      +    "weeks",
      +    "months",
      +    "quarters",
      +    "years"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / updates / items / properties / noticePeriodValue
      Added value: +{
      +  "exclusiveMinimum": 0,
      +  "maximum": 2147483647,
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • removedInput schema / properties / updates / items / 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)$"
    • removedInput schema / properties / updates / items / properties / renewalPeriodValue / anyOf
      Removed value: -[
      -  {
      -    "exclusiveMinimum": 0,
      -    "maximum": 2147483647,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / updates / items / properties / renewalPeriodValue / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / updates / items / properties / renewalPeriodValue / maximum
      Added value: +2147483647
    • addedInput schema / properties / updates / items / properties / renewalPeriodValue / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / updates / items / 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])))$"
    • removedInput schema / properties / updates / items / properties / title / maxLength
      Removed value: -500
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "results": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "changedFields": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "error": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "errorCode": {
      -            "anyOf": [
      -              {
      -                "enum": [
      -                  "conflict",
      -                  "denied",
      -                  "invalid",
      -                  "not_found",
      -                  "failed"
      -                ],
      -                "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"
      -          },
      -          "updated": {
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "updated",
      -          "changedFields",
      -          "error",
      -          "errorCode"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "results"
      -  ],
      -  "type": "object"
      -}New value: +null
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and non-read-only, so safety framing is partly covered; the description nonetheless adds real substance beyond them. It discloses partial-success semantics ("per-contract outcomes"), an optimistic-concurrency precondition, and non-obvious side effects on scheduled emails and calendar feeds. Auth requirements and rate limits remain unstated, keeping it off 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.

Conciseness5/5

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

Three short clauses with zero filler: scope first, sibling routing second, then preconditions and side effects. Every sentence carries distinct, actionable information.

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 destructive bulk mutation with no output schema, the description covers the essentials: batch size, per-contract results, concurrency fencing, and downstream side effects. It stops short of stating atomicity guarantees (whether a single bad record aborts the batch) and permission requirements, which an agent would still want.

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 reported at 100%, so the schema already carries most per-field meaning and the baseline of 3 applies. The description does add genuine semantics the schema does not: that each expectedUpdatedAt must equal the value from the latest read, and that the batch is capped at 100.

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?

Specific verb+resource ("Patch metadata ... contracts") with an explicit scale bound of up to 100 records and a stated outcome model ("per-contract outcomes"). It also explicitly disambiguates from the singular sibling clm_update_contract, so an agent can route without opening either schema.

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 a concrete routing rule: use this for bulk patching, use clm_update_contract when touching one record. The 100-item cap plus the singular alternative makes the selection boundary unambiguous.

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.