Skip to main content
Glama

Update Opportunity

update-opportunity-tool
DestructiveIdempotent

Update an existing opportunity (deal) in the CRM. Use the crm-schema resource to discover available custom attributes (custom fields).

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": {
      "id": "<id>"
    },
    "name": "update-opportunity-tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe opportunity ID to update.
nameNoThe opportunity name.
company_idNoThe associated company ID.
contact_idNoThe associated contact (person) ID.
custom_fieldsNoCustom attribute (custom field) values as key-value pairs. IMPORTANT: You MUST first read the crm-schema resource to discover valid field codes for this entity type. Unknown field codes will be rejected. Use exact field codes from the schema (e.g. "job_title", not "jobTitle").

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / custom_fields / description
      Previous value: -"Custom field values as key-value pairs. IMPORTANT: You MUST first read the crm-schema resource to discover valid field codes for this entity type. Unknown field codes will be rejected. Use exact field codes from the schema (e.g. \"job_title\", not \"jobTitle\")."New value: +"Custom attribute (custom field) values as key-value pairs. IMPORTANT: You MUST first read the crm-schema resource to discover valid field codes for this entity type. Unknown field codes will be rejected. Use exact field codes from the schema (e.g. \"job_title\", not \"jobTitle\")."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds the schema-discovery prerequisite, which is real operational context, but it never addresses the key behavioral question for an update tool flagged destructive: are unlisted fields preserved or cleared, and are changes reversible? That omission limits it to a 3.

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 short sentences, the operation stated first and the prerequisite second, with no filler or repetition.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the custom_fields prerequisite is well covered. Still missing for a destructive, idempotent update with 5 parameters: whether the call is a partial patch or a full overwrite, and whether any permissions or record-state preconditions apply.

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 baseline is 3, but the description adds a procedural constraint not obvious from the schema alone: you must consult the crm-schema resource to obtain valid custom field codes before populating custom_fields. This meaningfully reduces trial-and-error on the nested object parameter.

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?

The description states a specific verb and resource ('Update an existing opportunity (deal)') and clarifies CRM terminology by equating opportunity with deal. It does not explicitly distinguish itself from sibling write tools, but the name-plus-verb combination makes the target entity unambiguous.

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 implied — modify an existing opportunity as opposed to creating or deleting one — and a useful prerequisite is given (read the crm-schema resource first for custom attributes). However, there is no explicit when-to-use-vs-alternative guidance (e.g., use get-opportunity-tool first to find the ID, or create-opportunity-tool for new records).

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.