Skip to main content
Glama
LZBiala

oncall-router-mcp

by LZBiala

oncall-router-mcp

인시던트가 발생했을 때 첫 10분을 삼키는 세 가지 질문에 답하는 MCP 서버입니다: 이건 누가 소유하지, 누구를 깨우고 언제까지 해야 하지, 런북은 무엇부터 하라고 하지. 그리고 대부분 도구들이 틀리는 네 번째 질문: 지금 시계(clock)의 알맞은 위치에 있어야 하는가 — 누군가 티켓을 연 때가 아니리고, 장애가 시작된 시점부터 측정한입니다.

런타임 의존성이 없다임 API 키도, 네트워크 호출도, 텰레메트리도 없습니다. 로컬 파일 단 하나를 읽습니다. pytest는 게이트(gates)를 실헹할 때만 필요합니다.

만든 이유

에스컬레이션 지식은 세 곳에 흐어져 있다: 아무도 갱선하지 않은 위키, 현커 당번만 아는 로테이션 프로그, 그리고 가장 오래 함의 한 사木의 느. 오전 두This 시에 고가한 시간은 문제를 고치 데가 아니다 무엇을 도해서 구출할 get whole자를 정리 with unknown자 총재를 wasted.

이 프로젝트는 그 지식을 어**시스턴도 travel할 수 있는 곳에 두고, 타이밍을 명시적인 것으로 만든다. 코드 안에 담긴 설게 의견은, 에스컬레이션 타이밍은 impact 시각 시작을 기준으로 흐른다는 것. 20분 뒤에 열린 티켓은 response to the report냋 minutes extra 지각 무엇을 더 many 일. But a tool that measure from ticket opening: might that quietly be told in a later tarde.

실용시키기 전의 대답 단, 제일 큰 수순이다.

Related MCP server: pagerduty-mcp

네 가지 도구

tool

대답하는 것

대답할 수 없을 때

who_owns

어떤 팀이 서비스를 소유하고, 지금 그 팀에 어떻게 연락한다

그렇다고 말하고, 정답이 아니라 근접 일치를 후보로만 안내한다

escalation_path

누구를, 어떤 순서로, 각 단계(hop)가 예정된 분(or time)과 함께 깨울 것인인지

알 수 없는 severity를 “조용한” 기본 값으로 지정하지 않고 거부한다

playbook

런북이 무엇먼저 확인하라고 하는지

서비스의 일반 단계로 폴백하고, 호출자가 그 사실을 알 수 있도록 fell_back을 설정한다

impact_clock

지금 어느 단계(hop)가 활동하고 있어야 하고, 무엇이 오버되고 있는지

명시적인 now를 요구하고, 미래의 시작 시간은 거부한다

모든 도구는 안전한 쪽으로 닫히고(fail) closed), 근접 일치는 그 자체가 정답인 것처럼 조용히 처리되지 않다. 확직한 데 근응할 것은 정직한 “모르겠다”보다 비용이 크기 때문 않습니다.

docs/TRANSCRIPT.md에서 모든 도구의 실제 출력(실패 경로 포함)을 확인할 수 있다. CI 이 파일을 재생성하고, 단단한 출력이 _실제 코드 출력_과 어긋나면 빌드를 실패를 시킨다.

실행하는 법

git clone <this repo> && cd oncall-router-mcp
python -m pip install "pytest>=7"          # the only dependency, and only to run the tests
python -m pytest tests/ -q                 # 40 tests
PYTHONPATH=src python -m oncall_router.server --catalog catalog.toml

Claude Desktop 또는 Claude Code에 연결하려면 MCP 클라이언트 설정에 이걸 추가하자, 절대 경로를 사용해서:

{
  "mcpServers": {
    "oncall-router": {
      "command": "python",
      "args": ["-m", "oncall_router.server", "--catalog", "/abs/path/to/catalog.toml"],
      "env": { "PYTHONPATH": "/abs/path/to/oncall-router-mcp/src" }
    }
  }
}

