Skip to main content
Glama
woodydaniel

whodoicallfor-mcp

by woodydaniel

whodoicallfor-mcp

MCP-сервер, который отвечает на вопрос, который люди на самом деле задают при домашней аварии: какому специалисту звонить?

Не «найдите мне сантехника». Предшествующий вопрос — а это вообще сантехник?

Проблема

Я позвонил сантехнику, который сказал мне вызвать мастера по бытовой технике. Я позвонил мастеру по бытовой технике, который сказал мне вызвать сантехника.

Это обычный опыт бытовой аварии, и он дорого обходится. Две платы за выезд, полдня потеряно, а вода всё ещё течёт через потолок. Специальности узкие, и их границы невидимы со стороны: пятно на потолке — это кровельщик, если оно зависит от погоды, специалист по ОВиК, если оно зависит от кондиционера, и сантехник, если оно зависит от душа наверху. Ущерб от воды после того, как течь остановлена, — это четвёртая специальность — бригада по устранению последствий, — и сантехник скажет вам об этом после того, как вы оплатили вызов.

Этот сервер предоставляет ассистенту таблицу маршрутизации. Опишите проблему простыми словами; получите в ответ, кому звонить, в каком порядке, по какому поводу к ним не обращаться, сколько это обычно стоит с указанием источника и даты, и — если есть — круглосуточную диспетчерскую линию.

Контент берётся из публичного JSON API на сайте whodoicallfor.com. Без аутентификации, без API-ключа, без настройки.

Related MCP server: kickserv-mcp

Установка

Claude Code

claude mcp add whodoicallfor -- npx -y whodoicallfor-mcp

Cursor — добавьте в ~/.cursor/mcp.json (или .cursor/mcp.json в проекте):

{
  "mcpServers": {
    "whodoicallfor": {
      "command": "npx",
      "args": ["-y", "whodoicallfor-mcp"]
    }
  }
}

Такая же структура работает для Claude Desktop (claude_desktop_config.json), Windsurf, Zed и всего остального, что говорит по stdio MCP.

Или ничего не запускайте. Работает размещённый экземпляр этого сервера:

https://whodoicallfor.com/api/mcp/

Он говорит по streamable HTTP, не сохраняет состояние и не требует учётных данных. Завершающий слэш обязателен — URL без слэша отвечает редиректом 308, и некоторые MCP-клиенты не следуют за редиректом на POST.

claude mcp add --transport http whodoicallfor https://whodoicallfor.com/api/mcp/

Запуск напрямую

npx whodoicallfor-mcp                # stdio (default)
npx whodoicallfor-mcp --http         # streamable HTTP on http://localhost:3000/mcp
npx whodoicallfor-mcp --http 8080    # ...on a port you pick

Требуется Node 20.19 или новее.

Инструменты

Все три инструмента доступны только для чтения, идемпотентны и не обращаются ни к чему, кроме публичного API.

Инструмент

Аргументы

Возвращает

route_emergency

problem (обязательный), state (необязательный)

До 3 ранжированных ситуаций, лучшая первой

get_scenario

category, slug

Одна ситуация полностью

list_scenarios

—

Все опубликованные ситуации с каноническими URL

route_emergency

Проблема на простом языке на входе, ранжированные ситуации на выходе. Передайте код или название штата США ("FL", "Florida"), чтобы отфильтровать диспетчерские номера до линий, которые действительно покрывают этот штат.

Вход

{ "problem": "water coming through my ceiling" }

Выход (сокращено — настоящий ответ содержит три совпадения с полными массивами costs, faq и sources)

{
  "matches": [
    {
      "title": "Water Leaking From the Ceiling — Who Do I Call?",
      "category": "water",
      "vertical": "water-damage",
      "tldr": "What's directly above matters less than timing. Appears or worsens when it rains → roofer. Appears when the AC runs, or only in cooling season → HVAC condensate line. Neither, and it tracks water use upstairs → plumber. If water is still coming, shut the main valve, keep it clear of lights and outlets, and photograph everything before any repair. Renting? The landlord's emergency line comes before any of this.",
      "who_to_call": [
        {
          "who": "Emergency plumber",
          "when": "Water is actively dripping or flowing and you can't stop it at the source",
          "not_for": "The leak has stopped — a plumber fixes pipes, not soaked drywall"
        },
        {
          "who": "Roofer",
          "when": "The stain appears or worsens when it rains and stays quiet in dry weather — usually failed flashing",
          "not_for": "The stain tracks showers, washes, or flushes rather than the weather"
        }
      ],
      "costs": [
        {
          "item": "Water-damaged ceiling repair",
          "range": "$200–$1,500",
          "source": "Fixr",
          "source_url": "https://www.fixr.com/costs/ceiling-repair"
        }
      ],
      "updated": "2026-08-12",
      "url": "https://whodoicallfor.com/water/ceiling-leaking/",
      "recommended_call": null,
      "match_score": 12
    }
  ],
  "state": null
}

Поле not_for — это та часть, которая экономит потраченную впустую плату за выезд.

Когда ничто не набирает достаточно баллов, вы получаете пустой массив matches плюс note, индекс категории и ссылку на направленный триаж — вместо уверенно неверного ответа.

get_scenario

Получите одну ситуацию полностью, используя category и slug из route_emergency или list_scenarios.

{ "category": "water", "slug": "ceiling-leaking" }

Возвращает тот же структурированный объект, плюс body_markdown (полное пошаговое руководство), если вышестоящий API предоставляет его.

list_scenarios

Без аргументов. Возвращает { site, count, scenarios[] } — все опубликованные ситуации с названием, описанием, категорией, slug, датой updated, каноническим URL и JSON URL.

Как работает сопоставление

route_emergency ранжирует по взвешенному пересечению токенов между вашей проблемой и четырьмя полями каждой ситуации: название ×3, описание ×2, tldr ×1 и who/when каждого шага who_to_call ×1. Токены приводятся к нижнему регистру, очищаются от пунктуации, фильтруются по списку стоп-слов и сворачиваются по суффиксам, поэтому «leaking» соответствует «leak», а «pipes» соответствует «pipe». Всё, что набирает меньше 3, отбрасывается; в ответ возвращается не более трёх совпадений.

tldr и who_to_call находятся в постраничных документах, а не в индексе, поэтому первый вызов route_emergency прогревает полный кэш в памяти (ограниченная конкурентность, ~2 с на холодную). Последующие вызовы занимают однозначное число миллисекунд. Индекс кэшируется на 10 минут, а тела страниц — на час, поэтому сервер никогда не нагружает сайт.

Здесь нет нечёткого поиска, нет модели эмбеддингов и нет сетевых вызовов ни к чему, кроме whodoicallfor.com. Это небольшая детерминированная функция, которую можно прочитать за один присест: src/match.ts.

Раскрытие информации

Две вещи, о которых стоит говорить прямо.

Записи recommended_call являются спонсируемыми. Это платные линии с оплатой за звонок, и каждая из них помечена "sponsored": true в полезной нагрузке. Когда ситуация содержит такую запись, это коммерческий движок сайта. Относитесь к ней как к рекламе с номером телефона и показывайте её пользователям как таковую — флаг в данных именно для того, чтобы вы могли это сделать.

Номера, связанные с безопасностью жизни, никогда не спонсируются. 911, токсикологический контроль и аварийные линии газовой службы вообще не содержат recommended_call — на сервере есть жёсткая защита, которая удаляет его для газовых сценариев и для любых ситуаций без коммерческого направления. Если кто-то чувствует запах газа, ответ — «выйдите и позвоните в газовую службу снаружи», и никто не заплатил за это размещение. Эта защита — не предпочтение политики; это код на стороне вышестоящего сервиса, и этот клиент не может её обойти.

Данные о стоимости указаны со ссылкой на названный источник и дату обращения. Перепроверяйте всё, на основании чего вы собираетесь действовать.

Разработка

npm install
npm run typecheck
npm run build
npm start           # stdio
npm run start:http  # http on :3000
src/index.ts    entry point: tool definitions, stdio + streamable HTTP transports
src/client.ts   cached fetches against the public JSON endpoints
src/match.ts    token-overlap ranking

Охват

Ориентировано на США. Около 40 ситуаций, охватывающих воду и затопления, газ и угарный газ, электроэнергию и электрику, отопление и охлаждение, бытовую технику, вредителей и диких животных, блокировки дверей, проблемы с автомобилем и споры с арендодателями и подрядчиками. list_scenarios всегда отражает то, что фактически опубликовано.

Лицензия

MIT © Daniel Widmonte

Available Tools

3 tools
get_scenarioA
Read-onlyIdempotent

Fetch one situation in full: structured answer (who to call, costs, FAQ, sources) plus the complete step-by-step guide as markdown. Use category and slug values from route_emergency or list_scenarios.

ParametersJSON Schema
NameRequiredDescriptionDefault
slugYesScenario slug, e.g. "ceiling-leaking"
categoryYesCategory slug, e.g. "water"

Output Schema

ParametersJSON Schema
NameRequiredDescription
faqNo
urlYes
tldrYes
costsNo
titleYes
sourcesNo
updatedNo
categoryYes
json_urlNo
verticalNo
descriptionNo
who_to_callNo
body_markdownNoThe full step-by-step guide as markdown
recommended_callNo

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint=true, idempotentHint=true, destructiveHint=false. Description adds useful behavioral context by specifying the return format (structured answer + markdown guide). However, it doesn't mention performance characteristics or any dependencies on other tool calls if inputs are not from siblings.

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?

Description is concise (two sentences) and front-loaded with the primary purpose. Every word adds value - the first sentence explains what is returned, the second tells where inputs come from. No redundant language.

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?

Given the low complexity (2 required string params, no enums, no nested objects), the presence of both input and output schemas, and comprehensive annotations, the description is complete. It clearly explains what the tool returns and how to properly call it, leaving no ambiguity for an AI agent.

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 already covers both parameters with 100% coverage (category and slug). Description adds value by stating they are 'category slug' and 'scenario slug' with examples like 'water' and 'ceiling-leaking', which clarifies the role of each field beyond their type definitions.

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?

