Skip to main content
Glama
dealdesk-mcp

dealdesk-mcp

dealdesk.apply_quote_preset

Destructive

Preview or apply a quote preset onto a draft quote, resolving missing products and stale prices before writing confirmed changes.

Instructions

Preview or apply a quote preset onto a draft quote. confirm=false writes nothing and returns empty, missing, and stale lines. confirm=true writes only after mode replace|append|merge (unless the quote has no positions), a freeText|omit choice for every missing product, and priceChoice keep|refresh when prices differ. Refused for accepted, declined, or shared quotes and for a currency mismatch.

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": {
      "quoteId": "<quoteId>",
      "presetId": "<presetId>"
    },
    "name": "dealdesk.apply_quote_preset"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
confirmNofalse previews. true writes after the user has chosen.
quoteIdYes
presetIdYes
projectIdNoDealDesk project id. Omit when the OAuth token or API key authorizes exactly one project. Required when Connect authorized several projects.
priceChoiceNo
missingLinesNoChoices for products no longer in the portfolio: { lineId, action: freeText|omit }

Output Schema

NameRequiredDescriptionDefault
emptyNo
quoteNo
staleNo
confirmNo
missingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, yet the description still adds real value: confirm=false writes nothing, confirm=true writes only after required choices are supplied, and the operation is refused for accepted, declined, or shared quotes and for currency mismatches. It stops short of stating what happens to existing line items in replace mode or what authorization the write requires beyond the schema's projectId note.

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?

The definition is dense but front-loaded: the preview-vs-apply distinction opens the text, followed by write preconditions and then refusal conditions. Every clause carries information, though the middle sentence packs several requirements into a single long list that takes close reading to parse.

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 destructive, multi-mode write tool, the description covers the mode split, the gating requirements for a write, the refusal states, and even the shape of the preview result (empty, missing, stale lines). With an output schema present and the remaining parameter detail carried by the schema, nothing an agent needs to invoke this correctly 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?

Schema description coverage is only 43%, so the description must compensate, and it largely does: it explains confirm's preview/write split, the mode enum's replace|append|merge semantics, priceChoice keep|refresh when prices differ, and the freeText|omit decision encoded in missingLines. Only quoteId and presetId remain purely structural, which is reasonable for identifiers.

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 first sentence names a specific verb pair and resource: 'Preview or apply a quote preset onto a draft quote,' which immediately separates the two operating modes. It does not explicitly contrast itself with nearby siblings such as create_quote_from_preset or refresh_quote_preset_prices, so an agent must infer that this tool mutates an existing draft rather than creating one.

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?

The description gives clear selection logic between the two modes: confirm=false is a no-write preview, confirm=true is a write gated on mode, per-missing-product choices, and priceChoice. It also lists explicit when-not conditions (accepted, declined, or shared quotes; currency mismatch), but names no alternative tool to use when the call is refused.

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