MCP 클라이언트가 그 명령(서버)을 가리키게 하자. 자신의 데이터를 쓰려면 catalog.toml을 복사해 수정한를 수정한 후, --catalog yours.toml를 넘기면 된다. 코드 변경은 필요 없다. catalog는 데이터이고, 어떤 도구를 같은 클라이언트를 두 개의 서로 다른 catalog에 대해 실행하는 테스트가 이 사실을 보여 준다.

catalog

하나의 TOM 파일이 파일이 아닌: 서비스, 각 서비스를만 소유하는 팀, 각 시간이 예약된 escalation chains, 그리고 증상별 런북 단계를 저장한다. YAML쪽 TOM을 하는 선택한 이유는 tomllib이 Python 표준 라이브러리에 포합되어 있기 때문에 catalog가 이 프로젝트에 의종성 비용이 발생하지 않는 것이다.

별명(alias)은 보이는 것보다 더 중요하다. incidencing 중에는 사람들이 기억하는 이름을 그대로 입력합니다. 그래서 gateway, apigw, edge, the gateway도 모두 api-gateway로 귀결된다.

의도적으로 하지 않는 일

  • No live integrations. incident tool과 rotation tool, monitoring을 읽하지 않습니다. 그런 것은 고객 각기씩우의 결정이며, 경고 boundary 뒤에 속한 일이다.

  • No write actions. 성행에 전화하기(펴이징), see/any open도 이나 상태 변경지 never full. 그냥 questions and 인간 answer.

  • 동봉된 catalog는 가공이다. catalog.toml에 있는 need-serving, 팀, 그리고 손들. 테스트는 repo internal if ex-identify가 될 만한 ex-capability appears in Repo을 포함하는 경우 빌드를 실패시킨다.

  • 타이밍 모델은 관용이지 표oper되지 종참. impact가 시작된 때부터의 누etadata minutes, 에스컬레이션 체인 두 phase/를 기 다른 팀으로 넘는 시점에도 carry forward. 합리적인 선택이, 합리적인 선택이 유일한 것은 아니다.

  • 비용 또는 지연 수치가 없다. 모델 호출이 없기 때문. 서버는 deterministic하고 100% 로컬.

Gates

코드 한 줄이지 전에 동결된 rubric에 따라 만들었다. 그중 알아the "게이트들을 나 역게:

  • 모든 도구는 테스트에서 함수 호출이 아니라, 실제 클라이언트가 wire protocol로 말을 걸어 온 답대/through 동하지 않는다.

  • 모든 도구는 추측하지 않고 정중히 기권함을 증명하는 실패 path 테스트를 갖는다.

  • 구현이 참혐 前에 테스트가 실패(observed) 하는 있는 게 import and 하게 하는 과정을 확인했다.

  • catalog을 바꾸면 드 편집 없이 모든 답변을을 바지을 테스트가 증명한다.

  • 커머트된 트랜스르립트가 재생성되지 않거나, 빌드가 실패한다. *자격 증명 정보 없음, source code 내 네트워 콜출 없음, employer content 및 third-party import 없음. 이 것은 games 성결 conv/불이며, heavier 게이트 단이막가원해야 한다.

Available Tools

4 tools
escalation_pathA

Who to wake for this service at this severity, in order, with the minute each hop is due measured from impact start. Refuses an unknown severity rather than defaulting to the quietest one.

ParametersJSON Schema
NameRequiredDescriptionDefault
serviceYes
severityYesA severity defined by the catalog, for example sev1.

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses a non-default behavior ('Refuses an unknown severity rather than defaulting to the quietest one') and describes the output nature (ordered list with minute timings). No other side effects are mentioned, but the tool appears read-only and the disclosure is sufficient for a simple query.

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?

