Skip to main content
Glama
dealdesk-mcp

dealdesk-mcp

dealdesk.patch_case

Destructive

Update a DealDesk case's title, stage, description, links, and estimate details, including value period, currency, and probability. Use it to revise case records without changing linked quote totals.

Instructions

Update a DealDesk case (title, stage, description, links, estimates including estimatedValuePeriod). For an existing desk card, prefer dealdesk.patch_card with the same estimate fields (it updates the linked case when one exists).

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": {
      "caseId": "<caseId>"
    },
    "name": "dealdesk.patch_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
stageNo
titleNo
caseIdYes
quoteIdNo
companyIdNo
contactIdNo
projectIdNoDealDesk project id. Omit when the OAuth token or API key authorizes exactly one project. Required when Connect authorized several projects.
descriptionNo
ownerUserIdNo
estimatedValueNoWorking forecast amount. Does not rewrite linked quote totals.
probabilityPercentNoWin chance percent (0–100).
estimatedValuePeriodNoLabels estimatedValue as one-time, monthly, or yearly. Does not convert the amount. Use year for ARR / per-year (e.g. 4000 EUR per year). Defaults to one_time when omitted on create.
estimatedValueCurrencyNoISO 4217 alpha-3 currency code (e.g. EUR).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.1.1
    • addedInput schema / properties / estimatedValue / description
      Added value: +"Working forecast amount. Does not rewrite linked quote totals."
    • addedInput schema / properties / estimatedValue / minimum
      Added value: +0
    • addedInput schema / properties / estimatedValueCurrency / description
      Added value: +"ISO 4217 alpha-3 currency code (e.g. EUR)."
    • addedInput schema / properties / estimatedValuePeriod
      Added value: +{
      +  "description": "Labels estimatedValue as one-time, monthly, or yearly. Does not convert the amount. Use year for ARR / per-year (e.g. 4000 EUR per year). Defaults to one_time when omitted on create.",
      +  "enum": [
      +    "one_time",
      +    "month",
      +    "year"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / probabilityPercent / description
      Added value: +"Win chance percent (0–100)."
    • addedInput schema / properties / probabilityPercent / maximum
      Added value: +100
    • addedInput schema / properties / probabilityPercent / minimum
      Added value: +0
    • changedInput schema / properties / projectId / description
      Previous value: -"DealDesk project id (must match API key / OAuth project)"New value: +"DealDesk project id. Omit when the OAuth token or API key authorizes exactly one project. Required when Connect authorized several projects."
    • changedInput schema / required
      Previous value: -[
      -  "projectId",
      -  "caseId"
      -]New value: +[
      +  "caseId"
      +]
  2. First observedv0.1.0

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, openWorldHint=true and readOnlyHint=false, so the risk profile is carried by structured data. The description adds useful behavioral context about the card-to-case write coupling. It says nothing about merge vs overwrite semantics, whether omitted or null fields clear existing values, or permission requirements — significant omissions for a destructive 13-parameter mutation.

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 sentences, both front-loaded with the operation first and the routing advice second. No filler, no restatement of the tool name, and the alternative is placed after the primary purpose rather than displacing it.

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 high-parameter mutation tool with no output schema, the definition covers purpose and the sibling routing decision plus the risk profile via annotations. The gaps are the merge/clear semantics and stage vocabulary, which matter for correct invocation but are partially recoverable from the schema's own field descriptions.

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 only 38% across 13 parameters, so the description must compensate and largely does not. Naming 'links' and 'estimates' is a loose gloss on quoteId/companyId/contactId/projectId/estimatedValueCurrency, and there is no explanation of nullability semantics for the five nullable fields or of how stage values are constrained (the schema gives no enum for stage).

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+resource ('Update a DealDesk case') and enumerates the field groups affected (title, stage, description, links, estimates), which lets an agent map the call to intent without opening the schema. It does not mention ownerUserId or probabilityPercent, so the field list is not exhaustive, but the core purpose 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 Guidelines4/5

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

Gives an explicit routing rule: for an existing desk card, prefer dealdesk.patch_card because it updates the linked case when one exists. That names the alternative and the condition selecting it. It stops short of stating when case-patching is genuinely required (e.g. case with no linked card), so the agent must infer the complement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools