query_medical_facilities
Read-only, idempotent query of MHLW Navii 7,715 hospitals and clinics in 47 prefectures "01"-"47" (API key or x402; daily). Pass prefCode, keyword, or onlyWithWebsite (default onlyWithWebsite=false, limit=50, offset=0); returns facilities ordered by facility code ascending. Note: For hazards, use query_seismic_hazards instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "query_medical_facilities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum medical facility records to return (1 to 250). | |
| offset | No | Zero-based pagination offset (0..10000, default 0). Combine with limit to page through large result sets deterministically. | |
| keyword | No | Hospital/clinic official Japanese or English name keyword filter. | |
| prefCode | No | 2-digit JIS Prefecture Code across all 47 Japanese prefectures ("01" Hokkaido through "47" Okinawa, e.g. "13" for Tokyo, "27" for Osaka). | |
| onlyWithWebsite | No | When true, returns only facilities with a published official website URL. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | MHLW Navii national hospital and clinic directory records across 47 prefectures ordered by institution code ascending. | |
| stats | Yes | Execution telemetry including itemCount, durationMs, and upstream breakdown. | |
| offset | Yes | Zero-based pagination offset applied to the matched record slice. | |
| success | Yes | True when the read-only query completed without upstream or validation failure. | |
| streamId | Yes | Underlying B2A data stream identifier that fulfilled the query. | |
| toolName | Yes | Executed MCP tool name for deterministic audit correlation. | |
| sealStatus | Yes | TAPP Sigstore Rekor cryptographic Merkle seal status of the dataset. | |
| generated_at | Yes | ISO-8601 UTC timestamp when this response payload was generated. | |
| sha256Digest | Yes | Deterministic 64-character hex SHA-256 provenance digest of the returned items. | |
| partialResult | No | True only if a live upstream sub-source returned partial coverage. | |
| returnedCount | Yes | Number of structured records returned in items for this page. |