Skip to main content
Glama

bulk_update_contracts

DestructiveIdempotent

Change up to 200 contracts in ONE call: per item { contract_id, account_id?, contact_id?, our_account_id?, our_role?, status?, counterparty_name?, contract_type?, custom_values?: { key: value } }. Each item goes through update_contract and set_custom_values, so the same rights, field rights, approvals and history apply as for single calls. One bad item does not stop the others. Returns { ok, failed, errors: [{contract_id, error}] } — no records, so it stays small.

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": {
      "items": "<items>"
    },
    "name": "bulk_update_contracts"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesUp to 200 changes, each { contract_id, ... } with the fields to set

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / items / description
      Added value: +"Up to 200 changes, each { contract_id, ... } with the fields to set"
    • addedInput schema / properties / items / items / properties / account_id / description
      Added value: +"ID of the account (company)"
    • addedInput schema / properties / items / items / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / items / items / properties / contract_id / description
      Added value: +"ID of the contract"
    • addedInput schema / properties / items / items / properties / contract_type / description
      Added value: +"Contract type, e.g. rental, service, maintenance, lease, insurance"
    • addedInput schema / properties / items / items / properties / counterparty_name / description
      Added value: +"Name of the counterparty as text"
    • addedInput schema / properties / items / items / properties / custom_values / description
      Added value: +"Custom field values { key: value }, set via set_custom_values"
    • addedInput schema / properties / items / items / properties / our_account_id / description
      Added value: +"ID of the own company (account)"
    • addedInput schema / properties / items / items / properties / our_role / description
      Added value: +"Our role in the contract, e.g. customer, provider, landlord, tenant, partner, other"
    • addedInput schema / properties / items / items / properties / status / description
      Added value: +"New contract status, e.g. draft, active, terminated, expired, archived"
  2. 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 openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior: per-item validation through the single-record paths, partial-failure tolerance ('one bad item does not stop the others'), and the error-shape return, which is what an agent most needs before batching writes.

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?

The scope, the item shape, the semantics and the return value all arrive in the first three sentences, which is well front-loaded. The inline enumeration of every optional field duplicates the schema and makes the opening sentence heavy, but nothing is truly wasteful.

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

Completeness5/5

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

There is no output schema, and the description compensates by describing the exact return shape { ok, failed, errors } and noting no records come back, so the response stays small. Combined with the 200 limit, the partial-failure rule and the rights/approval inheritance, an agent has everything needed to call this correctly.

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 the per-field semantics are already documented, and the description's item spec largely mirrors the schema. It does add real meaning by clarifying the 200-item cap and by routing custom_values through set_custom_values, which explains how those values are actually persisted.

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 plus resource and scope: 'Change up to 200 contracts in ONE call.' The bulk nature and the 200-item ceiling immediately distinguish it from the single-record sibling update_contract, which the description also names as the underlying mechanism.

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?

Usage context is clear: it is the batched equivalent of update_contract plus set_custom_values, so use it when many contracts need the same kinds of field changes, and the same rights/approvals/history apply. It stops short of an explicit exclusion such as 'use update_contract for a single record' or advice on when batching is a poor fit.

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.