Japan Agent API
Japan JMA warnings, typhoons, volcano levels and municipality code history in English; x402 checks
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"japan-agent-api": {
"url": "https://japan-agent-api-production.mk-career-planning.workers.dev/mcp"
}
}
}远程端点
https://japan-agent-api-production.mk-career-planning.workers.dev/mcpstreamable-http它能做什么
工具清单
工具(8)
🟢catalog
List the tools of this server with prices, data sources, licensing, daily limits and data freshness.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"server": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"stage": {
"type": "string"
}
},
"required": [
"name",
"version",
"stage"
],
"additionalProperties": {}
},
"payment": {
"type": "object",
"properties": {
"protocol": {
"type": "string"
},
"network": {
"type": "string"
},
"asset": {
"type": "string"
},
"enabled": {
"type": "boolean"
}
},
"required": [
"protocol",
"network",
"asset",
"enabled"
],
"additionalProperties": {}
},
"daily_limits": {
"type": "object",
"properties": {},
"additionalProperties": {},
"description": "Daily limits of paid calls (calls, usd, timezone) or a misconfiguration notice."
},
"paused": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "boolean"
},
"description": "Operator pause flags (true = paused)."
},
"tools": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"price_usd": {
"type": "number",
"description": "Price per call in USD (0 = free)."
},
"description": {
"type": "string"
}
},
"required": [
"name",
"price_usd",
"description"
],
"additionalProperties": {}
},
"description": "Every tool of this server with its price."
},
"legal": {
"type": "object",
"properties": {},
"additionalProperties": {}
},
"fetch_status_values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"provenance": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "object",
"properties": {
"publisher": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"publisher",
"url"
],
"additionalProperties": {},
"description": "Publisher and URL of the upstream document or dataset."
},
"upstream_updated_at": {
"description": "Update time stated by the upstream, or null when it states none.",
"type": [
"string",
"null"
]
},
"retrieved_at": {
"description": "When this service retrieved the upstream data (null if unknown).",
"type": [
"string",
"null"
]
},
"content_sha256": {
"type": [
"string",
"null"
]
},
"parser_version": {
"type": "string"
},
"fetch_status": {
"type": "string",
"enum": [
"found",
"empty",
"stale",
"unavailable",
"unsupported"
],
"description": "found / empty / stale / unavailable / unsupported (see catalog fetch_status_values)."
},
"processed_by": {
"type": "string"
}
},
"required": [
"source",
"upstream_updated_at",
"retrieved_at",
"content_sha256",
"parser_version",
"fetch_status",
"processed_by"
],
"additionalProperties": {},
"description": "Freshness receipt for one upstream source."
},
"description": "Freshness receipts for every upstream source used."
},
"terms": {
"type": "string",
"description": "URL of the terms of service."
}
},
"required": [
"server",
"payment",
"daily_limits",
"paused",
"tools",
"legal",
"terms"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢jp_warnings(prefecture, include_municipalities)
Which JMA weather emergency warnings, warnings and advisories are in effect in this Japanese prefecture now? Structured JSON in English and Japanese (type, level, status, areas with JMA's English names, issued_at, source URL). Relay only; no independent forecast.
输入模式
{
"type": "object",
"properties": {
"prefecture": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"description": "Japanese prefecture: English name (e.g. \"Tokyo\", \"Osaka\", \"Hokkaido\"; \"Tokyo-to\" and \"Osaka Prefecture\" also work), Japanese name in kanji, or JIS code \"01\"..\"47\"."
},
"include_municipalities": {
"description": "Also list every municipality (Japanese and English names) per warning. Default false.",
"type": "boolean"
}
},
"required": [
"prefecture"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"prefecture": {
"type": "object",
"properties": {
"jis": {
"type": "string"
},
"en": {
"type": "string"
},
"ja": {
"type": "string"
}
},
"required": [
"jis",
"en",
"ja"
],
"additionalProperties": {}
},
"region": {
"anyOf": [
{
"type": "object",
"properties": {
"code": {
"type": "string"
},
"en": {
"type": "string"
},
"ja": {
"type": "string"
}
},
"required": [
"code",
"en",
"ja"
],
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"forecast_areas": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"en": {
"type": "string"
},
"ja": {
"type": "string"
}
},
"required": [
"code",
"en",
"ja"
],
"additionalProperties": {}
}
},
"coverage": {
"type": "string",
"enum": [
"complete",
"partial",
"unknown"
],
"description": "complete = the current status of every forecast area was confirmed (JMA XML bulletin or JMA website current-status data); partial = some not confirmed; unknown = none confirmed (see missing_offices; not 'no warnings')."
},
"missing_offices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"office_code": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"office_code",
"reason"
],
"additionalProperties": {}
}
},
"counts": {
"type": "object",
"properties": {
"emergency": {
"type": "number"
},
"warning": {
"type": "number"
},
"advisory": {
"type": "number"
}
},
"required": [
"emergency",
"warning",
"advisory"
],
"additionalProperties": {}
},
"danger_notice": {
"type": "boolean"
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"office_code": {
"type": "string"
},
"issued_at": {
"type": "string"
},
"source_url": {
"type": "string"
}
},
"required": [
"office_code",
"issued_at",
"source_url"
],
"additionalProperties": {}
},
"description": "Warnings and advisories in effect (type, level, status, areas)."
},
"lifted_in_latest_bulletin": {
"type": "array",
"items": {
"type": "object",
"properties": {},
"additionalProperties": {}
}
},
"bulletins": {
"type": "array",
"items": {
"type": "object",
"properties": {},
"additionalProperties": {}
}
},
"provenance": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "object",
"properties": {
"publisher": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"publisher",
"url"
],
"additionalProperties": {},
"description": "Publisher and URL of the upstream document or dataset."
},
"upstream_updated_at": {
"description": "Update time stated by the upstream, or null when it states none.",
"type": [
"string",
"null"
]
},
"retrieved_at": {
"description": "When this service retrieved the upstream data (null if unknown).",
"type": [
"string",
"null"
]
},
"content_sha256": {
"type": [
"string",
"null"
]
},
"parser_version": {
"type": "string"
},
"fetch_status": {
"type": "string",
"enum": [
"found",
"empty",
"stale",
"unavailable",
"unsupported"
],
"description": "found / empty / stale / unavailable / unsupported (see catalog fetch_status_values)."
},
"processed_by": {
"type": "string"
}
},
"required": [
"source",
"upstream_updated_at",
"retrieved_at",
"content_sha256",
"parser_version",
"fetch_status",
"processed_by"
],
"additionalProperties": {},
"description": "Freshness receipt for one upstream source."
},
"description": "Freshness receipts for every upstream source used."
},
"source": {
"type": "string",
"description": "Data source and processor."
},
"retrieved_at": {
"type": "string",
"description": "When the upstream data was retrieved (ISO 8601)."
},
"responded_at": {
"type": "string"
},
"license_note": {
"type": "string"
},
"terms": {
"type": "string",
"description": "URL of the terms of service."
}
},
"required": [
"prefecture",
"region",
"forecast_areas",
"coverage",
"missing_offices",
"counts",
"danger_notice",
"warnings",
"lifted_in_latest_bulletin",
"bulletins",
"provenance",
"source",
"retrieved_at",
"responded_at",
"license_note",
"terms"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢jp_typhoons
Which typhoons is JMA issuing bulletins for right now, and what do the bulletins forecast? Number, name, center position, central pressure, maximum wind, issue time, and forecast-circle centers, radii and times, relayed as structured JSON from JMA bulletins (VPTW60-65). No independent forecast, interpolation or track extension.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"listed",
"none_in_checked_sources",
"partial",
"unknown"
],
"description": "listed = JMA is issuing typhoon bulletins; none_in_checked_sources = none in the checked feeds; partial/unknown = some or all could not be checked."
},
"count": {
"type": "number"
},
"typhoons": {
"type": "array",
"items": {
"type": "object",
"properties": {
"slot": {
"type": "string"
},
"issued_at": {
"type": "string"
},
"source_url": {
"type": "string"
}
},
"required": [
"slot",
"issued_at",
"source_url"
],
"additionalProperties": {}
}
},
"ended": {
"type": "array",
"items": {
"type": "object",
"properties": {},
"additionalProperties": {}
}
},
"unchecked": {
"type": "array",
"items": {
"type": "object",
"properties": {
"slot": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"slot",
"reason"
],
"additionalProperties": {}
}
},
"checked_sources": {
"type": "array",
"items": {
"type": "object",
"properties": {},
"additionalProperties": {}
}
},
"note": {
"type": "string"
},
"provenance": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "object",
"properties": {
"publisher": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"publisher",
"url"
],
"additionalProperties": {},
"description": "Publisher and URL of the upstream document or dataset."
},
"upstream_updated_at": {
"description": "Update time stated by the upstream, or null when it states none.",
"type": [
"string",
"null"
]
},
"retrieved_at": {
"description": "When this service retrieved the upstream data (null if unknown).",
"type": [
"string",
"null"
]
},
"content_sha256": {
"type": [
"string",
"null"
]
},
"parser_version": {
"type": "string"
},
"fetch_status": {
"type": "string",
"enum": [
"found",
"empty",
"stale",
"unavailable",
"unsupported"
],
"description": "found / empty / stale / unavailable / unsupported (see catalog fetch_status_values)."
},
"processed_by": {
"type": "string"
}
},
"required": [
"source",
"upstream_updated_at",
"retrieved_at",
"content_sha256",
"parser_version",
"fetch_status",
"processed_by"
],
"additionalProperties": {},
"description": "Freshness receipt for one upstream source."
},
"description": "Freshness receipts for every upstream source used."
},
"source": {
"type": "string",
"description": "Data source and processor."
},
"retrieved_at": {
"type": "string",
"description": "When the upstream data was retrieved (ISO 8601)."
},
"responded_at": {
"type": "string"
},
"license_note": {
"type": "string"
},
"terms": {
"type": "string",
"description": "URL of the terms of service."
}
},
"required": [
"status",
"count",
"typhoons",
"ended",
"unchecked",
"checked_sources",
"note",
"provenance",
"source",
"retrieved_at",
"responded_at",
"license_note",
"terms"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢jp_volcanoes(volcano)
What is the current JMA Volcanic Alert Level (1-5, or warning kind) of this volcano or of every JMA-monitored volcano? Name in English or Japanese, or 3-digit JMA code. Returns JMA English and Japanese names, level, previous level and change, issue time, prefectures named in JMA bulletins, source URL and freshness receipt. Relay only; no forecast or interpretation. Gaps filled from JMA website lists (newer wins). No JMA source seen = not_seen_in_checked_feeds, never assumed level 1.
输入模式
{
"type": "object",
"properties": {
"volcano": {
"description": "Optional. JMA volcano name in English (e.g. \"Sakurajima\", \"Asamayama\") or Japanese (e.g. \"桜島\"), or the 3-digit JMA volcano code (e.g. \"506\"). Omit to list all volcanoes.",
"type": "string",
"minLength": 1,
"maxLength": 60
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"coverage": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"complete",
"partial"
]
},
"tracking_since": {
"type": "string"
},
"volcanoes_total": {
"type": "number"
},
"volcanoes_listed": {
"type": "number"
},
"volcanoes_not_seen": {
"type": "number"
}
},
"required": [
"status",
"tracking_since",
"volcanoes_total",
"volcanoes_listed",
"volcanoes_not_seen"
],
"additionalProperties": {},
"description": "complete = every volcano has a usable state (from an XML bulletin, warning.json or the monthly national summary) and no bulletin is pending or failed."
},
"count": {
"type": "number"
},
"volcanoes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "3-digit JMA volcano code."
},
"name": {
"type": "object",
"properties": {
"ja": {
"type": "string"
},
"en": {
"type": "string"
}
},
"required": [
"ja",
"en"
],
"additionalProperties": {}
},
"status": {
"type": "string",
"enum": [
"listed",
"not_seen_in_checked_feeds",
"unavailable"
]
},
"alert_level": {
"description": "Volcanic Alert Level 1-5, or null for volcanoes without levels.",
"type": [
"number",
"null"
]
},
"issued_at": {
"type": [
"string",
"null"
]
},
"source_url": {
"type": [
"string",
"null"
]
},
"provenance": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "object",
"properties": {
"publisher": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"publisher",
"url"
],
"additionalProperties": {},
"description": "Publisher and URL of the upstream document or dataset."
},
"upstream_updated_at": {
"description": "Update time stated by the upstream, or null when it states none.",
"type": [
"string",
"null"
]
},
"retrieved_at": {
"description": "When this service retrieved the upstream data (null if unknown).",
"type": [
"string",
"null"
]
},
"content_sha256": {
"type": [
"string",
"null"
]
},
"parser_version": {
"type": "string"
},
"fetch_status": {
"type": "string",
"enum": [
"found",
"empty",
"stale",
"unavailable",
"unsupported"
],
"description": "found / empty / stale / unavailable / unsupported (see catalog fetch_status_values)."
},
"processed_by": {
"type": "string"
}
},
"required": [
"source",
"upstream_updated_at",
"retrieved_at",
"content_sha256",
"parser_version",
"fetch_status",
"processed_by"
],
"additionalProperties": {},
"description": "Freshness receipt for one upstream source."
},
"description": "Freshness receipts for every upstream source used."
}
},
"required": [
"code",
"name",
"status",
"alert_level",
"issued_at",
"source_url",
"provenance"
],
"additionalProperties": {}
},
"description": "One entry per volcano."
},
"note": {
"type": "string"
},
"provenance": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "object",
"properties": {
"publisher": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"publisher",
"url"
],
"additionalProperties": {},
"description": "Publisher and URL of the upstream document or dataset."
},
"upstream_updated_at": {
"description": "Update time stated by the upstream, or null when it states none.",
"type": [
"string",
"null"
]
},
"retrieved_at": {
"description": "When this service retrieved the upstream data (null if unknown).",
"type": [
"string",
"null"
]
},
"content_sha256": {
"type": [
"string",
"null"
]
},
"parser_version": {
"type": "string"
},
"fetch_status": {
"type": "string",
"enum": [
"found",
"empty",
"stale",
"unavailable",
"unsupported"
],
"description": "found / empty / stale / unavailable / unsupported (see catalog fetch_status_values)."
},
"processed_by": {
"type": "string"
}
},
"required": [
"source",
"upstream_updated_at",
"retrieved_at",
"content_sha256",
"parser_version",
"fetch_status",
"processed_by"
],
"additionalProperties": {},
"description": "Freshness receipt for one upstream source."
},
"description": "Freshness receipts for every upstream source used."
},
"source": {
"type": "string",
"description": "Data source and processor."
},
"retrieved_at": {
"type": "string",
"description": "When the upstream data was retrieved (ISO 8601)."
},
"responded_at": {
"type": "string"
},
"license_note": {
"type": "string"
},
"terms": {
"type": "string",
"description": "URL of the terms of service."
}
},
"required": [
"coverage",
"count",
"volcanoes",
"note",
"provenance",
"source",
"retrieved_at",
"responded_at",
"license_note",
"terms"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢jp_municipality(code, prefecture, name, as_of)
Which code does this Japanese municipality have on a date (default today)? Give a 5/6-digit code, or prefecture and name (old names OK). Returns status mapped / split_candidates / unknown / invalid, the valid code with English and Japanese names, change type and date (merger, incorporation, division, designated city, name change), confirmed JMA warning areas only, and J-LIS convenience-store certificate availability for 8 certificate types. Facts only, from e-Stat LOD (CC BY 4.0) and J-LIS.
输入模式
{
"type": "object",
"properties": {
"code": {
"description": "Municipality code: 5 digits, or 6 digits including the check digit (e.g. 22131 or 221317).",
"type": "string",
"minLength": 5,
"maxLength": 8
},
"prefecture": {
"description": "Japanese prefecture: English name (e.g. \"Tokyo\", \"Osaka\", \"Hokkaido\"; \"Tokyo-to\" and \"Osaka Prefecture\" also work), Japanese name in kanji, or JIS code \"01\"..\"47\". Use with name.",
"type": "string",
"minLength": 1,
"maxLength": 40
},
"name": {
"description": "Municipality or ward name in Japanese (old names accepted; a ward may be prefixed with its city) or its e-Stat English name (e.g. \"Naka-ku\", \"Hamamatsu-shi\"). Use with prefecture.",
"type": "string",
"minLength": 1,
"maxLength": 40
},
"as_of": {
"description": "YYYY-MM-DD. The date the answer is for (default: today in Japan time).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"input": {
"type": "object",
"properties": {
"as_of": {
"type": "string"
}
},
"required": [
"as_of"
],
"additionalProperties": {},
"description": "The query as understood (code or prefecture and name, and as_of)."
},
"status": {
"type": "string",
"enum": [
"mapped",
"split_candidates",
"unknown",
"invalid"
],
"description": "mapped / split_candidates / unknown / invalid."
},
"as_of": {
"type": "string"
},
"as_of_codes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"jma_area": {
"type": "object",
"properties": {},
"additionalProperties": {}
},
"convenience_store_certificates": {
"type": "object",
"properties": {
"status": {
"type": "string"
}
},
"required": [
"status"
],
"additionalProperties": {}
}
},
"required": [
"code",
"jma_area",
"convenience_store_certificates"
],
"additionalProperties": {}
},
"description": "Codes valid on as_of, with names, JMA area and J-LIS certificate availability."
},
"changes": {
"type": "array",
"items": {
"type": "object",
"properties": {},
"additionalProperties": {}
}
},
"national_rules": {},
"out_of_scope": {
"type": "array",
"items": {
"type": "string"
}
},
"status_values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"disclaimer": {
"type": "string"
},
"checked_scope": {
"type": "string"
},
"source": {
"type": "string"
},
"license_note": {
"type": "string"
},
"provenance": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "object",
"properties": {
"publisher": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"publisher",
"url"
],
"additionalProperties": {},
"description": "Publisher and URL of the upstream document or dataset."
},
"upstream_updated_at": {
"description": "Update time stated by the upstream, or null when it states none.",
"type": [
"string",
"null"
]
},
"retrieved_at": {
"description": "When this service retrieved the upstream data (null if unknown).",
"type": [
"string",
"null"
]
},
"content_sha256": {
"type": [
"string",
"null"
]
},
"parser_version": {
"type": "string"
},
"fetch_status": {
"type": "string",
"enum": [
"found",
"empty",
"stale",
"unavailable",
"unsupported"
],
"description": "found / empty / stale / unavailable / unsupported (see catalog fetch_status_values)."
},
"processed_by": {
"type": "string"
}
},
"required": [
"source",
"upstream_updated_at",
"retrieved_at",
"content_sha256",
"parser_version",
"fetch_status",
"processed_by"
],
"additionalProperties": {},
"description": "Freshness receipt for one upstream source."
},
"description": "Freshness receipts for every upstream source used."
},
"retrieved_at": {
"type": [
"string",
"null"
]
},
"responded_at": {
"type": "string"
},
"terms": {
"type": "string",
"description": "URL of the terms of service."
}
},
"required": [
"input",
"status",
"as_of",
"as_of_codes",
"changes",
"national_rules",
"out_of_scope",
"status_values",
"disclaimer",
"checked_scope",
"source",
"license_note",
"provenance",
"retrieved_at",
"responded_at",
"terms"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢get_receipt(receipt_id)
Re-fetch the stored result of a settled paid call (e.g. jp_trip_impact_check) by its receipt_id, for when the response was lost after payment. Free. Unknown or unsettled receipt ids return RECEIPT_NOT_FOUND. Results are kept for 90 days after settlement.
输入模式
{
"type": "object",
"properties": {
"receipt_id": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "The receipt_id returned with a paid result (\"rcpt_\" + 64 hex characters)."
}
},
"required": [
"receipt_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"receipt_id": {
"type": "string",
"description": "Receipt id of the settled paid call (\"rcpt_\" + 64 hex). Use with get_receipt."
},
"tool": {
"type": "string",
"description": "Name of the paid tool that produced the result."
},
"settled_at": {
"type": [
"string",
"null"
]
},
"payment": {
"type": "object",
"properties": {
"network": {
"type": [
"string",
"null"
]
},
"transaction": {
"type": [
"string",
"null"
]
}
},
"required": [
"network",
"transaction"
],
"additionalProperties": {}
},
"result": {
"description": "The stored result, exactly as returned by the paid call."
},
"provenance": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "object",
"properties": {
"publisher": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"publisher",
"url"
],
"additionalProperties": {},
"description": "Publisher and URL of the upstream document or dataset."
},
"upstream_updated_at": {
"description": "Update time stated by the upstream, or null when it states none.",
"type": [
"string",
"null"
]
},
"retrieved_at": {
"description": "When this service retrieved the upstream data (null if unknown).",
"type": [
"string",
"null"
]
},
"content_sha256": {
"type": [
"string",
"null"
]
},
"parser_version": {
"type": "string"
},
"fetch_status": {
"type": "string",
"enum": [
"found",
"empty",
"stale",
"unavailable",
"unsupported"
],
"description": "found / empty / stale / unavailable / unsupported (see catalog fetch_status_values)."
},
"processed_by": {
"type": "string"
}
},
"required": [
"source",
"upstream_updated_at",
"retrieved_at",
"content_sha256",
"parser_version",
"fetch_status",
"processed_by"
],
"additionalProperties": {},
"description": "Freshness receipt for one upstream source."
},
"description": "Freshness receipts for every upstream source used."
},
"terms": {
"type": "string",
"description": "URL of the terms of service."
}
},
"required": [
"receipt_id",
"tool",
"settled_at",
"payment",
"result",
"provenance",
"terms"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢jp_trip_impact_check(itinerary)
Does a JMA warning or advisory in effect now match a stop on this Japan itinerary [{date, prefecture}]? Per stop: matched_advisory (with severity), no_match_in_checked_sources (NOT a statement of no impact) or unknown (data missing, or date not today/tomorrow JST). Returns checked sources and areas, unchecked areas, issued_at, retrieved_at, and current JMA typhoon/volcano bulletins (listed, not matched). No forecast. Retrying with the same payment is not charged; use receipt_id with get_receipt.
输入模式
{
"type": "object",
"properties": {
"itinerary": {
"minItems": 1,
"maxItems": 14,
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "YYYY-MM-DD in Japan time"
},
"prefecture": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"description": "Japanese prefecture: English name (e.g. \"Tokyo\", \"Osaka\", \"Hokkaido\"; \"Tokyo-to\" and \"Osaka Prefecture\" also work), Japanese name in kanji, or JIS code \"01\"..\"47\"."
}
},
"required": [
"date",
"prefecture"
]
},
"description": "1 to 14 stops {date, prefecture}, in travel order. Only stops dated today or tomorrow (Japan time) can be matched; others return unknown, but typhoon and volcano bulletins currently in effect are still listed (not matched)."
}
},
"required": [
"itinerary"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"description": "Either the paid result (with receipt_id) or, with isError true, the x402 PaymentRequired to pay and retry.",
"anyOf": [
{
"type": "object",
"properties": {
"receipt_id": {
"type": "string",
"description": "Receipt id of the settled paid call (\"rcpt_\" + 64 hex). Use with get_receipt."
},
"checked_at_jst_date": {
"type": "string"
},
"summary": {
"type": "object",
"properties": {
"matched_advisory": {
"type": "number"
},
"no_match_in_checked_sources": {
"type": "number"
},
"unknown": {
"type": "number"
}
},
"required": [
"matched_advisory",
"no_match_in_checked_sources",
"unknown"
],
"additionalProperties": {}
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string"
},
"prefecture": {
"type": "object",
"properties": {
"input": {
"type": "string"
}
},
"required": [
"input"
],
"additionalProperties": {}
},
"impact": {
"type": "string",
"enum": [
"matched_advisory",
"no_match_in_checked_sources",
"unknown"
],
"description": "matched_advisory / no_match_in_checked_sources (NOT a statement of no impact) / unknown."
},
"severity": {
"anyOf": [
{
"type": "string",
"enum": [
"emergency",
"warning",
"advisory"
]
},
{
"type": "null"
}
]
},
"typhoon": {
"type": "string",
"enum": [
"bulletin_listed_not_matched",
"no_bulletin_in_checked_sources",
"not_checked",
"unknown"
]
},
"issued_at": {
"type": [
"string",
"null"
]
},
"retrieved_at": {
"type": [
"string",
"null"
]
},
"checked_sources": {
"type": "array",
"items": {
"type": "object",
"properties": {},
"additionalProperties": {}
}
},
"checked_areas": {
"type": "array",
"items": {
"type": "object",
"properties": {},
"additionalProperties": {}
}
},
"unchecked_areas": {
"type": "array",
"items": {
"type": "object",
"properties": {},
"additionalProperties": {}
}
},
"provenance": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "object",
"properties": {
"publisher": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"publisher",
"url"
],
"additionalProperties": {},
"description": "Publisher and URL of the upstream document or dataset."
},
"upstream_updated_at": {
"description": "Update time stated by the upstream, or null when it states none.",
"type": [
"string",
"null"
]
},
"retrieved_at": {
"description": "When this service retrieved the upstream data (null if unknown).",
"type": [
"string",
"null"
]
},
"content_sha256": {
"type": [
"string",
"null"
]
},
"parser_version": {
"type": "string"
},
"fetch_status": {
"type": "string",
"enum": [
"found",
"empty",
"stale",
"unavailable",
"unsupported"
],
"description": "found / empty / stale / unavailable / unsupported (see catalog fetch_status_values)."
},
"processed_by": {
"type": "string"
}
},
"required": [
"source",
"upstream_updated_at",
"retrieved_at",
"content_sha256",
"parser_version",
"fetch_status",
"processed_by"
],
"additionalProperties": {},
"description": "Freshness receipt for one upstream source."
},
"description": "Freshness receipts for every upstream source used."
}
},
"required": [
"date",
"prefecture",
"impact",
"severity",
"typhoon",
"issued_at",
"retrieved_at",
"checked_sources",
"checked_areas",
"unchecked_areas",
"provenance"
],
"additionalProperties": {}
},
"description": "One result per itinerary stop, in order."
},
"related_bulletins": {
"type": "object",
"properties": {
"typhoon_status": {
"type": "string",
"enum": [
"bulletin_listed_not_matched",
"no_bulletin_in_checked_sources",
"not_checked",
"unknown"
]
},
"typhoons": {
"type": "array",
"items": {
"type": "object",
"properties": {},
"additionalProperties": {}
}
},
"matched_against_stops": {
"type": "boolean"
},
"volcano_status": {
"type": "string",
"enum": [
"bulletin_listed_not_matched",
"no_alert_in_checked_sources",
"not_checked",
"unknown"
]
},
"volcanoes": {
"type": "array",
"items": {
"type": "object",
"properties": {},
"additionalProperties": {}
}
},
"volcano_matched_against_stops": {
"type": "boolean"
}
},
"required": [
"typhoon_status",
"typhoons",
"matched_against_stops",
"volcano_status",
"volcanoes",
"volcano_matched_against_stops"
],
"additionalProperties": {}
},
"rules": {},
"not_covered": {},
"disclaimer": {
"type": "string"
},
"provenance": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "object",
"properties": {
"publisher": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"publisher",
"url"
],
"additionalProperties": {},
"description": "Publisher and URL of the upstream document or dataset."
},
"upstream_updated_at": {
"description": "Update time stated by the upstream, or null when it states none.",
"type": [
"string",
"null"
]
},
"retrieved_at": {
"description": "When this service retrieved the upstream data (null if unknown).",
"type": [
"string",
"null"
]
},
"content_sha256": {
"type": [
"string",
"null"
]
},
"parser_version": {
"type": "string"
},
"fetch_status": {
"type": "string",
"enum": [
"found",
"empty",
"stale",
"unavailable",
"unsupported"
],
"description": "found / empty / stale / unavailable / unsupported (see catalog fetch_status_values)."
},
"processed_by": {
"type": "string"
}
},
"required": [
"source",
"upstream_updated_at",
"retrieved_at",
"content_sha256",
"parser_version",
"fetch_status",
"processed_by"
],
"additionalProperties": {},
"description": "Freshness receipt for one upstream source."
},
"description": "Freshness receipts for every upstream source used."
},
"source": {
"type": "string",
"description": "Data source and processor."
},
"retrieved_at": {
"type": "string",
"description": "When the upstream data was retrieved (ISO 8601)."
},
"responded_at": {
"type": "string"
},
"license_note": {
"type": "string"
},
"terms": {
"type": "string",
"description": "URL of the terms of service."
}
},
"required": [
"receipt_id",
"checked_at_jst_date",
"summary",
"results",
"related_bulletins",
"rules",
"not_covered",
"disclaimer",
"provenance",
"source",
"retrieved_at",
"responded_at",
"license_note",
"terms"
],
"additionalProperties": {}
},
{
"type": "object",
"properties": {
"x402Version": {
"type": "number"
},
"error": {
"type": "string"
},
"resource": {
"type": "object",
"properties": {
"url": {
"type": "string"
}
},
"required": [
"url"
],
"additionalProperties": {}
},
"accepts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"scheme": {
"type": "string"
},
"network": {
"type": "string"
}
},
"required": [
"scheme",
"network"
],
"additionalProperties": {}
},
"description": "Payment options (x402 v2 PaymentRequirements)."
}
},
"required": [
"x402Version",
"accepts"
],
"additionalProperties": {},
"description": "x402 PaymentRequired (returned with isError true when payment is required or was not accepted)."
}
]
}🟢jp_municipality_batch(items, as_of)
Which codes are valid on a date for up to 50 Japanese municipalities? e-Stat LOD change history (CC BY 4.0): status mapped / split_candidates (all successors, not apportioned) / unknown / invalid, the code valid on as_of with English and Japanese names, change type and date, confirmed JMA warning areas only, and J-LIS convenience-store certificate availability (available / not_listed / unknown). Facts only; no document preparation or legal advice. Retrying with the same payment is not charged.
输入模式
{
"type": "object",
"properties": {
"items": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"description": "Municipality code: 5 digits, or 6 digits including the check digit (e.g. 22131 or 221317).",
"type": "string",
"minLength": 5,
"maxLength": 8
},
"prefecture": {
"description": "Japanese prefecture: English name (e.g. \"Tokyo\", \"Osaka\", \"Hokkaido\"; \"Tokyo-to\" and \"Osaka Prefecture\" also work), Japanese name in kanji, or JIS code \"01\"..\"47\". Use with name.",
"type": "string",
"minLength": 1,
"maxLength": 40
},
"name": {
"description": "Municipality or ward name in Japanese (old names accepted; a ward may be prefixed with its city) or its e-Stat English name (e.g. \"Naka-ku\", \"Hamamatsu-shi\"). Use with prefecture.",
"type": "string",
"minLength": 1,
"maxLength": 40
},
"as_of": {
"description": "YYYY-MM-DD. The date the answer is for (default: today in Japan time).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
}
},
"description": "1 to 50 lookups; each gives code, or prefecture and name."
},
"as_of": {
"description": "Default as_of for items that do not set their own.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
},
"required": [
"items"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"description": "Either the paid result (with receipt_id) or, with isError true, the x402 PaymentRequired to pay and retry.",
"anyOf": [
{
"type": "object",
"properties": {
"receipt_id": {
"type": "string",
"description": "Receipt id of the settled paid call (\"rcpt_\" + 64 hex). Use with get_receipt."
},
"count": {
"type": "number"
},
"summary": {
"type": "object",
"properties": {
"mapped": {
"type": "number"
},
"split_candidates": {
"type": "number"
},
"unknown": {
"type": "number"
},
"invalid": {
"type": "number"
}
},
"required": [
"mapped",
"split_candidates",
"unknown",
"invalid"
],
"additionalProperties": {}
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"input": {
"type": "object",
"properties": {
"as_of": {
"type": "string"
}
},
"required": [
"as_of"
],
"additionalProperties": {},
"description": "The query as understood (code or prefecture and name, and as_of)."
},
"status": {
"type": "string",
"enum": [
"mapped",
"split_candidates",
"unknown",
"invalid"
],
"description": "mapped / split_candidates / unknown / invalid."
},
"as_of": {
"type": "string"
},
"as_of_codes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"jma_area": {
"type": "object",
"properties": {},
"additionalProperties": {}
},
"convenience_store_certificates": {
"type": "object",
"properties": {
"status": {
"type": "string"
}
},
"required": [
"status"
],
"additionalProperties": {}
}
},
"required": [
"code",
"jma_area",
"convenience_store_certificates"
],
"additionalProperties": {}
},
"description": "Codes valid on as_of, with names, JMA area and J-LIS certificate availability."
},
"changes": {
"type": "array",
"items": {
"type": "object",
"properties": {},
"additionalProperties": {}
}
}
},
"required": [
"input",
"status",
"as_of",
"as_of_codes",
"changes"
],
"additionalProperties": {}
},
"description": "One result per item, in input order."
},
"national_rules": {},
"out_of_scope": {
"type": "array",
"items": {
"type": "string"
}
},
"status_values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"disclaimer": {
"type": "string"
},
"checked_scope": {
"type": "string"
},
"source": {
"type": "string"
},
"license_note": {
"type": "string"
},
"provenance": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "object",
"properties": {
"publisher": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"publisher",
"url"
],
"additionalProperties": {},
"description": "Publisher and URL of the upstream document or dataset."
},
"upstream_updated_at": {
"description": "Update time stated by the upstream, or null when it states none.",
"type": [
"string",
"null"
]
},
"retrieved_at": {
"description": "When this service retrieved the upstream data (null if unknown).",
"type": [
"string",
"null"
]
},
"content_sha256": {
"type": [
"string",
"null"
]
},
"parser_version": {
"type": "string"
},
"fetch_status": {
"type": "string",
"enum": [
"found",
"empty",
"stale",
"unavailable",
"unsupported"
],
"description": "found / empty / stale / unavailable / unsupported (see catalog fetch_status_values)."
},
"processed_by": {
"type": "string"
}
},
"required": [
"source",
"upstream_updated_at",
"retrieved_at",
"content_sha256",
"parser_version",
"fetch_status",
"processed_by"
],
"additionalProperties": {},
"description": "Freshness receipt for one upstream source."
},
"description": "Freshness receipts for every upstream source used."
},
"retrieved_at": {
"type": [
"string",
"null"
]
},
"responded_at": {
"type": "string"
},
"terms": {
"type": "string",
"description": "URL of the terms of service."
}
},
"required": [
"receipt_id",
"count",
"summary",
"results",
"national_rules",
"out_of_scope",
"status_values",
"disclaimer",
"checked_scope",
"source",
"license_note",
"provenance",
"retrieved_at",
"responded_at",
"terms"
],
"additionalProperties": {}
},
{
"type": "object",
"properties": {
"x402Version": {
"type": "number"
},
"error": {
"type": "string"
},
"resource": {
"type": "object",
"properties": {
"url": {
"type": "string"
}
},
"required": [
"url"
],
"additionalProperties": {}
},
"accepts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"scheme": {
"type": "string"
},
"network": {
"type": "string"
}
},
"required": [
"scheme",
"network"
],
"additionalProperties": {}
},
"description": "Payment options (x402 v2 PaymentRequirements)."
}
},
"required": [
"x402Version",
"accepts"
],
"additionalProperties": {},
"description": "x402 PaymentRequired (returned with isError true when payment is required or was not accepted)."
}
]
}社区
证据