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. Date changes may update scheduled emails; changes may update calendar feeds.

Input Schema

NameRequiredDescriptionDefault
updatesYesVersion-fenced updates, <=100

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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
  2. First observed

TDQS

A4/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 openWorldHint=false. Beyond those, the description adds meaningful side effects: date changes can update scheduled emails and calendar feeds, and results are per-contract outcomes. It still omits conflict/version behavior and atomicity, so it is not a full 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?

Two compact sentences are front-loaded with scope and then side effects. Every sentence adds operational context; there is no filler.

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 complex bulk mutation with no output schema, the description supplies the batch limit, per-contract outcomes, and notable side effects. The rich schema carries field/version details and annotations carry the safety profile, though partial-failure and atomicity semantics remain implicit.

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 100%, so the nested update object and required expectedUpdatedAt are documented by the schema. The description adds no parameter-level syntax or constraints beyond 'up to 100' and 'date changes'; the baseline 3 applies.

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?

The description opens with 'Patch metadata for up to 100 contracts', giving a specific verb (patch), resource (contracts), and scope (bulk up to 100). This distinguishes it from the single-contract sibling clm_update_contract even though it does not name that sibling.

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

Usage Guidelines3/5

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

It establishes the bulk context and 100-item limit, but gives no explicit when-not guidance or named alternative such as clm_update_contract for single updates. Usage is implied by the bulk limit rather than stated as routing advice.

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.