Skip to main content
Glama
wpfleger96

PagerDuty MCP Server

by wpfleger96

get_oncalls

Retrieve on-call entries for schedules or escalation policies across specified time ranges. Filter by users, teams, or policies to view current or historical on-call assignments.

Instructions

List on-call entries for schedules, policies, or time ranges.

Behavior varies by time parameters:

  1. Without since/until: Returns current on-calls Example: get_oncalls(schedule_ids=["SCHEDULE_123"])

  2. With since/until: Returns all on-calls in range Example: get_oncalls(schedule_ids=["SCHEDULE_123"], since="2024-03-20T00:00:00Z", until="2024-03-27T00:00:00Z")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
current_user_contextNoUse current user's team policies (default: True)
schedule_idsNoFilter by schedules (optional)
user_idsNoFilter by users (optional, excludes current_user_context)
escalation_policy_idsNoFilter by policies (optional)
sinceNoStart of query range in ISO8601 format (default: current datetime)
untilNoEnd of query range in ISO8601 format (default: current datetime, max range: 90 days in the future). Cannot be before `since`.
limitNoMax results (optional)
earliestNoOnly earliest on-call per policy/level/user combo (optional)
includeNoList of fields to include in the response. If specified, only these fields will be returned for each on-call entry

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Without annotations, the description carries full responsibility for behavioral disclosure. It explains the time-based behavior and default current on-calls, but does not mention other aspects like pagination, rate limits, or authentication requirements, which are relevant for a read operation with multiple parameters.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very concise and well-structured with a bulleted list and examples. Every sentence adds value, and it is front-loaded with the core purpose.

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?

Given the complexity (9 parameters, output schema exists), the description covers the key behavioral distinction and default behaviors. Some parameter interactions (e.g., user_ids vs current_user_context) are noted in the schema but not in the description. Still, it is sufficiently complete for an agent to use correctly.

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 100%, so baseline is 3. The description adds value beyond the schema by explaining the behavioral difference with and without since/until and providing concrete examples, which helps the agent understand parameter impact.

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?

The description clearly states the tool's verb (list), resource (on-call entries), and scope (schedules, policies, time ranges). It also provides specific behavior variations with and without time parameters, which distinguishes it from siblings like list_users_oncall.

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

Usage Guidelines4/5

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

The description gives explicit context on when to use different behaviors (with/without since/until) and provides examples. However, it does not explicitly mention when not to use the tool or alternatives among sibling tools, leaving a slight gap.

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/wpfleger96/pagerduty-mcp-server'

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