Skip to main content
Glama

Update deal

update_deal
DestructiveIdempotent

Change a deal’s fields: status, amounts (cents), payment status, next action, dates, or notes. Send only what changes. To change deliverables, read get_deal first and send the complete list (keep ids of ones to keep; omitted ones are removed) with its deliverablesVersion as expectedDeliverablesVersion. Applies immediately.

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": {
      "dealId": "<dealId>",
      "changes": "<changes>"
    },
    "name": "update_deal"
  }
}

Input Schema

NameRequiredDescriptionDefault
dealIdYesDeal id from get_deals.
changesYes

Output Schema

NameRequiredDescriptionDefault
idNoId of the created or changed record, when there is one.
urlYesWhere the user can see the result in Distinctful.
doneYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / changes / properties / approvalRequired
      Added value: +{
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already flag destructiveHint=true and idempotentHint=true, so the description is not obliged to establish mutability; nevertheless it adds genuine context the annotations cannot convey: changes apply immediately, and for deliverables the list is replaced rather than merged, with omitted entries removed. What it leaves implicit is why expectedDeliverablesVersion exists (optimistic concurrency, stale-version rejection) and whether null clears a field. No statement conflicts with the annotations.

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?

Three sentences, front-loaded with the field list, then the partial-update rule, then the one genuinely non-obvious procedure. The deliverables sentence is long but dense with necessary caveats; almost nothing is redundant.

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?

For a complex nested mutation with an output schema covering return values, the description supplies what structured fields cannot: immediacy, partial-update semantics, whole-list replacement for deliverables, and the version token required to do it safely. Annotations carry the safety profile, so no critical decision input is missing.

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?

With 50% schema coverage, the description earns credit by clarifying semantics the schema cannot: amounts are in cents, only changed keys should be sent, and deliverables form a whole-list replacement keyed by ids and gated by expectedDeliverablesVersion. Many nested change properties (kind, dealName, sponsorName, website, contactEmail, the 'expected' object, approvalRequired) get no mention, leaving the agent to read them out of the schema.

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?

Gives a specific verb plus resource and enumerates the field groups it mutates (status, amounts in cents, payment status, next action, dates, notes), which is far beyond restating the name. It does not name competing siblings like update_offer or create_deal to draw boundaries, so an agent must infer that this tool is scoped to deal records only.

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?

Explicitly states partial-update behavior ('Send only what changes') and gives a concrete precondition for the tricky case: read get_deal first, then send the complete deliverables list with expectedDeliverablesVersion. There is no guidance on when to prefer this tool over a sibling such as update_offer, and no note on error recovery when the version check fails, so the routing picture is incomplete rather than absent.

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