Skip to main content
Glama

Get Schedule

getSchedule
Read-onlyIdempotent

Get one schedule by id (from listSchedules, or the scheduleId on a batch run or sweep run): the same fields as listSchedules. Use when: a run says it was started by a schedule and you want to say which and when it runs. Read-only. Needs scheduling:read. Returns 404 if the schedule is not in your workspace.

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": {
      "id": "<id>"
    },
    "name": "getSchedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSchedule identifier.

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
runAtNoISO-8601 timestamp the schedule should fire at, required when `scheduleType: once`. Must be in the future at create-time.
enabledYesString-typed boolean (DDB GSI key constraint). `'true'` = active, `'false'` = paused. Toggle via `pauseSchedule` / `resumeSchedule`.
runCountYesTotal number of times this schedule has been triggered.
targetIdNoOptional — target test-config id, map id, or batch id depending on `targetType`.
timezoneYesIANA timezone identifier used to evaluate cron expressions.
createdAtYes
createdByYes
lastRunAtNoTimestamp of the most recent trigger. Absent until the first fire.
nextRunAtYesTimestamp the schedule will next fire. Recomputed on each successful trigger.
updatedAtYes
targetTypeNoTarget kind when the schedule has a direct attachment. `test` triggers a test run, `map` triggers a mapping job, `batch` triggers a batch dispatch. Optional — schedules without `targetId`/`targetType` are reusable templates (handled by downstream orchestration).
descriptionNo
workspaceIdYes
scheduleTypeYesTrigger semantics. `once` fires at the specific `runAt` timestamp; `recurring` fires every `intervalMinutes`; `cron` fires according to the supplied `cronExpression` (5-field cron syntax interpreted in `timezone`).
cronExpressionNo5-field cron expression (minute hour day-of-month month day-of-week), required when `scheduleType: cron`. Validated server-side.
intervalMinutesNoInterval in minutes, required when `scheduleType: recurring`.
eventBridgeRuleArnNoARN of the underlying EventBridge rule (when one is attached). Present for legacy schedules only.
eventBridgeRuleNameNoName of the underlying EventBridge rule (when one is attached). Present for legacy schedules only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is known; the description still adds real context beyond them: the required 'scheduling:read' scope, a concrete 404 failure mode when the schedule is outside the workspace, and a pointer to the return shape ('same fields as listSchedules'). It does not discuss rate limits or output ordering, but those are minor for a single-resource read.

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-loads the core action and keeps nearly every clause load-bearing: id provenance, usage trigger, auth scope, error case. The parenthetical id-source list makes the second sentence slightly dense, but no sentence is filler.

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

Completeness5/5

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

For a one-parameter read tool with an output schema, the description covers everything an agent needs: what it returns (mirrors listSchedules), the permission required, the failure mode, and where to get the id. Return-value detail can safely be left to the output schema.

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% and there is only one parameter, so the baseline is already satisfied by the schema's 'Schedule identifier' description. The description goes further by naming where a valid id can be obtained (listSchedules, or the scheduleId embedded on a batch run or sweep run), which is meaning the schema does not carry.

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?

States a specific verb and resource ('Get one schedule by id') and immediately distinguishes it from the sibling listSchedules by noting it returns a single schedule with the same fields. An agent can tell what it does and what it is not 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?

Gives an explicit triggering condition ('Use when: a run says it was started by a schedule and you want to say which and when it runs') and explains where the id comes from (listSchedules, or scheduleId on a batch run or sweep run). Both when-to-use and the upstream source of the required argument are covered.

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.