Two concise sentences, front-loaded with the core purpose and output, followed by the refusal behavior. Every word earns its place, with no redundancy or fluff.

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 tool with only 2 simple parameters and no output schema, the description covers the essential return value (who, order, timing) and the key behavioral nuance (refusal on unknown severity). Nothing critical is missing given the tool's simplicity, though explicit error handling for unknown service isn't described.

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 coverage is 50% (severity has a description, service does not). The description adds significant meaning to severity: it must be a catalog-defined value and unknown ones are refused. Service is only referenced as 'this service' without additional constraints, but the schema already defines it as a string. Overall, the description compensates well for the coverage gap.

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 states a specific query (who to wake) for a defined resource (this service at this severity) and includes output order and timing. It clearly distinguishes from siblings like who_owns (ownership) and impact_clock (timing) by focusing on the escalation path itself.

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 usage ('Who to wake for this service at this severity') but never explicitly says when to use this tool over siblings or when not to use it. No alternatives are named, so an agent must infer from tool names rather than get explicit routing guidance.

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

impact_clockB

Given when impact started, which escalation hop should be active now and which are overdue. Time is measured from impact start rather than ticket creation. Requires an explicit now timestamp: it never assumes the current time.

ParametersJSON Schema
NameRequiredDescriptionDefault
nowYesISO 8601. Required.
serviceYes
severityYes
impact_startYesISO 8601, e.g. 2026-08-23T14:00:00Z

TDQS

B3.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explicitly states that the tool requires an explicit now timestamp and never assumes current time, and that it measures from impact start rather than ticket creation. This is meaningful behavioral context beyond the schema. It does not mention side effects or error conditions, but for a calculation tool this is reasonably transparent.

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 three sentences with no wasted words. It front-loads the purpose, then adds the key behavioral constraint (time basis and explicit now requirement). Each sentence contributes necessary information, making it concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema and no annotations, the description offers the essential purpose and a critical behavioral constraint, but it does not describe the return format, potential error cases, or how severity/service influence the result. It gives enough to understand the intent but lacks detail for full autonomous use.

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

Parameters2/5

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

Schema description coverage is 50%, covering 'now' and 'impact_start' but leaving 'service' and 'severity' undocumented. The description reinforces the meaning of impact_start and now but does not explain the roles of service and severity in determining escalation hops. It fails to compensate for the missing schema descriptions, leaving those parameters ambiguous.

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 the core function: determining which escalation hop is active and overdue given impact start and a specified now. It also distinguishes time measurement from ticket creation, which is a specific behavioral nuance. However, it does not explicitly differentiate from sibling tools like 'escalation_path' or 'playbook', so it stops short of a 5.

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?

The description provides no guidance on when to use this tool versus its siblings. It mentions a constraint (explicit now timestamp) but does not explain when this tool is appropriate or when another might be better. There is no statement of alternatives or exclusion criteria.

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

playbookA

What the runbook says to check first. Falls back to the service's general steps when the symptom is unknown, and says so with fell_back=true.

ParametersJSON Schema
NameRequiredDescriptionDefault
serviceYes
symptomNoOptional, for example latency.

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses a key behavioral trait: when the symptom is unknown, it falls back and reports with fell_back=true. This is valuable and goes beyond simple 'returns steps.' It also implies a read-only operation. However, it does not describe the complete return structure, error handling, or any side effects, though for a read tool this is minor.

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?

Two sentences, no filler. The primary purpose is front-loaded, and the fallback condition is stated concisely with a concrete outcome (fell_back=true). Every word earns its place.

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 two simple parameters and no output schema or annotations, the description provides core information: what it returns conceptually, the fallback condition, and a note about a response field. It omits the exact return payload shape (e.g., list of steps vs. free text), but for a tool this straightforward, it's nearly sufficient. A tiny bit more about the output format would make it a 5.

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 coverage is 50% (only symptom has a description). The description adds meaning by explaining that a missing/unknown symptom triggers fallback behavior, linking symptom to the fallback logic. It clarifies the role of service indirectly via 'service's general steps.' Yet it does not elaborate on allowed values, format, or examples for either parameter beyond what the schema already states for symptom.

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?

