Skip to main content
Glama
shuji-bonji

Houki e-Gov MCP Server

by shuji-bonji

get_toc

Retrieve only the table of contents structure (parts, chapters, sections, articles) of Japanese laws. Use the depth parameter to limit hierarchy for an overview of large codes like the Civil Code.

Instructions

法令の目次(編・章・節・条の構造)のみを取得する。トークン節約用。depth で階層を浅く打ち切れる(民法・会社法のような大規模法令の概観把握向け)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
atNo時点指定(YYYY-MM-DD)
depthNo構造階層の打ち切り深さ。1=編まで、2=章まで、3=節まで。省略時は全階層。例: 民法を depth=1 で取得すると「第一編 総則」「第二編 物権」のような大区分のみが返る
law_nameYes法令名または略称
Behavior3/5

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

No annotations provided, so description carries burden. It explains that depth truncates hierarchy and that the tool is for token saving, but does not disclose error handling, authentication needs, or rate limits. Acceptable for a simple retrieval tool but incomplete.

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, each with clear purpose: first defines core function, second adds depth parameter context and use case. No wasted words, highly efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so description should clarify return format. It mentions 'structure of parts, chapters, sections, articles' but not whether output is nested or flat. Missing details on behavior for invalid law names or depth values. Adequate for a simple tool, but could be more complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema already provides 100% coverage with good descriptions. Tool description adds extra context by explaining depth's purpose for overview and token saving, enhancing understanding beyond schema.

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?

Description clearly states it retrieves only the table of contents structure, explicitly distinguishing from full law retrieval with 'のみ' (only) and token-saving purpose, and mentions depth for overview of large laws, setting it apart from siblings like get_law.

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

Usage Guidelines3/5

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

Description implies usage for token-saving and large law overview via depth, but does not explicitly state when to avoid this tool or list alternative tools for full content or search, leaving guidance implicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shuji-bonji/houki-egov-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server