Skip to content

get_schedule

Inspect the schedule of one exact Action/Procedure owner, including empty schedules and templates. Return saved fields plus a separate bounded Core ListSchedules cache lookup (at most four 100-item pages) matched by exact owner kind/ID and expected fields. Empty timezone inherits Core configured timezone, otherwise Core host local; never the MCP host. Cache/error/last-run evidence can be missing, stale or mismatched; no MCP parsing or scheduler.

Availability

Available under the default capability policy

The instance’s tool selection and upstream Core permissions also apply. Some inputs require additional grants.

Effect annotations

  • readOnlyHint — true
  • destructiveHint — false
  • idempotentHint — true

Inputs

The registered schema gives field types, alternatives and declared bounds. The description and operator guides also cover checks applied at runtime.

owner_kind
Required · Schema OwnerKind
target
Required · Schema DetailInput
Show input JSON Schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "owner_kind": {
      "$ref": "#/$defs/OwnerKind"
    },
    "target": {
      "$ref": "#/$defs/DetailInput"
    }
  },
  "required": [
    "owner_kind",
    "target"
  ],
  "$defs": {
    "DetailInput": {
      "additionalProperties": false,
      "oneOf": [
        {
          "required": [
            "id"
          ]
        },
        {
          "required": [
            "name"
          ]
        }
      ],
      "properties": {
        "id": {
          "description": "Exact stable resource ID returned by a list tool.",
          "pattern": "^[0-9a-fA-F]{24}$",
          "type": "string"
        },
        "name": {
          "description": "Exact, case-sensitive name within this family; never interpreted as an ID.",
          "minLength": 1,
          "pattern": "\\S",
          "type": "string"
        }
      },
      "type": "object"
    },
    "OwnerKind": {
      "enum": [
        "action",
        "procedure"
      ],
      "type": "string"
    }
  }
}

Output

The registered output schema covers structured results and tool errors.

Detail
effects, observation, owner, saved, template
AppError
candidates, correction, field, kind, message, operation, status
Show output JSON Schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "$ref": "#/$defs/Detail"
    },
    {
      "$ref": "#/$defs/AppError"
    }
  ],
  "$defs": {
    "AppError": {
      "additionalProperties": false,
      "description": "Only application-owned messages and selected, nonsensitive metadata survive.",
      "properties": {
        "candidates": {
          "items": {
            "$ref": "#/$defs/Candidate"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "correction": {
          "type": [
            "string",
            "null"
          ]
        },
        "field": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "$ref": "#/$defs/ErrorKind"
        },
        "message": {
          "type": "string"
        },
        "operation": {
          "type": "string"
        },
        "status": {
          "format": "uint16",
          "maximum": 65535,
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "kind",
        "message",
        "operation"
      ],
      "type": "object"
    },
    "Candidate": {
      "additionalProperties": false,
      "description": "A bounded ambiguity hint, never a raw upstream resource.",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "type": "object"
    },
    "Detail": {
      "properties": {
        "effects": {
          "type": "string"
        },
        "observation": {
          "$ref": "#/$defs/Observation"
        },
        "owner": {
          "$ref": "#/$defs/Owner"
        },
        "saved": {
          "$ref": "#/$defs/Fields"
        },
        "template": {
          "type": "boolean"
        }
      },
      "required": [
        "owner",
        "template",
        "saved",
        "observation",
        "effects"
      ],
      "type": "object"
    },
    "ErrorKind": {
      "description": "Stable public categories. No variant contains a raw upstream error.",
      "enum": [
        "invalid_arguments",
        "not_found",
        "ambiguous_target",
        "incomplete_resolution",
        "configuration",
        "authentication",
        "permission_denied",
        "timeout",
        "unreachable",
        "upstream",
        "invalid_response",
        "response_too_large",
        "capability_disabled",
        "unsupported_target",
        "stale_preview",
        "invalid_preview"
      ],
      "type": "string"
    },
    "Fields": {
      "properties": {
        "alert": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "enabled": {
          "type": "boolean"
        },
        "expression": {
          "type": "string"
        },
        "expression_truncated": {
          "type": "boolean"
        },
        "format": {
          "$ref": "#/$defs/Format"
        },
        "timezone": {
          "type": "string"
        },
        "timezone_source": {
          "type": "string"
        },
        "timezone_truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "expression",
        "expression_truncated",
        "format",
        "timezone",
        "timezone_truncated",
        "timezone_source",
        "enabled",
        "alert"
      ],
      "type": "object"
    },
    "Format": {
      "enum": [
        "cron",
        "english"
      ],
      "type": "string"
    },
    "Observation": {
      "properties": {
        "error": {
          "anyOf": [
            {
              "$ref": "#/$defs/AppError"
            },
            {
              "type": "null"
            }
          ]
        },
        "evidence_limit": {
          "type": "string"
        },
        "matches_expected_fields": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "pages_read": {
          "format": "uint8",
          "maximum": 255,
          "minimum": 0,
          "type": "integer"
        },
        "reported": {
          "anyOf": [
            {
              "$ref": "#/$defs/ScheduleSummary"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "$ref": "#/$defs/ObservationStatus"
        }
      },
      "required": [
        "status",
        "reported",
        "matches_expected_fields",
        "pages_read",
        "error",
        "evidence_limit"
      ],
      "type": "object"
    },
    "ObservationStatus": {
      "enum": [
        "reported",
        "not_listed_empty_expression",
        "not_found",
        "search_limit",
        "unavailable",
        "configuration_mismatch"
      ],
      "type": "string"
    },
    "Owner": {
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "$ref": "#/$defs/OwnerKind"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id",
        "name"
      ],
      "type": "object"
    },
    "OwnerKind": {
      "enum": [
        "action",
        "procedure"
      ],
      "type": "string"
    },
    "ScheduleSummary": {
      "properties": {
        "fields": {
          "$ref": "#/$defs/Fields"
        },
        "last_run_at": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "next_scheduled_run": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "owner": {
          "$ref": "#/$defs/Owner"
        },
        "schedule_error": {
          "type": [
            "string",
            "null"
          ]
        },
        "schedule_error_truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "owner",
        "fields",
        "next_scheduled_run",
        "last_run_at",
        "schedule_error",
        "schedule_error_truncated"
      ],
      "type": "object"
    }
  }
}

Operator guides

All built-in tools