Skip to main content
Glama

Update contract

update_contract
Idempotent

Partially update a contract — only provided fields change.

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
scopeNo
valueNo
statusNo
agent_idNo
contractorNo
contract_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact beyond them — that the update is a merge/partial patch, not a replace — but says nothing about what happens to invalid status transitions, whether changes are reversible, or permission requirements for a mutation.

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?

One short sentence with the key qualifier front-loaded and zero filler. It is arguably under-specified rather than padded, which is a completeness problem, not a conciseness one.

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

Completeness2/5

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

For a six-parameter mutation with no schema descriptions, no output schema, and no annotations explaining return behavior, the description is far too thin. It never explains what the tool returns, how errors surface, or which of the six fields are meaningfully mutable.

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

Parameters2/5

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

Schema description coverage is 0% across six parameters, so the description must compensate and it does not. It conveys only that parameters are optional (only provided fields change); it adds no meaning for scope, value, status, agent_id, or contractor, leaving the agent to guess field formats and the scope of each field.

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?

States a specific verb (partially update) and resource (a contract), and the em-dash clause pins down the partial-update semantics so the agent knows unspecified fields are untouched. It does not explicitly distinguish itself from sibling mutators like update_change_order or update_quote, but the resource name is unambiguous.

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

Usage Guidelines2/5

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

No guidance on when to reach for this tool versus create_contract or the other ~30 update_* siblings, and no prerequisites or preconditions (e.g., contract must exist, which statuses are editable). The only usage signal is implicit: use it when you want a partial rather than full replacement, which is inferred rather than stated.

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.

Resources