Skip to main content
Glama

Create cron trigger

crons_create

Creates a cron trigger that fires on a schedule. A trigger targeting an agent profile launches a new agent from the profile's current config on each firing; a trigger targeting an agent sends an input to that agent. Missed firings are coalesced, matching standard cron behavior: if one or more scheduled times pass while firing is delayed, the trigger fires once for the oldest missed time and then resumes its schedule from the current time, without retroactively firing for the other missed times.

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": {
      "cron": "<cron>",
      "name": "<name>",
      "orgID": "<orgID>",
      "projectID": "<projectID>",
      "target": "<target>"
    },
    "name": "crons_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
cronYesStandard five-field cron expression (minute, hour, day of month, month, day of week). `TZ=`/`CRON_TZ=` prefixes are rejected; set the `timezone` field instead.
nameYesHuman-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.
orgIDYesOrganization ID (org_...).
targetYesWhat each firing does: type agent sends the message to an existing agent, type profile launches a new agent from a profile, and type integration hands the firing to an integration, such as a new Slack or Discord thread.
enabledNoWhether the trigger fires on schedule; false pauses it.
timezoneNoIANA time zone the schedule is evaluated in.
projectIDYesProject ID (proj_...).
message_templateNoGo text/template rendered on each firing to produce the message sent to the target. The template receives a `trigger` value with `name`, `fired_at`, `last_fired_at`, and `local_date` fields. Timestamps remain UTC; local_date is the scheduled occurrence's ISO date in the schedule timezone. Required for agent and profile targets; omitted for integration targets, which use their own settings. Rendering is capped at 64 KiB of output and one second of wall-clock time, and `printf` width and precision specifiers are capped at 1024; a firing whose template fails to render is recorded in `failure_report` without sending a message.

Output Schema

