Skip to main content
Glama

set_workflow_kanten

DestructiveIdempotent

Set the edges (allowed transitions) of a workflow. kanten: [{von, nach, art?('vor'|'zurueck'|'sprung', default vor), bedingung?, name?, prioritaet?, nach_workflow?}] with von/nach as node schluessel. With nach_workflow (id or exact name of ANOTHER workflow of this tenant) the edge is a hand-over into that workflow ('uebergang', e.g. Vertrieb ANGEBOT AKZEPTIERT → Abwicklung TERMIN FINDEN); nach is then a node of that workflow. Condition JSON over the object's data: {} = always; {feld, op, wert} with op eq|ne|in|nicht_in|enthaelt|exists|leer|gt|gte|lt|lte (feld is a column/field name or dotted path; for Pipedrive deals custom fields work by their NAME, e.g. 'Experte'); combine with {alle:[…]}, {eines:[…]}, {nicht:{…}}. ersetzen=true replaces ALL edges (default: add/update only the given pairs). Without any edges a workflow simply goes forward by node order.

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": {
      "workflow_id": "<workflow_id>",
      "kanten": "<kanten>"
    },
    "name": "set_workflow_kanten"
  }
}

Input Schema

NameRequiredDescriptionDefault
kantenYesErlaubte Uebergaenge als [{von, nach, art?, bedingung?, name?, prioritaet?, nach_workflow?}]
ersetzenNotrue ersetzt ALLE Kanten; sonst nur die angegebenen Paare ergaenzen/aendern
workflow_idYesWorkflow-ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / ersetzen / description
      Added value: +"true ersetzt ALLE Kanten; sonst nur die angegebenen Paare ergaenzen/aendern"
    • addedInput schema / properties / kanten / description
      Added value: +"Erlaubte Uebergaenge als [{von, nach, art?, bedingung?, name?, prioritaet?, nach_workflow?}]"
    • addedInput schema / properties / kanten / items / properties / art / description
      Added value: +"Art der Kante: vorwaerts, zurueck oder Sprung; Standard vor"
    • addedInput schema / properties / kanten / items / properties / bedingung / description
      Added value: +"Bedingungs-JSON ueber die Objektdaten, unter der die Kante gilt"
    • addedInput schema / properties / kanten / items / properties / nach / description
      Added value: +"Schluessel des Zielknotens (bei nach_workflow ein Knoten des anderen Workflows)"
    • addedInput schema / properties / kanten / items / properties / nach_workflow / description
      Added value: +"ID oder exakter Name eines anderen Workflows fuer eine Uebergabe dorthin"
    • addedInput schema / properties / kanten / items / properties / name / description
      Added value: +"Anzeigename der Kante"
    • addedInput schema / properties / kanten / items / properties / prioritaet / description
      Added value: +"Prioritaet der Kante gegenueber anderen Kanten"
    • addedInput schema / properties / kanten / items / properties / von / description
      Added value: +"Beginn des Zeitraums (ISO-Datum)"
    • addedInput schema / properties / workflow_id / description
      Added value: +"Workflow-ID"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, yet the description adds the crucial detail of what actually gets destroyed ('ersetzen=true replaces ALL edges'), what the non-destructive default does, and the fallback behavior when no edges exist. It does not cover permission requirements or what happens if von/nach reference non-existent nodes.

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?

Front-loaded with purpose, then parameter semantics, then the replace/default distinction; every block carries information an agent needs. The inline hand-over example is useful but adds length, and the dense run-on condition grammar could be split for readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation with no output schema, the definition covers the essential semantics (replace vs merge, condition DSL, cross-workflow edges). It is silent on permissions, error/validation behavior, and whether referenced nodes must already exist, which an agent deciding whether it is safe to call would want.

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

Parameters5/5

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

Far exceeds the schema: it documents the bedingung grammar in full (op set eq|ne|in|nicht_in|enthaelt|exists|leer|gt|gte|lt|lte, dotted paths, Pipedrive custom fields by name, alle/eines/nicht combinators), the hand-over semantics of nach_workflow, and the default of art. It even corrects the schema's misleading 'von' description ('Beginn des Zeitraums') by stating von/nach are node schluessel.

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?

Opens with a specific verb and resource, 'Set the edges (allowed transitions) of a workflow', and clarifies that edges are node-to-node transitions, which implicitly separates it from knoten/upsert tools. It never names a sibling explicitly, so an agent must infer the boundary rather than being told it.

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

Usage Guidelines3/5

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

Usage is implied by the semantics: default is add/update of the given pairs, ersetzen=true replaces all, and a workflow without edges just advances by node order. There is no explicit statement of when to prefer this over upsert_workflow_knoten or import_pipedrive_workflow, nor any prerequisite or exclusion.

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.