Skip to main content
Glama
kyusik-yang

open-assembly-mcp

by kyusik-yang

get_party_cohesion

Compute per-party voting cohesion for a bill, including Rice index and dissenters from party majority.

Instructions

특정 법안에 대한 정당별 표결 응집도를 분석합니다 (연구 전용 도구).

Compute per-party voting cohesion for a bill:

  • yes/no/abstain counts per party

  • Rice index: |찬성 - 반대| / (찬성 + 반대) — 0 = perfect split, 1 = unanimous

  • dominant position per party (찬성 or 반대)

  • individual dissenters (voted against or abstained from party majority)

Rice index excludes 기권 from the denominator (standard political science convention). 기권 voters appear in dissenters["abstained"] when their party had a clear position.

Typical workflow:

  1. get_vote_results(assembly=assembly, bill_name=...) → find BILL_ID

  2. get_party_cohesion(bill_id=BILL_ID, assembly=assembly) → cohesion analysis

IMPORTANT — requires BILL_ID (PRC_...), not BILL_NO: • Get BILL_ID from get_vote_results, search_bills, or get_pending_bills.

Args: bill_id: 의안ID — 필수 (PRC_... 형식, 예: "PRC_H2W6O0K2D1T1Y2B0...") assembly: 대수 — 필수 (예: "22")

Returns: bill_id: 입력된 의안ID total_voted: 총 표결 의원 수 (찬성 + 반대 + 기권) overall: {"yes": N, "no": N, "abstain": N} by_party: 정당별 집계 (총 투표수 내림차순 정렬) Each party: {yes, no, abstain, total_voted, rice_index, dominant_position, unanimous} dissenters: 당론 이탈 의원 목록 Each dissenter: {name, party, district, vote, party_dominant, type} type: "opposite" (당론 반대방향 투표) | "abstain" (당론 있는데 기권) errors: 에러 (없으면 빈 dict) message: 요약 메시지

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bill_idYes
assemblyYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description bears the full burden. It explains the Rice index calculation (excluding abstentions from denominator), handling of abstainers, and that it is a research-only tool. However, it doesn't mention idempotency or side effects, but for a read-only analysis tool this is sufficient.

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?

The description is well-structured with sections for purpose, algorithm, workflow, args, and returns. While slightly long, every part adds value. Could be slightly more concise by merging some lines, but overall efficient.

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?

Given the complexity (multiple metrics, dissenters, error handling) and the presence of an output schema, the description completely covers input, output, algorithm, and usage workflow. No gaps remain for an agent to invoke correctly.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate. It fully explains bill_id (required, PRC_... format with example) and assembly (required, example '22'), adding format and context beyond the 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?

The description clearly states it computes per-party voting cohesion for a bill, with specific metrics like Rice index, dominant position, and dissenters. It distinguishes itself from sibling tools like get_vote_results and get_member_votes by focusing on aggregate party analysis.

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

Usage Guidelines5/5

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

Provides a typical workflow: use get_vote_results to get BILL_ID, then call this tool. Explicitly warns that BILL_ID (PRC_...) is required, not BILL_NO, and gives clear prerequisites.

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/kyusik-yang/open-assembly-mcp'

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