Skip to main content
Glama
Rootly MCP server

Rootly MCP server

Official
by rootlyhq

Create Override Shift

create_override_shift
Destructive

Creates an override shift for a schedule and replaces any overlapping overrides in the specified time range. Use it to assign a user to cover a schedule window.

Instructions

Creates a new override shift from provided data. If any existing override shifts overlap with the specified time range, they will be automatically deleted and replaced by the new override. This endpoint is idempotent: re-sending an identical override (same user and same start/end time) returns the existing override with a 200 status and does not recreate it.

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": {
      "schedule_id": "<schedule_id>",
      "data": "<data>"
    },
    "name": "create_override_shift"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
schedule_idYesRequired. ID of the schedule (fills `{schedule_id}` in /v1/schedules/{schedule_id}/override_shifts).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.4.0

TDQS

B3.3/5.0
Behavior2/5

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

The disclosure that overlapping override shifts are automatically deleted and replaced is genuinely valuable behavior beyond the annotations, and it aligns with destructiveHint=true. But the sentence "This endpoint is idempotent" directly conflicts with the supplied idempotentHint=false, giving an agent contradictory signals about whether a retry is safe; this is flagged as an annotation contradiction.

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?

Three front-loaded sentences, each carrying real information about destruction and retry behavior; the phrase "from provided data" is the only filler. No structural problems, but the strongest warning (overlapping overrides are deleted) sits second rather than first.

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?

For a destructive write tool with an output schema and annotations covering safety, the description supplies the two things structured data cannot: overlap-replacement semantics and retry behavior. The only gap is the idempotency conflict with the annotation, which an agent would have to resolve by experiment.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 50% schema description coverage, the description should carry more weight, but it says only "from provided data". Its one real contribution is clarifying that identity is "same user and same start/end time", which maps to user_id, starts_at and ends_at, though the nested data/attributes wrapper and the type enum are never explained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Creates a new override shift" is a specific verb plus resource, and the term "override" distinguishes it from ordinary shift creation and from the get/update/list override siblings. It does not explicitly name an alternative (e.g. update_override_shift), so it stops short of full sibling differentiation.

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?

The description implies when this tool is appropriate: when you want to set an override that supersedes whatever already covers that time range. However, it never states when to prefer update_override_shift over create_override_shift, nor any exclusions or prerequisites, leaving the alternative routing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools