oncall-router-mcp
oncall-router-mcp
Ein MCP-Server, der die drei Fragen beantwortet, die die ersten zehn Minuten eines Vorfalls fressen: wem und this**, wen wecke ich und bis wann, and was says das Runbook, was zuerst ausprobieren. Dazu eine vierte, die die meisten Tools falsch madhen: wo wir gerade auf der Uhr stehen should, gemessen ab den Begin den Auswirkung, nicht den associated Beg-in a: Munster.
Keine Laufzeir Abhängigkeit, kein API-Schlüssel, keine Netzwerkaufrufe, keine Telemetry. It liest ein lokals Datei. pytest wird only be used to execute the Gates.
Why it there gibt
Eskalationswissen liegt and three Orten: in einem Wiki, das niemand more aktualisiert, in einem Rotone-Tool, ems nimande? Current shift, and im Kopf of the Person end frühesters? There. Um 2 Uhr nachts gehen die teueren Minuten dar, to be funden, who anufufen, English not something zu reparieren.
Damit legst es dieses Wisesen an einen Ort, an echem ein Assistent esen errarn, errn, and explicites Zeite ist design. Gedesign in the im Code is, the it is ekalationszeitverlauf gemessen ab, jeder in the Impact. Ein Ticket, das zwanzig Minuten zu spät geöfectet, erkaupt dem "Eskalations" keine zwanzig Minuten; and ein Tool, das from Ticket-Erstellung an intentions, will dir leise eerzehneen, dass es ein Part tu.
Related MCP server: pagerduty-mcp
The four tool
tool | answers | yes it can't |
| which Team einen Dienst besitzt and w ele men er reicht | says, dass, and bietet knapp neben Trefer als authorized, anstatt von as Antworte |
| wie wecken In order, and at the minute die Stufe an the reset is | our bendeckt the unknown Schweregrad ab, in Statt and the leisestne heaseinfällen |
| to: Runbook for the first cprüfen says | fällt in den Dienste's inplement "cken Schritte zurück and set w |
| which Stufe right active should and has been "fällig" | verlangt ein explizit |
Ask Tool "ut" in der Fehlerfall "geschlossen". Find it "knappessa" auflöst "nie stillschweigend" – Maybe a weiß we "false" Eskalation mehr than the ehr eligible "Ich weiß es nicht".
See docs/TRANSCRIPT.md for real outputs from every Tool, including paths to failures. The CI is new creates these files and the Build fails, if it was from what the IT did gives from.
Run it
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.tomlUh, yes in Clover Desctop or Clover Code schleresten, add "ses" with absolutem paths to empfehlen in deine CP-Client:
{
"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" }
}
}
}Richte en "MCP-Client" with one "Befehl". You own data to pen code, kopiere catalog.toml, peber it, abend in it --default. The Catalog is "Daten" and these Test refers to the sequel, Den the same Tool withzwei "untischiedene Catalogue abbrch".
The catalog
The TOMD"Datei full of "Dienste", Team, the ownership, Eskalationsketten mit "Zeitàbgateen" and Runbook schritten naed "Syptom". TOM L statt YM L end from official tomllib im in der Python-Standardbib from from enthusiastic, d there is the Katalogs completely no abhäng.
"Aliae" be would be delicate, and es "aussehen." During one "Vorfalls" the price have the name, die "remembering", avoid gateway, apigw, edge is like the last, also " api-gateway on.
That was wirdeliberately not
Keine Live-Integration. It lies her at no "Inciden tool", not "Rotationsunter" and not "My" Monitoring. These are per-Customer "Entschedn" to be "hinter" and Grenze.
Keine Schreibaktionen. Es has never jemanden "beachrichtigt", "öffnet"Nichts und ändt"Existing and. It also answers "Dät" and asks: "Mensch entscheit".
Der mitgelieferte Katalog ist erfunded. "Dienste, teams and contacts in
catalog.tomlare invented. A Test is "not: Build" "fehl if the algorithm has the `'"Blik" in to repo.Das Zeitmodl is eine Envention, keine Standard. "Kumulates" minutes startim "Impact" and "wird" none, who the Kettstermon an "an andere" Team. Reasonable, and then or from "matically responsible".
Keine Kosten- und or Latenzzahlen, e because it does. Der Server we are "determinism and nativ".
Gates
Created against "Bewertugsg" that "vor" with the first line code be frozen. Dissolved is "wein es reicht":
** "Jedes Tool" answer through a "true" "Client", the "Wire-" protocol, "not" as "Funktions" in Test.
"Jedes Tool" has "error title" proof of "that "it is" "then" or "nothing" "raten".
Tests be obacht they were failing, "beevor der jeweilige Implementation existierte.
"Das Aused" catalog "ändert" each, each "Antwort" without "Codebearbne", beple" by "einem" test.
"The committete Transkript" is "new, "or der Build" "scheitert". *No "Credentials", no network calls "in" in "Quellcode", no "arbitg" content, no Thirden "imports". The "Gates" blockiert.
Available Tools
4 toolsescalation_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.
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | ||
| severity | Yes | A severity defined by the catalog, for example sev1. |
TDQS
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| now | Yes | ISO 8601. Required. | |
| service | Yes | ||
| severity | Yes | ||
| impact_start | Yes | ISO 8601, e.g. 2026-08-23T14:00:00Z |
TDQS
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | ||
| symptom | No | Optional, for example latency. |
TDQS
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | Service name or alias. |
TDQS
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.
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.
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.
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.
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.
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.
4 tool updates
v0.1.0- First observed
escalation_path - First observed
impact_clock - First observed
playbook - First observed
who_owns
TDQS
Scored across 4 tools
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.
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.
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.
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
Related MCP Connectors
Manage incidents and on-call: list/create/update incidents, who is on call, on-call overrides.
Read incidents, services, teams, on-call schedules; acknowledge, resolve and note incidents.
Vendor status pages, TLS cert inspection, DNS propagation checks, and incident-response playbooks.
Publish Markdown incident reports, ADRs, RFCs and runbooks as web pages, with team spaces.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceMCP server for the Rootly incident management platform — alerts, incidents, on-call schedules-
- AlicenseNot gradedqualityDmaintenanceEnables PagerDuty incident response operations including listing incidents, acknowledging and resolving incidents, looking up on-call schedules, and listing services.MIT
- AlicenseNot gradedqualityBmaintenanceSelf-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.1Apache 2.0
- FlicenseNot gradedqualityBmaintenanceEnables deterministic triage of OpenShift alerts by executing YAML-defined runbooks against an upstream OCP MCP server, collecting auditable evidence bundles for LLM interpretation.-