Skip to main content
Glama

hladaj_subjekt

Search Slovak legal entities in the RPO register by name, IČO number, or municipality to find company details from official sources.

Instructions

Hľadá právnické osoby v RPO (Register právnických osôb) podľa názvu, IČO alebo obce. Aspoň jeden z parametrov nazov/ico musí byť zadaný. RPO agreguje dáta z ~70 zdrojových registrov (ORSR, ZRSR, a ďalšie).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nazovNo
icoNo
obecNo
iba_aktivneNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implementation of the `hladaj_subjekt` MCP tool, which searches for legal entities in the RPO database using the provided name, IČO, or municipality.
    async def hladaj_subjekt(
        nazov: str = "",
        ico: str = "",
        obec: str = "",
        iba_aktivne: bool = True,
    ) -> dict:
        """
        Hľadá právnické osoby v RPO (Register právnických osôb) podľa názvu, IČO alebo obce.
        Aspoň jeden z parametrov nazov/ico musí byť zadaný.
        RPO agreguje dáta z ~70 zdrojových registrov (ORSR, ZRSR, a ďalšie).
        """
        if not nazov and not ico:
            return {"chyba": "Zadaj aspoň nazov alebo ico"}
    
        params = {}
        if ico:
            params["identifier"] = ico
        if nazov:
            params["fullName"] = nazov
        if obec:
            params["addressMunicipality"] = obec
        if iba_aktivne:
            params["onlyActive"] = "true"
    
        async with httpx.AsyncClient(timeout=15) as client:
            r = await client.get(f"{RPO_BASE}/search", params=params)
            r.raise_for_status()
            data = r.json()
    
        results = data.get("results", [])
    
        subjekty = []
        for s in results:
            # IČO — aktuálne
            identifiers = s.get("identifiers", [])
            current_id = current_only(identifiers)
            ico_val = current_id[0]["value"] if current_id else (identifiers[0]["value"] if identifiers else None)
    
            # Názov — aktuálny
            names = s.get("fullNames", [])
            current_name = current_only(names)
            nazov_val = current_name[0]["value"] if current_name else (names[-1]["value"] if names else None)
    
            # Adresa — aktuálna
            addresses = s.get("addresses", [])
            current_addr = current_only(addresses)
            addr = current_addr[0] if current_addr else (addresses[0] if addresses else {})
    
            # Zdrojový register
            source = s.get("sourceRegister", {})
            source_name = source.get("value", {}).get("value", "") if isinstance(source.get("value"), dict) else ""
    
            subjekty.append({
                "rpo_id": s.get("id"),
                "ico": ico_val,
                "nazov": nazov_val,
                "adresa": format_address(addr) if addr else None,
                "datum_vzniku": s.get("establishment"),
                "zdrojovy_register": source_name,
            })
    
        return {
            "pocet": len(subjekty),
            "subjekty": subjekty,
            "pravne_poradenstvo": PRAVNE_PORADENSTVO,
        }
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses that the tool searches a registry aggregating data from ~70 source registries, which adds useful context about data sources. However, it doesn't mention behavioral traits like rate limits, authentication needs, response format, or pagination behavior that would be important for a search tool.

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?

The description is efficiently structured in three sentences: purpose statement, parameter requirement, and data source context. Every sentence adds value with zero wasted words. It's appropriately sized for the tool's complexity.

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

Completeness4/5

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

Given the tool has an output schema (which handles return values), no annotations, and 0% schema description coverage, the description does well. It covers purpose, parameter relationships, and data source context. The main gap is lack of behavioral details like rate limits or authentication, but the output schema reduces the completeness burden.

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?

With 0% schema description coverage and 4 parameters, the description must compensate. It explains the purpose of 3 parameters (nazov, ico, obec) and their relationship ('aspoň jeden z parametrov nazov/ico musí byť zadaný'). It doesn't mention the 'iba_aktivne' parameter, but provides good semantic context for the majority of parameters.

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 the tool's purpose: 'Hľadá právnické osoby v RPO (Register právnických osôb)' - it searches for legal entities in a specific registry. It specifies the search criteria (by name, IČO, or municipality) and distinguishes from sibling 'detail_subjektu' by being a search function rather than a detail view.

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?

The description provides clear usage context: 'Aspoň jeden z parametrov nazov/ico musí byť zadaný' specifies a mandatory parameter requirement. It doesn't explicitly mention when to use vs. the sibling tool 'detail_subjektu', but the search vs. detail distinction is implied. No explicit exclusions or alternatives are stated.

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/LegalEngineering/sk-registers-mcp'

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