Description clearly states it fetches one scenario with full details including structured answer, costs, FAQ, sources, and step-by-step guide as markdown. It distinguishes itself from siblings by specifying it retrieves a single scenario in full versus list_scenarios that lists multiple scenarios, and route_emergency which handles routing.

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?

Explicitly instructs to use category and slug values from route_emergency or list_scenarios, providing clear context on when to invoke this tool and where to get the required input parameters. This avoids confusion with its sibling tools.

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

list_scenariosA
Read-onlyIdempotent

List every published situation with title, category, slug, and canonical URLs.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
siteYes
countYes
scenariosYes

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds that it lists 'every published situation' (a scope detail) and the returned fields. However, it does not discuss pagination, ordering, or potential edge cases (e.g., empty list). The behavioral disclosure is adequate but minimal beyond annotations.

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 a single sentence of 12 words, front-loaded with the verb 'List'. It conveys essential information (what is listed, what fields) without any extraneous content. 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 the tool's simplicity (0 parameters, an output schema exists), the description is nearly complete. It states the scope ('every published situation') and the fields included. Minor missing context includes ordering, default listing behavior, and what happens if no situations exist, but the presence of an output schema likely covers the return structure.

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 input schema has 0 parameters, so there is nothing to document. The description does not need to add parameter semantics. The baseline for 0 parameters is 4, and the description meets this without requiring further elaboration.

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 action ('List') and the resource ('every published situation'), and specifies the output fields (title, category, slug, canonical URLs). This distinguishes it from siblings route_emergency (routing) and get_scenario (single scenario retrieval).

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 alternatives like get_scenario. It does not mention exclusions, prerequisites, or typical use cases. With sibling tools present, such context would be valuable.

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

route_emergencyA
Read-onlyIdempotent

Given a home emergency described in plain words (e.g. "water coming through my ceiling"), returns the matching situation(s): who to call and in what order, first steps, typical costs, and a 24/7 dispatch phone number when one is available for the service vertical. Optionally pass a US state for region-aware dispatch numbers.

ParametersJSON Schema
NameRequiredDescriptionDefault
stateNoOptional US state code or name, e.g. "FL" or "Florida"
problemYesThe user's problem in plain words

Output Schema

ParametersJSON Schema
NameRequiredDescription
noteNo
stateNoUS state code the numbers were matched against
matchesYesMatching situations, best first; empty when no confident match
categoriesNo
triage_urlNo

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already provide readOnlyHint=true, idempotentHint=true, destructiveHint=false, so no contradiction. The description adds valuable behavioral context beyond annotations: it explains the return structure (who to call, order, first steps, costs, dispatch phone) and the conditional availability of 24/7 dispatch numbers. This is informative but does not cover edge cases like unrecognized problems or error handling.

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 two sentences, each earning its place. The first sentence front-loads the core functionality and output, while the second adds the optional parameter nuance. No fluff or redundancy.

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 low complexity (2 params, annotations present, output schema exists), the description covers the essential aspects: input format, output contents, and optional state usage. It does not explain output schema shape (but that is handled by output schema), nor does it address potential failures or multi-match cases. Almost complete for the intended use.

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 100% with basic descriptions for both parameters. The description adds meaningful context for the 'state' parameter, noting it enables region-aware dispatch numbers, which the schema description does not convey. For 'problem', the description restates the schema's intent without adding detail, so the net improvement is moderate but solid.

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: it routes a home emergency by returning matching situations with who to call, order, first steps, costs, and dispatch phone. The verb 'route' is specific and the scope is well-defined. It implicitly distinguishes from siblings (get_scenario, list_scenarios) by focusing on actionable routing rather than simply fetching or listing scenarios.

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 when a user describes a home emergency in plain words, and optionally when a US state is known. However, there is no explicit guidance on when not to use this tool versus alternatives (e.g., get_scenario might be preferred for retrieving a single scenario without dispatch info). The usage context is clear but lacks exclusions or differentiation.

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. 3 tool updatesv1.0.0
    • First observedget_scenario
    • First observedlist_scenarios
    • First observedroute_emergency

TDQS

A4.3/5.0

Scored across 3 tools

Disambiguation5/5

Each tool serves a distinct role: routing from a natural language description, retrieving full details for a specific scenario, and listing all available scenarios. There is no functional overlap.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern using snake_case: route_emergency, get_scenario, list_scenarios. The naming is predictable and intuitive.

Tool Count5/5

With only three tools, the server is tightly scoped to the home emergency reference purpose. Each tool earns its place and the count feels neither sparse nor excessive.

Completeness5/5

The tool surface covers the full workflow: discover available scenarios (list_scenarios), route from a plain-language emergency (route_emergency), and drill into full details (get_scenario). No obvious gaps for the intended use case.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    MCP server for NYC real estate due diligence. Lets Claude query 22+ NYC public-record databases — DOB/HPD/ECB violations, ACRIS deeds, DOF sales, 311 complaints, FDNY incidents, NYPD complaints, marshal evictions, PLUTO, rent stabilization — in plain English.
    18
    7
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    MCP server for Kickserv field service management that enables AI agents to read and manage customers, jobs, and invoices through natural language.
    7
    -