Skip to main content
Glama

Create Trigger

onto_trigger_create

Einen neuen Trigger anlegen (zeit- oder ereignisgesteuerter Ablauf). Aendert den Plan — der Ablauf laeuft danach automatisch und kann Daten schreiben. Nutze es fuer wiederkehrende Aufgaben. Bestehende aenderst du mit onto_trigger_update; Loeschen: onto_trigger_delete. | EN: trigger, automation, rule, event, condition, effect ZEITREGEL: Datum/Zeit liegt in der DB als UTC und wird von MCP ROH als UTC ausgegeben — im Browser eingegebene 10:00 erscheinen hier als 09:00 (Winter) / 08:00 (Sommer); die Oberflaeche rechnet in die Betrachterzone um (Cookie -> Profilfeld -> Europe/Berlin). Zeit-Operatoren: minutes_of, minutes_between[von,bis], hours_between[von,bis,pause_minuten].

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

A4.5/5.0
Behavior4/5

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

Beyond the annotations, it warns that creation changes the plan, that the workflow subsequently runs automatically, and that it can write data. The raw-UTC versus viewer-timezone explanation adds valuable operational context, though execution failure/retry behavior and the create response are not described.

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?

Purpose, side effects, usage, and sibling routing are front-loaded, and the remaining material addresses non-obvious time behavior. The single dense paragraph and EN keyword list add some clutter, but the overall length is reasonable for this complex tool.

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?

Together with the rich schema, the definition supports tool selection and construction of the documented event-driven rules, while scope permissions are covered by scope_id. The main gap is a complete time-driven body example; with no output schema, the returned representation or identifier of the created trigger also remains undocumented.

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?

All six parameters already have schema descriptions, including unusually detailed body semantics, so the baseline is 3. The description adds meaningful UTC interpretation and the names and argument shapes of minutes_of, minutes_between, and hours_between, but does not show how those operators fit into a complete body.

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 opening line gives a specific verb and resource: create a new trigger, defined as a time- or event-driven workflow. It also distinguishes creation from onto_trigger_update and onto_trigger_delete, making its role among the sibling tools clear.

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?

"Nutze es fuer wiederkehrende Aufgaben" provides an explicit use case, while existing triggers and deletion are routed to the appropriate alternatives. The time/event distinction further clarifies that both scheduled automation and event-driven reactions belong here.

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.