Skip to main content
Glama

Create a trigger

create_trigger

Create a trigger that runs an action on an event or a cron schedule.

kind: "event" (match {event_type, condition}) or "schedule" (match {cron, timezone, payload}). action: {kind: "tool"|"emit"|"agent", target_id, args_template?} (emit uses {emit_type, data_template}). For schedules the first occurrence is armed automatically.

A daily routine (Porter doing work on its own every morning) is this tool with kind="schedule". Emailing an existing report on a cron is a different thing: execute_action("report_email_schedule.create"). Before proposing a routine, read get_knowledge(queries=["porter-metrics-routine"]).

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": {
      "kind": "<kind>",
      "action": "<action>"
    },
    "name": "create_trigger"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
matchNo
actionYes
limitsNo
enabledNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, closed-world write, so the safety profile is covered. The description adds real behavioral context beyond that: schedules have their first occurrence armed automatically, and the action dispatch kinds (tool/emit/agent) are spelled out with their differing payload shapes. It stops short of covering limits, enabled semantics, or failure behavior, which keeps it at 4.

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 purpose is front-loaded in one sentence, then the payload shapes and routing guidance follow in a compact block with no filler. The telegraphic shorthand ("emit uses {emit_type, data_template}") is dense but readable; slightly more connective structure would improve scanability.

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?

This is a complex tool with nested objects and five parameters, and the description covers the two required ones plus the dispatch target thoroughly; an output schema exists so return values need no explanation. The unexplained limits and enabled fields, plus no mention of what happens on conflicting triggers, are the remaining omissions.

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?

With 0% schema description coverage, the description carries the full burden and mostly succeeds: it defines kind's two values, gives the per-kind match shape (event_type/condition vs cron/timezone/payload), and details action's structure including the emit variant. Two of the five parameters, limits and enabled, receive no explanation at all, which is the only substantive gap.

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 names a specific verb and resource and immediately scopes it to two distinct trigger modes (event vs cron schedule). It further distinguishes the tool's purpose from the sibling execute_action by explaining that emailing a report on a cron is not this tool. An agent can identify what this creates 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 Guidelines5/5

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

The description gives an explicit positive case (a daily routine is this tool with kind="schedule") and an explicit negative case routed to an alternative (report email scheduling goes through execute_action("report_email_schedule.create")). It also states a prerequisite step, reading get_knowledge(queries=["porter-metrics-routine"]) before proposing a routine.

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.

Resources