Skip to main content
Glama
agentreadycrm

agentreadycrm

Official

Define Pipeline Stage

define_pipeline_stage
Idempotent

Adds a missing stage to a workspace's deal pipeline so sales steps the pipeline lacks can be represented. Use it only to create stages; existing keys remain unchanged.

Instructions

Add a stage to this workspace's deal pipeline.

Call it when the user's sales process has a step the pipeline lacks (get_pipeline lists the stages). It only adds: a key the pipeline already holds is returned as it is and nothing changes, so to rename, reorder, reweight or change a stage's outcome use update_pipeline_stage. The new stage lands last unless position says where, with probability 0 and outcome open unless given.

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": {
      "key": "<key>",
      "label": "<label>"
    },
    "name": "define_pipeline_stage"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesStable identifier: lowercase letters, digits, underscores (e.g. "proposal"). Deals store it, so choose it to last.
labelYesDisplay label (e.g. "Proposal sent").
outcomeNoopen / won / lost: whether entering the stage closes a deal (default open).
positionNoOrder on the board, 0 first. Omit to add it last.
probabilityNoDefault win probability 0-100 for a deal entering the stage (default 0).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so safety is covered. The description adds real value beyond that: it spells out the duplicate-key no-op ('returned as it is and nothing changes') and the applied defaults (appended last, probability 0, outcome open), but says nothing about permissions required to alter pipeline structure or any cap on stage count.

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 core action and the append-only constraint are front-loaded in the first two sentences, and the disambiguation follows immediately. Every clause carries information — tool routing, default behavior, or sibling diff — with no filler.

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?

With an output schema present and full parameter coverage, the description covers the decision-relevant behavior: add-only semantics, defaults, and the update alternative. The only gap is environmental context such as who may modify pipeline structure or how many stages a pipeline supports.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter is already documented with type, range and examples, making 3 the baseline. The description's 'position says where, with probability 0 and outcome open unless given' restates schema defaults rather than adding new meaning; it does not clarify key immutability beyond what the schema field note already says.

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 first sentence gives a specific verb and resource ('Add a stage to this workspace's deal pipeline') and scopes it to a single workspace. The third sentence explicitly separates it from update_pipeline_stage and get_pipeline, so an agent can pick the right sibling without opening a schema.

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?

It states the exact triggering condition ('when the user's sales process has a step the pipeline lacks') and points at get_pipeline for discovering existing stages. It also names the alternative tool and the operations that belong there (rename, reorder, reweight, change outcome), which is a full when/when-not split.

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