Skip to main content
Glama

Transition deal

transition_deal
Destructive

Move a deal to a pipeline stage by its id. Closed-lost stages require a lostReason. Use search_deals for the deal id and list_pipeline_stages for the target stageId. The result echoes the operating workspace.

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": {
      "stageId": "<stageId>",
      "id": "<id>"
    },
    "name": "transition_deal"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe deal id returned by search_deals.
stageIdYesThe target pipeline stage id to move the deal to (from list_pipeline_stages).
lostReasonNoReason the deal was lost. Required when the target stage is a Closed-lost stage; otherwise omit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"The deal id returned by the matching search/list tool."New value: +"The deal id returned by search_deals."
  3. Changed2 schema fields changed
    • addedInput schema / properties / lostReason / description
      Added value: +"Reason the deal was lost. Required when the target stage is a Closed-lost stage; otherwise omit."
    • addedInput schema / properties / stageId / description
      Added value: +"The target pipeline stage id to move the deal to (from list_pipeline_stages)."
  4. Changed1 schema field changed
    • addedInput schema / properties / id / description
      Added value: +"The deal id returned by the matching search/list tool."
  5. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnly=false, which the description aligns with by describing a 'move' operation. The description adds valuable behavioral context: the lostReason requirement for closed-lost stages and 'The result echoes the operating workspace,' which is not present in the annotations or schema. It stops short of explaining reversibility or side effects, but the annotations cover the core risk 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 three sentences, all informative and non-redundant. The action verb is first, followed by a special condition and parameter sourcing, then a note on the result. No filler or repetition of structured data.

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 simple parameter-driven mutation with no output schema, the description covers the core action, required input provenance, a special condition, and the return behavior. The annotations and schema fill in the remaining technical details. This is complete for an agent to invoke the tool correctly.

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?

The schema covers 100% of parameters, so the baseline is 3. The description adds semantic value by explaining where to get the id and stageId values (search_deals, list_pipeline_stages) and clarifies the conditional nature of lostReason. This goes beyond the schema's field-level 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 opens with 'Move a deal to a pipeline stage by its id,' using a specific verb and resource pair. It clearly distinguishes this as a stage-transition action, distinct from other deal operations like create, update, or search. The explicit reference to obtaining parameters via sibling tools reinforces its unique purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description provides explicit guidance on how to obtain the required parameters: 'Use search_deals for the deal id and list_pipeline_stages for the target stageId.' It also specifies a conditional requirement ('Closed-lost stages require a lostReason'), giving clear usage context. This is more than sufficient for a tool with no overlapping alternative.

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