Search the Text of Japanese Laws by Keyword: Matching Sentences and Their Laws (e-Gov 法令検索)
egovlaws/search-law-text
Full-text search across the sentences of Japanese statutes by a keyword in Japanese (for example 個人情報). Returns the matching sentences, each with the law it belongs to (law ID, law number, title, category, revision and enforcement dates) and its position in the law, plus the total number of matching sentences. Choose 1 to 50 sentences per call and page with an offset. Sentence text contains HTML markup, with the keyword wrapped in a span tag. A keyword that matches nothing returns a not-found error rather than an empty list. Data from the e-Gov 法令検索 law database of the Digital Agency of Japan, passed through unmodified and served by Eden Engine; not an official Digital Agency product.
Price
$0.0026 per call
You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.
Data source
e-Gov 法令検索 (Digital Agency, Japan)
出典:e-Gov法令検索(https://laws.e-gov.go.jp), デジタル庁. Japan Public Data License 1.0. Served by Eden Engine; not an official Digital Agency product.
Use it
Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.
Connect once and your AI can find and run this tool, and any other it needs.
// 1. search: find the tool
omnial_search({ query: "what you need" })
// 2. inspect: price and input schema
omnial_inspect({ tool: "egovlaws/search-law-text" })
// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "egovlaws/search-law-text" })
// 4. run: price the exact call first, then run it
omnial_execute({ tool: "egovlaws/search-law-text", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "egovlaws/search-law-text", input: { /* ... */ } })
// 5. settle: the call is charged when it finishes, nothing to doNot connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.
Pricing
Every charge this tool can incur.
| Charge | Price |
|---|---|
Per call | $0.0026 |
- Updated
- Oct 20, 2026
Input and output schemas
Input schema
{
"type": "object",
"required": [
"keyword"
],
"properties": {
"limit": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "How many matching sentences to return, 1 to 50. Defaults to 10."
},
"offset": {
"type": "integer",
"minimum": 0,
"description": "Matching sentences to skip, for paging. Use the next_offset of the previous response."
},
"keyword": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "A word or phrase to find in the text of the laws, in Japanese, for example 個人情報 (personal information)."
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"required": [
"total_count",
"sentence_count",
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"law_info": {
"type": "object",
"description": "Identity of the law: `law_id`, `law_num`, `law_type` and `promulgation_date`.",
"additionalProperties": true
},
"sentences": {
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"position": {
"type": "string"
}
},
"additionalProperties": true
},
"description": "Matching sentences: `position` in the law and `text` (HTML markup, keyword in a span)."
},
"revision_info": {
"type": "object",
"description": "The revision the sentences were found in: title, category, amendment and enforcement dates.",
"additionalProperties": true
}
},
"additionalProperties": true
},
"description": "The matching laws, each with its matching sentences."
},
"next_offset": {
"type": "integer",
"description": "Offset of the next page; absent when this is the last page."
},
"total_count": {
"type": "integer",
"description": "How many sentences match the keyword in all."
},
"sentence_count": {
"type": "integer",
"description": "How many sentences are in this response."
}
},
"description": "The e-Gov Law API keyword search response.",
"additionalProperties": true
}