Japan grants and subsidies (central J-Grants + 1,916 municipalities)
Full LLM thinking from the 4-phase benchmark pipeline.
{
"service_type": "rest_api",
"base_url": "https://localgov.jp",
"auth_method": "none",
"auth_config": {},
"endpoints": [
{
"path": "/api/grants/search",
"method": "GET",
"purpose": "横断検索: 補助金をキーワード・都道府県・市町村コード等で検索",
"params": {
"keyword": {"type": "string", "required": false},
"prefecture": {"type": "string", "required": false},
"municipality_code": {"type": "string", "required": false},
"open_only": {"type": "boolean", "required": false},
"min_amount": {"type": "integer", "required": false},
"sort": {"type": "string", "required": false},
"limit": {"type": "integer", "required": false},
"offset": {"type": "integer", "required": false}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/api/grants/{id}",
"method": "GET",
"purpose": "個別補助金の詳細を取得 (JSON または Markdown)",
"params": {
"id": {"type": "string", "required": true},
"Accept": {"type": "string", "required": false}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/api/grants/match",
"method": "POST",
"purpose": "事業者プロファイルからマッチする補助金を提案",
"params": {
"query": {"type": "string", "required": true},
"prefecture": {"type": "string", "required": false},
"municipality_code": {"type": "string", "required": false},
"limit": {"type": "integer", "required": false}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/api/local/{code}/grants",
"method": "GET",
"purpose": "指定市町村の補助金一覧",
"params": {
"code": {"type": "string", "required": true}
},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/export/grants",
"method": "POST",
"purpose": "バルクエクスポート (x402 課金 $0.10 USDC on Base)",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/health",
"method": "GET",
"purpose": "ヘルスチェック",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/health/status",
"method": "GET",
"purpose": "集計status (カウント・predicate)",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/furusato/search",
"method": "GET",
"purpose": "ふるさと納税 返礼品の横断検索",
"params": {
"keyword": {"type": "string", "required": false},
"prefecture": {"type": "string", "required": false},
"muni_code": {"type": "string", "required": false},
"category": {"type": "string", "required": false},
"subcategory": {"type": "string", "required": false},
"min_amount": {"type": "integer", "required": false},
"max_amount": {"type": "integer", "required": false},
"min_return_rate": {"type": "number", "required": false},
"sort": {"type": "string", "required": false},
"limit": {"type": "integer", "required": false},
"offset": {"type": "integer", "required": false}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/api/furusato/{gift_id}",
"method": "GET",
"purpose": "返礼品の詳細を取得 (JSON or Markdown)",
"params": {
"gift_id": {"type": "string", "required": true},
"Accept": {"type": "string", "required": false}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/api/furusato/municipalities/{muni_code}/gifts",
"method": "GET",
"purpose": "指定自治体の active 返礼品一覧",
"params": {
"muni_code": {"type": "string", "required": true},
"limit": {"type": "integer", "required": false}
},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/furusato/stats/{muni_code}",
"method": "GET",
"purpose": "自治体別ふるさと納税統計",
"params": {
"muni_code": {"type": "string", "required": true}
},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/furusato/limit",
"method": "GET",
"purpose": "控除上限額シミュレーション (querystring)",
"params": {
"annual_income_jpy": {"type": "integer", "required": true},
"marital_status": {"type": "string", "required": false}
},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/furusato/recommend",
"method": "GET",
"purpose": "おすすめ返礼品 (x402 課金 $0.50)",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/furusato/change_detect",
"method": "GET",
"purpose": "変更検知 (x402 課金 $1.00)",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/api/furusato/use_history/{muni_code}",
"method": {
"tests": [
{
"name": "health_check",
"endpoint": "/v1/health",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns 200 OK indicating the service is up",
"metrics": ["latency", "status_code"],
"validation": {"field": "status", "type": "string"}
},
{
"name": "health_status_stats",
"endpoint": "/v1/health/status",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns aggregate counts / predicate status as JSON",
"metrics": ["latency", "status_code"],
"validation": {"type": "object"}
},
{
"name": "grants_search_keyword",
"endpoint": "/api/grants/search?keyword=%E8%A3%9C%E5%8A%A9%E9%87%91&limit=10",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns JSON list of grants matching the keyword",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"field": "results", "type": "array", "min_length": 1}
},
{
"name": "grants_search_prefecture_sort",
"endpoint": "/api/grants/search?prefecture=%E6%9D%B1%E4%BA%AC%E9%83%BD&open_only=true&sort=deadline_asc&limit=5",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns open grants in Tokyo sorted by deadline ascending",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"type": "object"}
},
{
"name": "grants_search_invalid_amount",
"endpoint": "/api/grants/search?min_amount=notaninteger&limit=10",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Rejects non-integer min_amount with a structured 4xx error",
"metrics": ["status_code"],
"validation": {"type": "object"}
},
{
"name": "grants_match_profile",
"endpoint": "/api/grants/match",
"method": "POST",
"headers": {"Content-Type": "application/json"},
"payload": {"query": "飲食店を開業したい。設備投資と販路開拓の補助金を探している。", "prefecture": "東京都", "limit": 10},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns ranked grant matches for the business profile",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"type": "object"}
},
{
"name": "grants_match_missing_query",
"endpoint": "/api/grants/match",
"method": "POST",
"headers": {"Content-Type": "application/json"},
"payload": {"prefecture": "東京都"},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Rejects request missing required 'query' field with 4xx",
"metrics": ["status_code"],
"validation": {"type": "object"}
},
{
"name": "furusato_search_keyword",
"endpoint": "/api/furusato/search?keyword=%E7%B1%B3&category=food&limit=10",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns JSON list of furusato gifts matching keyword in food category",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"type": "object"}
},
{
"name": "furusato_limit_simulation",
"endpoint": "/api/furusato/limit?annual_income_jpy=6000000&marital_status=married",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns estimated deduction limit and breakdown",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"type": "object"}
},
{
"name": "furusato_limit_missing_income",
"endpoint": "/api/furusato/limit",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Rejects request missing required annual_income_jpy with 4xx",
"metrics": ["status_code"],
"validation": {"type": "object"}
},
{
"name": "furusato_stats_by_municipality",
"endpoint": "/api/furusato/stats/131016",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns furusato statistics for the given municipality code",
"metrics": ["latency", "accuracy", "status_code"],
"validation": {"type": "object"}
},
{
"name": "grants_detail_invalid_id_markdown",
"endpoint": "/api/grants/nonexistent-id-12345",
"method": "GET",
"headers": {"Accept": "application/json"},
"payloa8/12 tests passed
| Test | Endpoint | Status | Latency |
|---|---|---|---|
| health_check | GET /v1/health | 200 | 327ms |
| health_status_stats | GET /v1/health/status | 200 | 605ms |
| grants_search_keyword | GET /api/grants/search?keyword=%E8%A3%9C%E5%8A%A9%E9%87%91&limit=10 | 200 | 911ms |
| grants_search_prefecture_sort | GET /api/grants/search?prefecture=%E6%9D%B1%E4%BA%AC%E9%83%BD&open_only=true&sort=deadline_asc&limit=5 | 200 | 67ms |
| grants_search_invalid_amount | GET /api/grants/search?min_amount=notaninteger&limit=10 | 200 | 52ms |
| grants_match_profile | POST /api/grants/match | 200 | 385ms |
| grants_match_missing_query | POST /api/grants/match | 400 | 54ms |
| furusato_search_keyword | GET /api/furusato/search?keyword=%E7%B1%B3&category=food&limit=10 | 200 | 809ms |
| furusato_limit_simulation | GET /api/furusato/limit?annual_income_jpy=6000000&marital_status=married | 400 | 65ms |
| furusato_limit_missing_income | GET /api/furusato/limit | 400 | 39ms |
{"model": "deepseek", "data": {"overall": 72, "dimensions": {"token_efficiency": 7.0, "first_try_success": 8.0, "response_parseability": 8.5, "error_clarity": 8.0, "doc_quality": 6.0, "auth_simplicity": 9.0, "latency": 6.0, "consistency": 7.5}, "pricing_normalized": {"cost_per_1k_requests": 0.0, "cost_per_1m_input_tokens": null, "cost_per_1m_output_tokens": null, "free_tier_requests": null, "estimated_monthly_cost_light": 0.0, "estimated_monthly_cost_heavy": 0.0}, "issues": [{"severity": "medium", "detail": "Coercion bug: min_amount=notaninteger was silently accepted (200) instead of returning 400. Zod schema uses z.coerce or loose parsing so malformed integer params are silently dropped rather than rejected. Silent failure can mislead agents.", "endpoint": "/api/grants/search"}, {"severity": "medium", "detail": "Query echo mismatch: request used limit=10/limit=5 but response echoes 'query': {'limit': 20, 'offset': 0}. Default limit is applied in the echo, not the effective value \u2014 confusing for agents verifying their request.", "endpoint": "/api/grants/search"}, {"severity": "medium", "detail": "/api/furusato/limit returned 400 with 'annual_income_jpy' as required but the parameter appears in the URL query string. The param name is not self-describing (appears to expect string body/field), causing a first-try miss for a happy path test.", "endpoint": "/api/furusato/limit"}, {"severity": "low", "detail": "Inconsistent error envelope: some 400s use {'success': false, 'error': {'issues': [...]}} (ZodError), while 404 uses flat {'error': 'not_found', 'id': ...}. No stable error schema.", "endpoint": "/api/grants/{id}"}, {"severity": "low", "detail": "Variable latency: 39ms to 911ms across endpoints. Search/furusato endpoints ~600-900ms.", "endpoint": "/api/grants/search"}, {"severity": "low", "detail": "x-ratelimit-limit differs by endpoint (60 for health, 30 for api) without documented rationale.", "endpoint": "/api/grants/search"}], "recommendations": ["Reject malformed numeric query params with 400 instead of silently coercing/dropping (min_amount=notaninteger should fail).", "Echo the effective query parameters (actual limit/offset applied) rather than defaults in the 'query' block, or clearly separate 'requested' vs 'effective'.", "Standardize a single error envelope across all endpoints (e.g., always {success:false, error:{code, message, details}}).", "Document GET /api/furusato/limit parameter names and types explicitly; the required 'annual_income_jpy' as a string conflicts with typical integer conventions.", "Publish a complete OpenAPI spec with parameter types, defaults, and examples to enable reliable agent planning.", "Provide full error message strings (not just code/path/expected) so agents can self-correct: e.g. include 'min_amount must be a positive integer'.", "Expose a stable default limit and document it so agents don't need trial-and-error.", "Note x402 paid endpoints ($0.10-$1.00 USDC) in docs with example payment flow so agents can plan around them."]}}Show your live agent-readiness score on your own site. Free, no auth — it updates as your score changes.
<a href="https://prowl.world/service/localgovjp">
<img src="https://prowl.world/badge/localgovjp.svg" height="56" alt="Agent-readiness on Prowl">
</a>
See operational metrics, LLM evaluations, agent readiness, and more.
Open in Dashboard