Skip to main content
Glama

upsert_workflow

DestructiveIdempotent

Create or update a workflow. Required for new: name, objekt_typ (deal|lead|project|asbest_project|contact|… any object type). Optional: workflow_id (update), beschreibung, zuruecksetzen ('erlaubt'|'mit_grund' (default: going back needs a reason)|'nur_kanten' (only over defined zurueck edges)|'verboten'), aktiv. Pipedrive pipelines/boards are created with import_pipedrive_workflow instead.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upsert_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName of the workflow
aktivNoWhether the entry is active
objekt_typNoObject type the workflow applies to (e.g. deal, lead); required for new
workflow_idNoID of the workflow
beschreibungNoFree-text description of the workflow
objekt_musterNoRegex with ONE capture group that finds the object id in mail subjects/texts for signals. Default for deals: \bDN\s*[-–]?\s*(\d{3,6})\b
zuruecksetzenNoRule for moving objects back; default mit_grund (needs a reason)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / aktiv / description
      Added value: +"Whether the entry is active"
    • addedInput schema / properties / beschreibung / description
      Added value: +"Free-text description of the workflow"
    • addedInput schema / properties / name / description
      Added value: +"Name of the workflow"
    • addedInput schema / properties / objekt_typ / description
      Added value: +"Object type the workflow applies to (e.g. deal, lead); required for new"
    • addedInput schema / properties / workflow_id / description
      Added value: +"ID of the workflow"
    • addedInput schema / properties / zuruecksetzen / description
      Added value: +"Rule for moving objects back; default mit_grund (needs a reason)"
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=true and idempotent=true, so the safety profile is covered elsewhere; the description adds useful semantics about modes (create vs update) and the valid values of zuruecksetzen. It does not explain what a destructive update can overwrite or how partial updates treat omitted fields, which is the meaningful gap for a destructive upsert.

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 description is a single dense paragraph with the core create-or-update statement front-loaded and the alternative tool named last, which is the right order. Some wording duplicates schema content (the zuruecksetzen default and enum definitions), which is minor waste but keeps it self-contained.

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 7-parameter destructive upsert with no output schema, the description covers the create/update distinction, required fields for creation, optional fields and the alternative tool. The remaining gaps (return value shape, effect of omitted fields on an existing workflow) are small given full schema coverage and the annotation set.

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 the baseline is 3. The description adds modest value by explaining that workflow_id selects update mode and that objekt_typ accepts any object type beyond the enumerated examples, but it largely restates defaults (zuruecksetzen's default) and enum glosses already present in the schema, and it never mentions objekt_muster.

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 a specific verb pair and resource ("Create or update a workflow") and immediately distinguishes itself from a sibling by ruling out Pipedrive pipelines/boards, which belong to import_pipedrive_workflow. An agent can tell what this tool does and what it does not do without opening the schema.

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?

It clearly separates creation from update via the workflow_id signal ("workflow_id (update)") and names the required fields for the new case (name, objekt_typ). It also routes one alternative use case explicitly to import_pipedrive_workflow. It stops short of a full when-not statement (e.g. what happens if workflow_id does not match an existing workflow).

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.