Skip to main content
Glama
Rootly MCP server

Rootly MCP server

Official
by rootlyhq

Get Oncall Schedule Summary

get_oncall_schedule_summary
Read-only

Retrieve a compact on-call schedule summary for a date range, showing aggregated hours per responder and schedule to assess coverage and workload.

Instructions

Get compact on-call schedule summary for a date range.

Returns one entry per user per schedule (not raw shifts), with aggregated hours. Optimized for AI agent context windows.

Use this instead of list_shifts when you need:

  • Aggregated hours per responder

  • Schedule coverage overview

  • Responder load analysis with warnings

One row per user per schedule, so the response stays the same size whether the range is a week or a year. For individual shift times, or for one person's schedule, use list_shifts instead.

Ranges longer than the upstream cap are split into windows and merged automatically.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_oncall_schedule_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateNoEnd date (ISO 8601, e.g., '2026-02-15')
team_idsNoComma-separated team IDs to filter (optional)
start_dateNoStart date (ISO 8601, e.g., '2026-02-09'). Omit both dates for the next 7 days.
schedule_idsNoComma-separated schedule IDs to filter (optional)
include_user_idsNoInclude numeric user IDs for cross-platform correlation

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv3.0.0
    • addedInput schema / properties / end_date / default
      Added value: +""
    • addedInput schema / properties / start_date / default
      Added value: +""
    • changedInput schema / properties / start_date / description
      Previous value: -"Start date (ISO 8601, e.g., '2026-02-09')"New value: +"Start date (ISO 8601, e.g., '2026-02-09'). Omit both dates for the next 7 days."
    • removedInput schema / required
      Removed value: -[
      -  "start_date",
      -  "end_date"
      -]
  2. Addedv2.4.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the description only needs to add operational context — and it does: constant response size regardless of range, one row per user per schedule, and automatic windowing/merging when the range exceeds the upstream cap. It omits pagination or rate-limit details, keeping it short of a 5.

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 the core purpose, then a bulleted use-case list, then the exclusion and the windowing caveat — a clean structure where every block serves a function. Slight redundancy in repeating 'one entry per user per schedule' and 'One row per user per schedule' in two places.

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?

With an output schema present, return values need no explanation; the description still covers scope, output granularity, sibling routing, and the long-range windowing behavior. Nothing an agent needs to select or invoke this tool correctly is missing.

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?

Schema description coverage is 100%, including the default window ('Omit both dates for the next 7 days') and the comma-separated ID format, so the schema carries parameter meaning. The description adds no new semantics for team_ids, schedule_ids, or include_user_ids beyond restating the filtering purpose, which is the baseline-3 case.

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 compact on-call schedule summary for a date range') and immediately contrasts the output shape with raw shift data ('one entry per user per schedule, not raw shifts'), so an agent can distinguish it from list_shifts without opening any 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 when-to-use list (aggregated hours per responder, coverage overview, load analysis with warnings) and an explicit when-not with the named alternative ('for individual shift times, or for one person's schedule, use list_shifts instead'). Routing is unambiguous.

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