Skip to main content
Glama

România Transparentă

Caută o localitate (UAT)

cauta_localitate
Read-onlyIdempotent

Caută comune, orașe, municipii și sectoare după nume (fără diacritice) și/sau județ. Întoarce, pentru fiecare localitate, codul SIRUTA, tipul, județul, populația, CUI-ul primăriei și adresa fișei.

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

Input Schema

NameRequiredDescriptionDefault
qNonumele localității
judetNocodul (CJ) sau numele județului
limitNorezultate (implicit 20, maximum 50)
offsetNodeplasarea, pentru pagina următoare

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds non-obvious behavior: the name search is diacritics-insensitive, and it discloses the exact result fields (SIRUTA, type, county, population, primărie CUI, fișă address). Pagination behavior is only implied through the schema.

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, front-loaded with the searchable resource and constraint, followed by the return payload. No filler and no restatement of the title.

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?

With no output schema, the description correctly compensates by listing the returned fields, and it covers input combination rules and pagination-adjacent fields via the schema. What remains unstated is matching granularity and sort order, which matter for interpreting the result list.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all four parameters, and the baseline is 3. The description adds the useful diacritics constraint on the name and the 'și/sau' relationship between q and județ, but adds nothing about match type (prefix vs. substring) or result ordering.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ('Caută') and resource, and enumerates the covered entity types (comune, orașe, municipii, sectoare) so the scope is unambiguous. It also lists what is returned, which lets an agent distinguish it from record-detail siblings. It stops short of naming a sibling or stating what this tool is not for.

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?

The phrase 'după nume ... și/sau județ' implies the valid query combinations (name only, county only, or both), which is genuine usage guidance. There is no explicit when-to-use versus alternatives and no note on how to proceed after obtaining the CUI (e.g., toward fisa_primarie).

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.

Resources