Skip to main content
Glama

Manage deals

deals_manage
Destructive

Change deals. create (title and stageId from deal_stages_list), update (stageId moves it; omitted fields unchanged; tags: tags_manage apply), delete (soft; confirm first), restore (ids from deals_list deleted).

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": {
      "action": "<action>"
    },
    "name": "deals_manage"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoRequired for: update, delete.
idsNorestore: deleted ids.
notesNoUsed by: create, update.
titleNoRequired for: create; optional for: update.
actionYes
closeAtNoUsed by: create, update. Expected close date, YYYY-MM-DD or ISO 8601.
stageIdNoRequired for: create; optional for: update.
companyIdNoUsed by: create, update.
contactIdNoUsed by: create, update.
deletedAtNorestore: a deleted_at (undoes that whole delete).
lostReasonNo
valueCentsNoUsed by: create, update. In the account's default currency (deals have no currency of their own).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / deletedAt / description
      Previous value: -"restore: a deleted_at from the deleted list (undoes that whole delete)."New value: +"restore: a deleted_at (undoes that whole delete)."
  2. Changed3 schema fields changed
    • changedInput schema / properties / deletedAt / description
      Previous value: -"restore: undo one delete, everything it removed (its deleted_at from the deleted list)."New value: +"restore: a deleted_at from the deleted list (undoes that whole delete)."
    • changedInput schema / properties / ids / description
      Previous value: -"restore: the deleted records to bring back."New value: +"restore: deleted ids."
    • addedInput schema / properties / lostReason
      Added value: +{
      +  "type": "string"
      +}
  3. Changed8 schema fields changed
    • changedInput schema / properties / closeAt / description
      Previous value: -"Expected close date, YYYY-MM-DD or ISO 8601."New value: +"Used by: create, update. Expected close date, YYYY-MM-DD or ISO 8601."
    • addedInput schema / properties / companyId / description
      Added value: +"Used by: create, update."
    • addedInput schema / properties / contactId / description
      Added value: +"Used by: create, update."
    • addedInput schema / properties / id / description
      Added value: +"Required for: update, delete."
    • addedInput schema / properties / notes / description
      Added value: +"Used by: create, update."
    • addedInput schema / properties / stageId / description
      Added value: +"Required for: create; optional for: update."
    • addedInput schema / properties / title / description
      Added value: +"Required for: create; optional for: update."
    • changedInput schema / properties / valueCents / description
      Previous value: -"In the account's default currency (deals have no currency of their own)."New value: +"Used by: create, update. In the account's default currency (deals have no currency of their own)."
  4. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already mark this as destructive and non-idempotent, and the description adds important behavior: delete is soft and should be confirmed first, update leaves omitted fields unchanged, and restore undoes an entire delete. It does not cover permissions or return behavior, but it meaningfully extends the annotation profile.

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?

The description is front-loaded with the tool purpose and then organized by action with no wasted sentences. The compact telegraphic style is efficient and still readable.

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?

For a 12-parameter multi-action mutation tool, the description covers the main action semantics, destructive delete handling, restore source, and update behavior. It does not describe return values, but the structured schema handles most parameter detail.

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 high, but the description still adds useful parameter meaning by identifying title and stageId for create, stageId movement for update, ids for restore, and tags via tags_manage. That goes beyond the field-level schema descriptions.

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?

The description names the resource and gives a specific action breakdown for create, update, delete, and restore. It also points to related tools for required IDs, which helps distinguish this tool from deals_list and deal_stages_list.

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?

Each supported action is described with enough context to choose the right one, including update semantics and restore source IDs. It does not fully spell out when to prefer this over deals_list beyond restore ID lookup, but the action-level guidance is clear.

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