sih-br-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SIH_DATA_DIR | No | Directory containing pre-built cubes, instead of the cache. | |
| SIH_CACHE_DIR | No | Cache directory for downloaded cubes and tables. | |
| SIH_CUBES_CACHE | No | Set to 'off' to disable caching of cubes (for tests). | |
| SIH_CUBES_BASE_URL | No | Base URL for the cube data channel. | |
| SIH_FRESHNESS_CHECK | No | Set to 'off' to disable freshness checks. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_csap_groupsA | Lista os 19 grupos de Condições Sensíveis à Atenção Primária (CSAP) conforme Portaria MS/SAS 221/2008. Retorna código, nome e códigos CID-10 de cada grupo. |
| list_cid_chaptersA | Lista os 22 capítulos da CID-10 com seus códigos e faixas de diagnóstico. Os cubos de 1992–1997 (diagnóstico em CID-9) trazem |
| get_available_yearsA | Retorna os anos disponíveis nos dados do SIH-SUS carregados e o frescor dos cubos em relação ao espelho healthbr-data ( |
| get_hospitalizationsA | Consulta dados de internações hospitalares do SUS com filtros flexíveis. Permite agregar por múltiplas dimensões (UF, CID, sexo, idade, raça, ano/mês). Raça/cor só existe de 2008 em diante: em 1998–2007 |
| get_hospitalization_trendsA | Retorna séries temporais de internações (mensal ou anual). Útil para análise de tendências e sazonalidade. O ano e o mês são os da INTERNAÇÃO (DT_INTER), não a competência de faturamento; o ano mais recente cresce até a janela dele fechar (AIH faturada com atraso), e o DATASUS reedita arquivos de competências passadas — cada número é a versão do download do espelho. Série desde 1992; em 1992–1997 |
| compare_regionsA | Compara internações entre UFs ou regiões do Brasil. Gera rankings e identifica variações regionais. Em 1992–1997 |
| get_icsapA | Consulta internações por Condições Sensíveis à Atenção Primária (ICSAP). Permite filtros por grupo CSAP, UF, município, sexo, idade e raça. Raça/cor só existe de 2008 em diante: em 1998–2007 |
| get_icsap_indicatorsA | Calcula indicadores de ICSAP: percentual (ICSAP/Total×100). Métricas-chave para avaliar a Atenção Primária. Agrupar por raça só faz sentido de 2008 em diante: em 1998–2007 |
| rank_csap_groupsA | Gera ranking dos 19 grupos CSAP por número de internações, dias de internação ou valor. Identifica principais causas evitáveis. Em 1992–1997 a ICSAP vem de lista CID-9 DERIVADA e não oficial (g03 e g05 não comparáveis com 1998+) e |
| classify_as_csapA | Classifica um ou mais códigos CID-10 como CSAP ou não. Retorna o grupo CSAP correspondente se aplicável. Aceita as duas notações do mesmo código — |
| get_hospitalization_ratesA | Calcula taxas de internação por população. A taxa sai em |
| compare_icsap_trendsA | Análise temporal comparativa de ICSAP entre UFs ou grupos CSAP. Calcula tendências, variação anual e identifica melhores/piores desempenhos. Para |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
The set splits into general hospitalization tools (get_hospitalizations, get_hospitalization_trends, compare_regions, get_hospitalization_rates) and ICSAP-specific tools (get_icsap, get_icsap_indicators, rank_csap_groups, compare_icsap_trends), which is a clear organizing principle, but several pairs overlap in purpose. An agent could easily confuse get_hospitalization_trends with compare_icsap_trends, or compare_regions with compare_icsap_trends, since all three produce regional/temporal comparisons and only the descriptions disambiguate. Descriptions help, but boundaries are soft.
All names follow snake_case verb_noun structure with a small, consistent verb set (get_, list_, compare_, rank_, classify_). The main deviation is the domain prefix being inconsistent (some use 'hospitalization', others 'icsap', and some none), which slightly obscures the pairing, but overall the convention is predictable.
12 tools is squarely in the well-scoped range and each tool earns its place: classification, reference lists, availability metadata, and distinct query/analysis operations. No tool appears redundant enough to be filler at the count level.
The surface covers the domain well: code classification, CSAP group/CID chapter reference, year availability, raw queries, trends, regional comparison, rankings, indicators, and rates. Minor gaps exist (e.g., no dedicated listing of UFs/municipalities or procedure metadata), but agents can work around these via existing filters and get_available_years.