Skip to main content
Glama

STRATA & TrashPan B2A Public Data, 5.86M JP KYB, 44.2k Domains, EDINET, LEI, OFAC & Golf EV MCP

query_medical_facilities

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
limitNoMaximum medical facility records to return (1 to 250).
offsetNoZero-based pagination offset (0..10000, default 0). Combine with limit to page through large result sets deterministically.
keywordNoHospital/clinic official Japanese or English name keyword filter.
prefCodeNo2-digit JIS Prefecture Code across all 47 Japanese prefectures ("01" Hokkaido through "47" Okinawa, e.g. "13" for Tokyo, "27" for Osaka).
onlyWithWebsiteNoWhen true, returns only facilities with a published official website URL.

Output Schema

NameRequiredDescriptionDefault
itemsYesMHLW Navii national hospital and clinic directory records across 47 prefectures ordered by institution code ascending.
statsYesExecution telemetry including itemCount, durationMs, and upstream breakdown.
offsetYesZero-based pagination offset applied to the matched record slice.
successYesTrue when the read-only query completed without upstream or validation failure.
streamIdYesUnderlying B2A data stream identifier that fulfilled the query.
toolNameYesExecuted MCP tool name for deterministic audit correlation.
sealStatusYesTAPP Sigstore Rekor cryptographic Merkle seal status of the dataset.
generated_atYesISO-8601 UTC timestamp when this response payload was generated.
sha256DigestYesDeterministic 64-character hex SHA-256 provenance digest of the returned items.
partialResultNoTrue only if a live upstream sub-source returned partial coverage.
returnedCountYesNumber of structured records returned in items for this page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/destructive/openWorld, so the bar is lower, yet the description adds real context: the dataset size, an apparent daily refresh, auth options (API key or x402), and ascending-by-facility-code result ordering. The parenthetical '(API key or x402; daily)' is terse enough to be ambiguous about whether it means quota or refresh cadence.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with the scope and filters front-loaded and the sibling pointer last, which is the right order. The compressed auth parenthetical is the only wording that costs clarity without paying it back.

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?

An output schema exists, so return values needn't be spelled out, and pagination/limit semantics live in the schema. What remains thin is the cryptic auth/cadence note; otherwise an agent has everything needed to call this correctly.

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 100%, with defaults, ranges, and the prefCode pattern fully documented, so the description's restatement of defaults adds little. The result-ordering note is useful but is about output, not parameter meaning, so baseline 3 applies.

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?

States a specific verb+resource (read-only query of MHLW Navii hospital/clinic directory), the dataset scale (7,715 facilities across 47 prefectures), and explicitly names the sibling to use for hazards. An agent can distinguish this from query_seismic_hazards without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete invocation guidance ('Pass prefCode, keyword, or onlyWithWebsite') and an explicit exclusion routing hazard lookups elsewhere. It does not state what happens when no filter is passed beyond the default onlyWithWebsite=false, which is a minor gap.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.