Skip to main content
Glama
PagerDuty

pagerduty-mcp

Official
by PagerDuty

list_oncalls

Read-onlyIdempotent

Retrieve on-call schedules with filters for users, escalation policies, services, and time ranges to identify who is on call.

Instructions

List on-call schedules with optional filtering.

Args:
    time_zone: Time zone for date rendering (e.g. America/New_York)
    user_ids: Filter by user IDs
    escalation_policy_ids: Filter by escalation policy IDs
    schedule_ids: Filter by schedule IDs
    service_ids: Filter by service IDs. Resolves each service to its escalation policy to find on-call responders.
    since: Start of time range
    until: End of time range
    earliest: Return only earliest oncall per user/policy combination. Defaults to True.
    limit: Max results to return

Returns:
    List of on-call schedules matching the query parameters

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
sinceNo
untilNo
earliestNo
user_idsNo
time_zoneNo
service_idsNo
schedule_idsNo
escalation_policy_idsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
responseYes
Behavior4/5

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

Annotations already declare readonly and idempotent, so the bar is lower. The description adds behavioral context beyond annotations, such as the resolution of service_ids to escalation policies and the default behavior of 'earliest' being True.

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?

The description is a structured docstring with Args and Returns sections, concise but covering all parameters. It could be slightly tighter, but it's well-organized.

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?

With 9 parameters, an output schema, and annotations, the description covers the essential context. It explains parameter behavior and return type, though pagination or limit behavior could be more explicit.

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 description coverage is 0%, so the description must compensate. It lists all parameters with brief explanations, adding meaning beyond the schema schema itself, especially for service_ids which includes resolution logic.

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?

The description clearly states it lists on-call schedules with optional filtering, using a specific verb and resource. However, it does not explicitly distinguish from sibling tools like list_escalation_policies or list_schedules, missing some differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives like list_escalation_policies or list_schedules. The description only says 'with optional filtering,' which implies usage but does not state exclusions or conditions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PagerDuty/pagerduty-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server