Skip to main content
Glama

get_legal_institutions

Retrieve comprehensive listings of Polish legal institutions, including ministries, authorities, and organizations involved in creating or implementing laws.

Instructions

Get list of all institutions involved in Polish legal acts (ministries, authorities, organizations that issue or are affected by laws).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • app.py:766-770 (registration)
    Registers the 'get_legal_institutions' tool using the @app.tool decorator, specifying name, description, and tags.
    @app.tool( name="get_legal_institutions", description="Get list of all institutions involved in Polish legal acts (ministries, authorities, organizations that issue or are affected by laws).", tags={"metadata", "institutions", "reference", "legal-analysis"} )
  • app.py:771-805 (handler)
    The handler function 'get_institutions_list' that executes the tool logic, fetching the list of legal institutions from the Sejm API.
    def get_institutions_list() -> list[str]: """Fetches a list of all institutions involved in legal acts. Retrieves the complete list of institutions, ministries, authorities, and organizations that are involved in creating, issuing, or being affected by Polish legal acts. This includes government bodies, ministries, regulatory authorities, and other entities. Returns: list[str]: List of institution names in Polish, representing all entities involved in the legal process. Returns empty list if request fails. Examples: User asks: "What institutions are involved in legal acts?": Returns: ['MIN. SPRAWIEDLIWOŚCI', 'MIN. FINANSÓW', 'MIN. ZDROWIA', 'SEJM', ...] User asks: "Show me all institutions that create laws": Returns: ['Prezydent', 'Rada Ministrów', 'Ministerstwa', 'Sejm', ...] User asks: "What organizations issue legal documents?": Returns: ['MIN. EDUKACJI NARODOWEJ', 'MIN. OBRONY NARODOWEJ', 'NBP', ...] User asks: "List all authorities involved in Polish legislation": Returns: ['Sejm RP', 'Senat RP', 'Prezydent RP', 'Rada Ministrów', ...] User asks: "What bodies can pass laws in Poland?": Returns: ['PARLAMENT', 'PREZYDENT', 'RADA MINISTRÓW', 'MINISTERSTWA', ...] """ logger.debug("get_institutions_list called") try: url = "https://api.sejm.gov.pl/eli/institutions" response = requests.get(url, headers={"Accept": "application/json"}) response.raise_for_status() data = response.json() logger.info(f"get_institutions_list retrieved {len(data)} institutions") return data except Exception as e: logger.error(f"Error: {e}") return []

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/numikel/law-scrapper-mcp'

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