Skip to main content
Glama

Create Trigger

onto_trigger_create

Einen neuen Trigger anlegen (zeit- oder ereignisgesteuerter Ablauf) — der Ablauf schreibt danach automatisch. Wirkungstypen in effects: set_property, create_object, create_link, run_function, notify, run_import_source, http_call. http_call ist die WEITERGABE an ein FREMDsystem (Anbindung): target = target_key einer Verbindung (onto_connection_save), optional method, path, body, shadow, timeout; Platzhalter {udid}, {object_id}, {action} und jede Eigenschaft als {eigenschaft}. Vorschau ohne Senden: onto_outbox_preview. Zustand und Nachversand: onto_outbox_index, onto_outbox_retry. Aendern: onto_trigger_update. Loeschen: onto_trigger_delete. | EN: trigger, automation, rule, http_call, webhook

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": {
      "name": "<name>",
      "body": "<body>",
      "scope_id": "<scope_id>"
    },
    "name": "onto_trigger_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoTechnischer Schluessel (a-zA-Z0-9_). Ohne Angabe = name. Muss eindeutig sein.
bodyYesDie Regel als Objekt oder JSON-String. body-Format (verifiziert): {"on":"update","object_types":["building"],"effects":[{"type":"set_property","props":{"status":"geprueft"}}]}. WICHTIG: set_property nutzt das Feld "props", NICHT key/value. Platzhalter in Werten: {object_udid}, {object_name}, {value_new}, {value_old}. Optional condition: {"changed":["feld"],"props":[{"key":"temperatur","op":"gte","value":"30"}]} — Operatoren: eq, neq, in, gt, gte, lt, lte, empty, notempty, matches. create_object braucht "object_type" und "name", optional "props"/"links". create_link braucht "linktype" und "to" (32-hex, oder from/to). run_function braucht "function" (Name oder UDID). notify: "to" (eine Adresse) ODER "to_link" + optional "to_prop" (Default email) + "all" (true = alle verknuepften Objekte, Default true) — damit erreicht eine Meldung ALLE Personen einer Kante, z.B. alle an worksShift. Optional "to_linkvalue" (nur Kanten mit diesem Linkwert) und "to_link2" + "to_linkvalue2" fuer einen ZWEITEN Sprung (z.B. Schicht -> Tausch-Anfrage -> Antragsteller). Im Text loesen {linked:<linktype>:<linkvalue>:<prop>} Werte verknuepfter Objekte auf (mehrere Treffer als Komma-Liste); bei "removed"-Ereignissen zusaetzlich {removed_name} und {removed_email}.
nameYesAnzeigename der Regel (z.B. 'Rauchmelder-Alarm')
labelNoAnzeigetext (ohne Angabe aus key abgeleitet)
scope_idYesZiel-Scope. Du musst dort Manager sein (can_manage_scope). PUBLIC (15) nur Admin.
descriptionNoBeschreibung (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / body / description
      Previous value: -"Die Regel als Objekt oder JSON-String. body-Format (verifiziert): {\"on\":\"update\",\"object_types\":[\"building\"],\"effects\":[{\"type\":\"set_property\",\"props\":{\"status\":\"geprueft\"}}]}. WICHTIG: set_property nutzt das Feld \"props\", NICHT key/value. Platzhalter in Werten: {object_udid}, {object_name}, {value_new}, {value_old}. Optional condition: {\"changed\":[\"feld\"],\"props\":[{\"key\":\"temperatur\",\"op\":\"gte\",\"value\":\"30\"}]} — Operatoren: eq, neq, in, gt, gte, lt, lte, empty, notempty, matches. create_object braucht \"object_type\" und \"name\", optional \"props\"/\"links\". create_link braucht \"linktype\" und \"to\" (32-hex, oder from/to). run_function braucht \"function\" (Name oder UDID). notify: \"to\" (eine Adresse) ODER \"to_link\" + optional \"to_prop\" (Default email) + \"all\" (true = alle verknuepften Objekte, Default true) — damit erreicht eine Meldung ALLE Personen einer Kante, z.B. alle an worksShift."New value: +"Die Regel als Objekt oder JSON-String. body-Format (verifiziert): {\"on\":\"update\",\"object_types\":[\"building\"],\"effects\":[{\"type\":\"set_property\",\"props\":{\"status\":\"geprueft\"}}]}. WICHTIG: set_property nutzt das Feld \"props\", NICHT key/value. Platzhalter in Werten: {object_udid}, {object_name}, {value_new}, {value_old}. Optional condition: {\"changed\":[\"feld\"],\"props\":[{\"key\":\"temperatur\",\"op\":\"gte\",\"value\":\"30\"}]} — Operatoren: eq, neq, in, gt, gte, lt, lte, empty, notempty, matches. create_object braucht \"object_type\" und \"name\", optional \"props\"/\"links\". create_link braucht \"linktype\" und \"to\" (32-hex, oder from/to). run_function braucht \"function\" (Name oder UDID). notify: \"to\" (eine Adresse) ODER \"to_link\" + optional \"to_prop\" (Default email) + \"all\" (true = alle verknuepften Objekte, Default true) — damit erreicht eine Meldung ALLE Personen einer Kante, z.B. alle an worksShift. Optional \"to_linkvalue\" (nur Kanten mit diesem Linkwert) und \"to_link2\" + \"to_linkvalue2\" fuer einen ZWEITEN Sprung (z.B. Schicht -> Tausch-Anfrage -> Antragsteller). Im Text loesen {linked:<linktype>:<linkvalue>:<prop>} Werte verknuepfter Objekte auf (mehrere Treffer als Komma-Liste); bei \"removed\"-Ereignissen zusaetzlich {removed_name} und {removed_email}."
  2. Changed1 schema field changed
    • changedInput schema / properties / body / description
      Previous value: -"Die Regel als Objekt oder JSON-String. body-Format (verifiziert): {\"on\":\"update\",\"object_types\":[\"building\"],\"effects\":[{\"type\":\"set_property\",\"props\":{\"status\":\"geprueft\"}}]}. WICHTIG: set_property nutzt das Feld \"props\", NICHT key/value. Platzhalter in Werten: {object_udid}, {object_name}, {value_new}, {value_old}. Optional condition: {\"changed\":[\"feld\"],\"props\":[{\"key\":\"temperatur\",\"op\":\"gte\",\"value\":\"30\"}]} — Operatoren: eq, neq, in, gt, gte, lt, lte, empty, notempty, matches. create_object braucht \"object_type\" und \"name\", optional \"props\"/\"links\". create_link braucht \"linktype\" und \"to\" (32-hex, oder from/to). run_function braucht \"function\" (Name oder UDID)."New value: +"Die Regel als Objekt oder JSON-String. body-Format (verifiziert): {\"on\":\"update\",\"object_types\":[\"building\"],\"effects\":[{\"type\":\"set_property\",\"props\":{\"status\":\"geprueft\"}}]}. WICHTIG: set_property nutzt das Feld \"props\", NICHT key/value. Platzhalter in Werten: {object_udid}, {object_name}, {value_new}, {value_old}. Optional condition: {\"changed\":[\"feld\"],\"props\":[{\"key\":\"temperatur\",\"op\":\"gte\",\"value\":\"30\"}]} — Operatoren: eq, neq, in, gt, gte, lt, lte, empty, notempty, matches. create_object braucht \"object_type\" und \"name\", optional \"props\"/\"links\". create_link braucht \"linktype\" und \"to\" (32-hex, oder from/to). run_function braucht \"function\" (Name oder UDID). notify: \"to\" (eine Adresse) ODER \"to_link\" + optional \"to_prop\" (Default email) + \"all\" (true = alle verknuepften Objekte, Default true) — damit erreicht eine Meldung ALLE Personen einer Kante, z.B. alle an worksShift."
  3. Added
  4. Removed
  5. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false) it discloses the real consequence — "der Ablauf schreibt danach automatisch" — plus the manager requirement on the target scope (can_manage_scope, PUBLIC only for admins) and the fact that http_call hands data to a foreign system with shadow/timeout options. The uniqueness constraint on key is also stated, consistent with idempotentHint=false. The external-handoff nature of http_call sits slightly awkwardly with openWorldHint=false, but that flag describes this call, not the trigger's future effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the single paragraph is a dense bilingual run-on that repeats body-format details already spelled out in the schema (placeholders, effects, condition operators) and ends with a bare keyword tag. Several clauses could be dropped without losing information the agent doesn't already have from the schema.

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 6-parameter mutation tool with nested body, no output schema, the definition covers the effects taxonomy, the HTTP handoff configuration, placeholder syntax, scope permission requirements, and the outbox follow-up path. Return values need not be described since there is no output schema, and nothing essential for a correct call appears missing.

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 coverage is 100% and the body property already documents the rule format, operators, placeholders and per-effect requirements in great detail, so the baseline is 3. The description does add http_call-specific fields (target, method, path, body, shadow, timeout) that the schema's body text does not enumerate, so it clears the baseline but most of its parameter prose duplicates the schema.

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?

"Einen neuen Trigger anlegen (zeit- oder ereignisgesteuerter Ablauf)" gives a specific verb plus resource and explains what a trigger is, and the description closes by naming onto_trigger_update and onto_trigger_delete so the agent can separate create from modify/remove without opening other schemas.

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 routes to alternatives explicitly: preview without sending via onto_outbox_preview, delivery state via onto_outbox_index / onto_outbox_retry, editing via onto_trigger_update, removal via onto_trigger_delete. It does not state when to avoid creating a trigger (e.g. duplicate rule already exists), but the alternative routing is concrete rather than implied.

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.