NameRequiredDescriptionDefault
idYes
cronYes
nameYes
org_idYes
targetYes
enabledYes
last_runYesStatus of the latest accepted integration launch, scheduled or run manually, scoped to this project and integration. Null for ordinary cron, before any launch is accepted, or when retained details have expired. Never falls back to an older launch. Schedule firing failures remain separate in failure_report. Deleting or disabling a schedule does not cancel launch work already accepted by the integration.
timezoneYes
created_atYes
project_idYes
updated_atYes
next_fire_atYesNext scheduled firing, or null while the trigger is disabled.
last_fired_atYesWhen the schedule last fired the trigger, or null if it never has. For integration targets this means durable inbox handoff.
failure_reportYesMost recent failed firing, or null if no firing has failed since the last successful firing.
message_templateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / $defs / CronTriggerFailureReport / properties / code
      Added value: +{
      +  "description": "Stable error code for programmatic handling; absent when none.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / last_fired_at / description
      Previous value: -"When the trigger last fired, or null if it has never fired. For integration targets this means durable inbox handoff."New value: +"When the schedule last fired the trigger, or null if it never has. For integration targets this means durable inbox handoff."
    • changedOutput schema / properties / last_run / description
      Previous value: -"Status of the latest accepted scheduled integration launch, scoped to this project and integration. Null for ordinary cron, before any launch is accepted, or when retained details have expired. Never falls back to an older launch. Schedule firing failures remain separate in failure_report. Deleting or disabling a schedule does not cancel launch work already accepted by the integration."New value: +"Status of the latest accepted integration launch, scheduled or run manually, scoped to this project and integration. Null for ordinary cron, before any launch is accepted, or when retained details have expired. Never falls back to an older launch. Schedule firing failures remain separate in failure_report. Deleting or disabling a schedule does not cancel launch work already accepted by the integration."
  2. Changed10 schema fields changed
    • addedInput schema / $defs / AgentCronTriggerTarget / properties / agent_id / description
      Added value: +"Agent that receives each message."
    • addedInput schema / $defs / AgentCronTriggerTarget / properties / delivery_mode / description
      Added value: +"How each message is delivered: queued (default) or steering."
    • addedInput schema / $defs / AgentCronTriggerTarget / properties / type / description
      Added value: +"agent: send each message to an existing agent."
    • addedInput schema / $defs / AgentProfileCronTriggerTarget / properties / agent_profile_id / description
      Added value: +"Profile to launch a new agent from on each run."
    • addedInput schema / $defs / AgentProfileCronTriggerTarget / properties / type / description
      Added value: +"profile: launch a new agent on each run."
    • addedInput schema / $defs / IntegrationCronTriggerTarget / properties / integration_id / description
      Added value: +"Integration that handles each run."
    • addedInput schema / $defs / IntegrationCronTriggerTarget / properties / type / description
      Added value: +"integration: hand each run to an integration."
    • removedInput schema / $defs / IntegrationCronTriggerTarget / properties / type / x-enum-varnames
      Removed value: -[
      -  "IntegrationCronTriggerTargetTypeIntegration"
      -]
    • removedInput schema / properties / name / x-omnara-unicode-normalization
      Removed value: -"NFC"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "AgentCronTriggerTarget": {
      +      "properties": {
      +        "agent_id": {
      +          "$ref": "#/$defs/AgentID",
      +          "description": "Agent that receives each message."
      +        },
      +        "delivery_mode": {
      +          "$ref": "#/$defs/CronTriggerDeliveryMode",
      +          "description": "How each message is delivered: queued (default) or steering."
      +        },
      +        "type": {
      +          "description": "agent: send each message to an existing agent.",
      +          "enum": [
      +            "agent"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "agent_id"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentID": {
      +      "pattern": "^agt_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "AgentProfileCronTriggerTarget": {
      +      "properties": {
      +        "agent_profile_id": {
      +          "$ref": "#/$defs/AgentProfileID",
      +          "description": "Profile to launch a new agent from on each run."
      +        },
      +        "type": {
      +          "description": "profile: launch a new agent on each run.",
      +          "enum": [
      +            "profile"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "agent_profile_id"
      +      ],
      +      "type": "object"
      +    },
      +    "AgentProfileID": {
      +      "pattern": "^aprf_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "CronExpression": {
      +      "description": "Standard five-field cron expression (minute, hour, day of month, month, day of week). `TZ=`/`CRON_TZ=` prefixes are rejected; set the `timezone` field instead.",
      +      "maxLength": 256,
      +      "minLength": 9,
      +      "type": "string"
      +    },
      +    "CronMessageTemplate": {
      +      "description": "Go text/template rendered on each firing to produce the message sent to the target. The template receives a `trigger` value with `name`, `fired_at`, `last_fired_at`, and `local_date` fields. Timestamps remain UTC; local_date is the scheduled occurrence's ISO date in the schedule timezone. Required for agent and profile targets; omitted for integration targets, which use their own settings. Rendering is capped at 64 KiB of output and one second of wall-clock time, and `printf` width and precision specifiers are capped at 1024; a firing whose template fails to render is recorded in `failure_report` without sending a message.",
      +      "maxLength": 65536,
      +      "type": "string"
      +    },
      +    "CronTimezone": {
      +      "default": "UTC",
      +      "description": "IANA time zone the schedule is evaluated in.",
      +      "maxLength": 64,
      +      "type": "string"
      +    },
      +    "CronTriggerDeliveryMode": {
      +      "description": "Each firing sends a queued or steering message to the agent. Defaults to `queued` on creation; omitted updates preserve the current mode.",
      +      "enum": [
      +        "queued",
      +        "steering"
      +      ],
      +      "type": "string"
      +    },
      +    "CronTriggerFailureReport": {
      +      "properties": {
      +        "failed_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "message": {
      +          "description": "Why the most recent failed firing did not deliver a message.",
      +          "type": "string"
      +        },
      +        "will_retry": {
      +          "description": "Whether the firing will be retried after the claim lease expires.",
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "message",
      +        "will_retry",
      +        "failed_at"
      +      ],
      +      "type": "object"
      +    },
      +    "CronTriggerID": {
      +      "pattern": "^cron_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "CronTriggerLastRun": {
      +      "properties": {
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "failure_message": {
      +          "description": "Coarse scheduled action failure description; no raw provider errors.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "state": {
      +          "$ref": "#/$defs/CronTriggerLastRunState"
      +        },
      +        "updated_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        }
      +      },
      +      "required": [
      +        "state",
      +        "created_at",
      +        "updated_at",
      +        "failure_message"
      +      ],
      +      "type": "object"
      +    },
      +    "CronTriggerLastRunState": {
      +      "description": "State of the latest accepted scheduled integration action. Completed means the integration handled the occurrence; it does not indicate completion of any agent task that action started.",
      +      "enum": [
      +        "queued",
      +        "processing",
      +        "completed",
      +        "failed"
      +      ],
      +      "type": "string"
      +    },
      +    "CronTriggerTarget": {
      +      "description": "What each firing does: type agent sends the message to an existing agent, type profile launches a new agent from a profile, and type integration hands the firing to an integration, such as a new Slack or Discord thread.",
      +      "discriminator": {
      +        "mapping": {
      +          "agent": "#/$defs/AgentCronTriggerTarget",
      +          "integration": "#/$defs/IntegrationCronTriggerTarget",
      +          "profile": "#/$defs/AgentProfileCronTriggerTarget"
      +        },
      +        "propertyName": "type"
      +      },
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/AgentCronTriggerTarget"
      +        },
      +        {
      +          "$ref": "#/$defs/AgentProfileCronTriggerTarget"
      +        },
      +        {
      +          "$ref": "#/$defs/IntegrationCronTriggerTarget"
      +        }
      +      ]
      +    },
      +    "IntegrationCronTriggerTarget": {
      +      "properties": {
      +        "integration_id": {
      +          "$ref": "#/$defs/IntegrationID",
      +          "description": "Integration that handles each run."
      +        },
      +        "settings": {
      +          "additionalProperties": true,
      +          "description": "Settings validated by the target integration's published schedule input schema. Each accepted occurrence retains its own copy. Integration resource references are resolved when the integration handles the occurrence.",
      +          "type": "object"
      +        },
      +        "type": {
      +          "description": "integration: hand each run to an integration.",
      +          "enum": [
      +            "integration"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "integration_id",
      +        "settings"
      +      ],
      +      "type": "object"
      +    },
      +    "IntegrationID": {
      +      "pattern": "^itg_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "OrganizationID": {
      +      "pattern": "^org_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectID": {
      +      "description": "Project ID (proj_...).",
      +      "pattern": "^proj_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ResourceName": {
      +      "description": "Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.",
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "properties": {
      +    "created_at": {
      +      "$ref": "#/$defs/Timestamp"
      +    },
      +    "cron": {
      +      "$ref": "#/$defs/CronExpression"
      +    },
      +    "enabled": {
      +      "type": "boolean"
      +    },
      +    "failure_report": {
      +      "description": "Most recent failed firing, or null if no firing has failed since the last successful firing.",
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/CronTriggerFailureReport"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "id": {
      +      "$ref": "#/$defs/CronTriggerID"
      +    },
      +    "last_fired_at": {
      +      "description": "When the trigger last fired, or null if it has never fired. For integration targets this means durable inbox handoff.",
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "last_run": {
      +      "description": "Status of the latest accepted scheduled integration launch, scoped to this project and integration. Null for ordinary cron, before any launch is accepted, or when retained details have expired. Never falls back to an older launch. Schedule firing failures remain separate in failure_report. Deleting or disabling a schedule does not cancel launch work already accepted by the integration.",
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/CronTriggerLastRun"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "message_template": {
      +      "$ref": "#/$defs/CronMessageTemplate"
      +    },
      +    "name": {
      +      "$ref": "#/$defs/ResourceName"
      +    },
      +    "next_fire_at": {
      +      "description": "Next scheduled firing, or null while the trigger is disabled.",
      +      "oneOf": [
      +        {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "org_id": {
      +      "$ref": "#/$defs/OrganizationID"
      +    },
      +    "project_id": {
      +      "$ref": "#/$defs/ProjectID"
      +    },
      +    "target": {
      +      "$ref": "#/$defs/CronTriggerTarget"
      +    },
      +    "timezone": {
      +      "$ref": "#/$defs/CronTimezone"
      +    },
      +    "updated_at": {
      +      "$ref": "#/$defs/Timestamp"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "org_id",
      +    "project_id",
      +    "name",
      +    "target",
      +    "cron",
      +    "timezone",
      +    "enabled",
      +    "last_fired_at",
      +    "next_fire_at",
      +    "failure_report",
      +    "last_run",
      +    "created_at",
      +    "updated_at"
      +  ],
      +  "type": "object"
      +}
  3. Changed4 schema fields changed
    • addedInput schema / properties / enabled / description
      Added value: +"Whether the trigger fires on schedule; false pauses it."
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
    • addedInput schema / properties / projectID / description
      Added value: +"Project ID (proj_...)."
    • addedInput schema / properties / target / description
      Added value: +"What each firing does: type agent sends the message to an existing agent, type profile launches a new agent from a profile, and type integration hands the firing to an integration, such as a new Slack or Discord thread."
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnly=false, destructive=false, idempotent=false, openWorld=true), so the bar is lower, and the description still adds real behavior: missed-firing coalescing semantics (fires once for the oldest missed time, then reschedules from now, no backfill). That is non-obvious scheduling behavior absent from annotations and from the schema.

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 target semantics, then edge-case scheduling behavior — a sensible ordering with no filler. The coalescing sentence is long and could be tightened, but each clause carries information the caller would otherwise have to discover empirically.

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?

An output schema exists, so return values need no explanation, and the annotations cover the safety profile. For an 8-parameter mutating tool with nested polymorphic targets, the description covers purpose, target selection, and misfire behavior adequately; the remaining gap is authorization/prerequisite context and any hint about validation failure on the cron expression or name.

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?

Schema coverage is 100%, so the baseline is 3; the description still adds meaning beyond it by explaining that a profile target launches from 'the profile's current config' at each firing (i.e., later profile edits take effect) and by contrasting profile vs agent delivery. It adds nothing about timezone, enabled, or message_template, but those are already richly documented in 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?

Opens with a specific verb and resource ('Creates a cron trigger that fires on a schedule') and then disambiguates the three target shapes: agent profile launches a new agent from the profile's current config, agent sends an input to an existing agent. An agent can distinguish this from crons_update/crons_get on name and semantics alone.

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 context is implied rather than stated: the target-type explanation tells the caller which flavor of trigger to build, which is the key selection decision. However, it never says when to prefer this over crons_update, nor does it state prerequisites (permissions, whether the referenced agent/profile must already exist and be active before creation).

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.