Skip to main content
Glama

update_contract

DestructiveIdempotent

Change a contract. Required: contract_id. Same optional fields as create_contract. Changing ends_on, notice_months, auto_renew or renew_months recalculates the derived deadlines; manually entered ones are never touched.

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": {
      "contract_id": "<contract_id>"
    },
    "name": "update_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoFree-text notes
titleNoTitle of the contract
statusNoNew status
ends_onNoEnd date of the contract term (ISO date); basis for derived deadlines
lead_idNoID of the lead
our_roleNoOur side in the contract (customer, provider, landlord, tenant, partner, other); decides whom a notice period binds
referenceNoExternal reference or contract number; used for idempotent imports
starts_onNoStart date of the contract term (ISO date)
account_idNoID of the account (company)
auto_renewNoWhether the contract renews automatically when not terminated
contact_idNoID of the contact
contract_idYesID of the contract to change
renew_monthsNoLength of each automatic renewal in months
value_amountNoContract value per value_period
value_periodNoPeriod the value refers to, e.g. month, quarter, year or once
contract_typeNoContract type, e.g. rental, service, maintenance, lease, insurance, nda or other
notice_monthsNoNotice period in months before the term ends
our_account_idNoID of the own company (account)
source_file_idNoID of the source file
source_root_idNoID of the source root folder
value_currencyNoCurrency of the contract value, e.g. EUR or CHF
counterparty_nameNoName of the other contracting party

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed22 schema fields changed
    • addedInput schema / properties / account_id / description
      Added value: +"ID of the account (company)"
    • addedInput schema / properties / auto_renew / description
      Added value: +"Whether the contract renews automatically when not terminated"
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / contract_id / description
      Added value: +"ID of the contract to change"
    • addedInput schema / properties / contract_type / description
      Added value: +"Contract type, e.g. rental, service, maintenance, lease, insurance, nda or other"
    • addedInput schema / properties / counterparty_name / description
      Added value: +"Name of the other contracting party"
    • addedInput schema / properties / ends_on / description
      Added value: +"End date of the contract term (ISO date); basis for derived deadlines"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
    • addedInput schema / properties / notes / description
      Added value: +"Free-text notes"
    • addedInput schema / properties / notice_months / description
      Added value: +"Notice period in months before the term ends"
    • addedInput schema / properties / our_account_id / description
      Added value: +"ID of the own company (account)"
    • addedInput schema / properties / our_role / description
      Added value: +"Our side in the contract (customer, provider, landlord, tenant, partner, other); decides whom a notice period binds"
    • addedInput schema / properties / reference / description
      Added value: +"External reference or contract number; used for idempotent imports"
    • addedInput schema / properties / renew_months / description
      Added value: +"Length of each automatic renewal in months"
    • addedInput schema / properties / source_file_id / description
      Added value: +"ID of the source file"
    • addedInput schema / properties / source_root_id / description
      Added value: +"ID of the source root folder"
    • addedInput schema / properties / starts_on / description
      Added value: +"Start date of the contract term (ISO date)"
    • addedInput schema / properties / status / description
      Added value: +"New status"
    • addedInput schema / properties / title / description
      Added value: +"Title of the contract"
    • addedInput schema / properties / value_amount / description
      Added value: +"Contract value per value_period"
    • addedInput schema / properties / value_currency / description
      Added value: +"Currency of the contract value, e.g. EUR or CHF"
    • addedInput schema / properties / value_period / description
      Added value: +"Period the value refers to, e.g. month, quarter, year or once"
  2. First observed

TDQS

B3.4/5.0
Behavior2/5

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

Annotations supply the safety profile (readOnlyHint=false, destructiveHint=true, idempotentHint=true), so the meta-assertion must earn credit elsewhere at a lower bar. It does add one genuinely non-obvious behavior: changing ends_on, notice_months, auto_renew or renew_months recalculates derived deadlines while manually entered ones are preserved. However, contrary to the destructiveHint=true annotation, the description frames the tool as adding or recalculating data and never warns that omitted fields may be cleared or that the operation is destructive; the destructive framing is also incompatible with the "never touched" reassurance, leaving an agent unable to tell which fields are at risk.

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 sentences, front-loaded with the required parameter first and the behavioral caveat second, with zero filler. Every clause carries information an agent could not get from the schema alone.

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?

Given 22 parameters, no output schema and rich annotations, the description covers what an agent most needs to call it safely: the required ID, the field-source pointer, and the deadline side effects. The gap is partial-update semantics: it never says whether omitted parameters are left unchanged or cleared, which is critical for a mutation this wide.

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?

With 22 parameters at 100% schema coverage, the schema does the heavy lifting, so the baseline is low. The one real addition is the causal link between four fields and deadline recalculation, but "same optional fields as create_contract" is a stale cross-reference against the fully documented inline schema and explains nothing about partial-update semantics for the other 17 parameters.

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

Purpose4/5

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

"Change a contract" gives a specific verb and resource, and the required contract_id plus "same optional fields as create_contract" scopes the write precisely. It implicitly separates itself from create_contract and get_contract, though it never names bulk_update_contracts, which is the nearest ambiguous sibling for multi-record edits.

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?

Usage is only implied: an agent can infer this is the single-contract edit path because the description ties it to create_contract's field set, but there is no explicit when-to-use, no exclusion of bulk_update_contracts, and no statement that this tool targets one contract by ID.

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.