States a specific action and resource: retrieving the first checks from a runbook for a service. The description clearly sets it apart from siblings (ownership, escalation, impact) by focusing on runbook guidance. However, 'what the runbook says to check first' is slightly vague about whether it returns a list, a single item, or a message, so it's not a perfect 5.

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 usage: use this tool when you need the runbook's first steps, and it handles unknown symptoms by falling back to general steps. It does not explicitly name alternatives or state when not to use it (e.g., if you need escalation path, use escalation_path). The fallback behavior is a form of guidance, but it lacks explicit comparisons to sibling tools.

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

who_ownsA

Which team owns a service and how to reach them right now. Accepts the name someone would actually type during an incident, including aliases. Returns found=false with suggestions rather than guessing at a near match.

ParametersJSON Schema
NameRequiredDescriptionDefault
serviceYesService name or alias.

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It explicitly states 'Returns found=false with suggestions rather than guessing at a near match,' which is a valuable behavioral trait that helps the agent set expectations. It also implies a read-only lookup (no side effects mentioned), though it does not elaborate on authentication or error conditions. Overall, it adds meaningful behavioral context beyond the schema.

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?

Two concise sentences, front-loaded with the primary purpose. Every clause adds value: the first sentence defines the outcome; the second clarifies input flexibility and the non-guessing behavior. No redundancy or filler.

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?

The tool is simple (one parameter, no output schema), and the description covers purpose, input semantics, and a key behavior (found=false with suggestions). It does not list the exact fields returned (e.g., team name, contact info), but 'how to reach them' implies that. Given the low complexity and lack of annotations, it is reasonably complete, though a bit more detail on the return payload would make it excellent.

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?

The schema already describes the parameter as 'Service name or alias' with 100% coverage, so the baseline is 3. The description adds nuance by specifying 'the name someone would actually type during an incident,' which gives the agent guidance on the flexibility of input. This extra context—emphasizing natural incident-time phrasing—goes slightly beyond the schema's dry definition, justifying a 4.

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 purpose: 'Which team owns a service and how to reach them right now.' This specifies a verb (owns), a resource (service), and the output (ownership and contact). It distinguishes itself from sibling tools (escalation_path, playbook, impact_clock) implicitly by focusing on ownership rather than escalation steps, runbooks, or timing.

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 usage context—when you need to identify who owns a service—but it does not explicitly contrast with siblings or state when not to use this tool. There is no mention of alternatives like escalation_path or playbook. The behavior note about returning found=false provides some guidance, but it is not a clear when-to-use vs. when-not-to-use directive.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 4 tool updatesv0.1.0
    • First observedescalation_path
    • First observedimpact_clock
    • First observedplaybook
    • First observedwho_owns

TDQS

A3.9/5.0

Scored across 4 tools

Disambiguation5/5

Each tool targets a distinct aspect of incident routing: ownership (who_owns), escalation (escalation_path), response steps (playbook), and timing (impact_clock). There is no overlap in purpose, and the descriptions make boundaries clear.

Naming Consistency4/5

All tool names are lowercase snake_case and are descriptive, but the pattern varies slightly: who_owns is a question-like phrase, while the others are noun compounds. This is a minor inconsistency, but the naming remains intuitive and predictable.

Tool Count5/5

With only 4 tools, the server is tightly scoped to incident routing. Each tool delivers a unique, essential capability without redundancy, making the count ideal for the domain.

Completeness4/5

The tool set covers the core incident routing workflow: identifying ownership, following escalation paths, accessing playbooks, and tracking escalation timing. Minor gaps like incident acknowledgment or status updates exist but are outside the router's stated purpose.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    A
    maintenance
    MCP server for the Rootly incident management platform — alerts, incidents, on-call schedules
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables PagerDuty incident response operations including listing incidents, acknowledging and resolving incidents, looking up on-call schedules, and listing services.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Self-hosted operational dashboard and MCP server that catalogs runnable services and their operational context, offering a read-only MCP endpoint to list projects, service status, runbooks, and reconciliation context.
    1
    Apache 2.0
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables deterministic triage of OpenShift alerts by executing YAML-defined runbooks against an upstream OCP MCP server, collecting auditable evidence bundles for LLM interpretation.
    -