Sasha MCP reference

Schedules: run a skill at set times

This is the schedules section of the usage guide. Call getDocs with { "section": "schedules" } to read it on an instance.

A schedule runs one skill at set times, in a time zone. Schedules belong to the whole organisation, not to one person. The same list shows in the Sasha web interface, in Menu → Tasks. The five tools need schedules:manage (admin and staff only). A connection approved before that scope existed must reconnect.

  • listSchedules lists every schedule: name, skill, when (a five-part cron expression), timezone, enabled, timeoutMinutes, lastRunAt, lastStatus, nextRunAt (UTC) and lastError (the first 300 characters when the last run failed or timed out, else null). Use it to answer "did my report run?" and "why did it fail?".
  • createSchedule adds one: name (lowercase letters, digits and hyphens, unique), skill, when, timezone (IANA, default UTC), enabled (default true) and timeoutMinutes (1 to 60; left out, the skill's own execution.timeout_ms applies, else 5 minutes). when is read in timezone, so 0 18 * * 4 with Europe/London is 18:00 London time all year. One skill can have several schedules: add one per time.
  • updateSchedule changes only the fields you send. enabled: false pauses a schedule and keeps it.
  • deleteSchedule removes a schedule. The skill is not changed.
  • runSchedule starts one run now and returns at once. A run takes minutes and spends AI credit. Call listSchedules later for its outcome. A report agent is refused (agent_skill): start it from its app.

Before any change, say the change in plain words (for example "every Thursday at 6pm London time") and get the person's agreement; Sasha does not check it, and each change is made when the tool is called. Refusals start with a code: schedule_not_found, schedule_exists, skill_not_found, unknown_time_zone, invalid_schedule or agent_skill.

Built with BernardCookie settings