Skip to main content
Glama

japan-parliament-mcp-server

Search National Diet speeches

jpparl_search_speeches
Read-onlyIdempotent

Search Japanese National Diet speeches by topic, speaker, group, office, committee, or dates, newest dated sittings first. Keywords match the spoken text. Available text is excerpted to up to 480 Unicode code points near a local keyword match or from the opening if no term is matched locally. Set include_full_text for the whole speech. Pass speech_id to jpparl_get_meeting to read forward from that speech. To include earlier remarks, pass issue_id, include_text: true, and an earlier actual start_order.

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": "jpparl_search_speeches"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoInclusive first date as YYYY-MM-DD, YYYY/M/D, YYYY年M月D日, or a Japanese era date such as 令和7年5月1日.
houseNoHouse or conference committee. Omit to search all houses.
limitNoNumber of results, default 10. Values above 100 are reduced to 100.
startNoOne-based result position. Start at 1, then pass the previous next_start with the same filters and limit.
untilNoInclusive last date as YYYY-MM-DD, YYYY/M/D, YYYY年M月D日, or a Japanese era date such as 令和7年5月1日.
speakerNoPart of a Japanese speaker name, or a member’s hiragana reading (石破茂 or いしばしげる). Spaces separate alternatives (OR).
issue_idNoSitting ID of 21 ASCII letters or digits from either search tool, to search within one sitting.
issue_toNoLast issue number, or exact issue when used alone.
keywordsNoJapanese terms separated by spaces, all of which must match (AND). Write numerals as printed, such as 百兆円. Double quotes and standalone uppercase AND, OR, and NOT are rejected.
issue_fromNoFirst issue number, or exact issue when used alone.
session_toNoLast Diet session, or exact session when used alone.
closing_onlyNoOnly sittings held while the Diet was not in session (閉会中).
meeting_nameNoPart of a Japanese sitting or committee name, or its hiragana reading (予算委員会 or よさんいいんかい). Spaces separate alternatives (OR).
session_fromNoFirst Diet session, or exact session when used alone.
speaker_roleNo証人 (sworn witness), 参考人 (invited unsworn witness), or 公述人 (public hearing speaker). Omit to include every speaker.
speaker_groupNoPart of the official Japanese parliamentary group (会派) name, such as 自由民主党.
speaker_positionNoPart of the speaker’s Japanese office or affiliation, such as 内閣総理大臣.
include_full_textNoReturn the whole original speech in place of the excerpt.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
totalNoNumber of source matches.
sourceNoAttribution for this result.
appliedNoEffective speech filters and paging.
noticesNoGuidance about the returned records and search options.
recordsNoMatching speeches in source order.
returnedNoRecords on this page.
truncatedNoAdditional results are available after this page.
next_startNoNext one-based source position, or null at the end.
page_matchesNoDistinct values and counts for ambiguous speaker-side filters on this page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and openWorld, so the safety profile is covered. The description adds genuinely non-obvious behavior: text is excerpted to at most 480 code points near a local keyword match or from the opening, include_full_text overrides that, and results come newest-first. It does not discuss truncation of other fields or performance characteristics, but the excerpting disclosure is the key one.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and ordering, then behavior, then cross-tool workflow; each sentence carries information. The one soft spot is the speech_id sentence, which reads like an input parameter but is actually an output field used with a sibling tool.

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

Completeness5/5

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

For an 18-parameter tool with full schema descriptions, an output schema, and read-only annotations, the description supplies exactly the missing layer: excerpting behavior, ordering, and the two cross-tool chaining workflows. An agent has enough to call it correctly and to know when to continue into jpparl_get_meeting.

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 coverage is 100%, so baseline is 3; the description still adds meaning by clarifying that keywords match the spoken text, that excerpts are anchored near a local match, and how issue_id plus an earlier start_order chain to earlier remarks. Minor ambiguity: 'Pass speech_id' refers to a field in the results, not an input parameter of this tool, which could briefly confuse an agent.

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?

States a specific verb and resource ('Search Japanese National Diet speeches') plus the full set of searchable dimensions (topic, speaker, group, office, committee, dates) and the result ordering. This is clearly distinguishable from the sibling jpparl_search_meetings, which searches sittings rather than speech text.

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 concrete follow-on routing: pass speech_id to jpparl_get_meeting to read forward, and pass issue_id with include_text:true plus an earlier start_order to pull earlier remarks. It does not explicitly say when to prefer jpparl_search_meetings over this tool, so the exclusion side is only implied.

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.