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 query of MHLW Navii 7,715 hospitals, JP18, CosIng, and FDA-JP-EU bridge in 47 prefectures. Pass prefCode or keyword (default limit=50, offset=0); returns items ordered by code. Note: For POIs, 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
limitNoMax rows returned.
offsetNoPagination offset.
keywordNoSearch keyword.
prefCodeNo2-digit JIS pref code.
onlyWithWebsiteNoRequire website URL.

Output Schema

NameRequiredDescriptionDefault
itemsNoMHLW/CosIng/FDA items.
successNoExecution status.
streamIdNoB2A stream slug.
sha256DigestNoSHA-256 hex digest.
returnedCountNoReturned rows.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changed
    • changedInput schema / properties / keyword / description
      Previous value: -"Hospital/clinic official Japanese or English name keyword filter."New value: +"Search keyword."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum medical facility records to return (1 to 250)."New value: +"Max rows returned."
    • changedInput schema / properties / offset / description
      Previous value: -"Zero-based pagination offset (0..10000, default 0). Combine with limit to page through large result sets deterministically."New value: +"Pagination offset."
    • changedInput schema / properties / onlyWithWebsite / description
      Previous value: -"When true, returns only facilities with a published official website URL."New value: +"Require website URL."
    • changedInput schema / properties / prefCode / description
      Previous value: -"2-digit JIS Prefecture Code across all 47 Japanese prefectures (\"01\" Hokkaido through \"47\" Okinawa, e.g. \"13\" for Tokyo, \"27\" for Osaka)."New value: +"2-digit JIS pref code."
    • removedOutput schema / properties / generated_at
      Removed value: -{
      -  "description": "ISO-8601 UTC timestamp when this response payload was generated.",
      -  "type": "string"
      -}
    • changedOutput schema / properties / items / description
      Previous value: -"MHLW Navii national hospital and clinic directory records across 47 prefectures ordered by institution code ascending."New value: +"MHLW/CosIng/FDA items."
    • removedOutput schema / properties / items / items
      Removed value: -{
      -  "type": "object"
      -}
    • removedOutput schema / properties / offset
      Removed value: -{
      -  "description": "Zero-based pagination offset applied to the matched record slice.",
      -  "type": "integer"
      -}
    • removedOutput schema / properties / partialResult
      Removed value: -{
      -  "description": "True only if a live upstream sub-source returned partial coverage.",
      -  "type": "boolean"
      -}
    • changedOutput schema / properties / returnedCount / description
      Previous value: -"Number of structured records returned in items for this page."New value: +"Returned rows."
    • removedOutput schema / properties / sealStatus
      Removed value: -{
      -  "description": "TAPP Sigstore Rekor cryptographic Merkle seal status of the dataset.",
      -  "type": "string"
      -}
    • changedOutput schema / properties / sha256Digest / description
      Previous value: -"Deterministic 64-character hex SHA-256 provenance digest of the returned items."New value: +"SHA-256 hex digest."
    • removedOutput schema / properties / stats
      Removed value: -{
      -  "description": "Execution telemetry including itemCount, durationMs, and upstream breakdown.",
      -  "type": "object"
      -}
    • changedOutput schema / properties / streamId / description
      Previous value: -"Underlying B2A data stream identifier that fulfilled the query."New value: +"B2A stream slug."
    • changedOutput schema / properties / success / description
      Previous value: -"True when the read-only query completed without upstream or validation failure."New value: +"Execution status."
    • removedOutput schema / properties / toolName
      Removed value: -{
      -  "description": "Executed MCP tool name for deterministic audit correlation.",
      -  "type": "string"
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "toolName",
      -  "streamId",
      -  "success",
      -  "offset",
      -  "returnedCount",
      -  "sealStatus",
      -  "sha256Digest",
      -  "generated_at",
      -  "items",
      -  "stats"
      -]
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds value beyond that: result ordering by code, default pagination values, and dataset provenance. It omits rate limits and what an unfiltered call returns (presumably all 7,715 rows), which keeps it below a 5.

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?

Two sentences, zero waste, with the core scope front-loaded ahead of the sibling redirect. Nothing is repeated unnecessarily and the note is clearly marked.

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, annotations carry the safety profile, and the schema fully documents parameters, so the description needn't explain return values. It is nearly complete for a filtered-list tool; the only gap is behavior when no filter is passed and any result-size expectations.

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 description coverage is 100%, so the schema already documents all five parameters including defaults, bounds, and the prefCode pattern. The description only reiterates 'prefCode or keyword' and the pagination defaults, adding no syntax or behavioral meaning beyond the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (read-only query of hospitals/clinics) plus concrete scope: 7,715 MHLW Navii facilities across 47 prefectures. The dataset list ('JP18, CosIng, FDA-JP-EU bridge') is somewhat cryptic, but an agent can tell this apart from unrelated siblings like query_securities_filings without opening the 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 explicit invocation guidance ('Pass prefCode or keyword') and names an alternative with a condition ('For POIs, use query_seismic_hazards instead'). It does not state what happens if neither filter is supplied, nor clarify why POI lookups belong elsewhere, so the exclusion is asserted rather than explained.

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.