Skip to main content
Glama

List Entities

list_entities
Read-onlyIdempotent

Returns the full list of government entities (ministerios, superintendencias, congresses, secretarías) that issue regulations. Primary use: discover entity_id values to pass to list_regulations. country_code is comma-separated (e.g. BR,CO); omit for all accessible countries. Use q to search by entity name — a case-insensitive substring (e.g. q=Hacienda), the agency's acronym (e.g. q=ANEEL, q=INVIMA), which is usually how a question names it, or every word of a name written from memory (q=Superintendencia de Transporte finds Superintendencia de Puertos y Transporte).

Data sources: reference catalogs derived from the official registries behind each domain — issuing entities from gazette attributions, commissions and parties from the congress rosters. These are internal lookup values (entity_id, commission_id, etc.), not citable documents themselves — cite the regulation/bill/actor record that uses them instead.

Input Schema

NameRequiredDescriptionDefault
qNoName filter: a case-insensitive substring ('Ministerio de Hacienda'), the agency's acronym ('ANEEL'), or every word of a remembered name ('Superintendencia de Transporte'). Returns up to 50 matches.
country_idNoDeprecated alias: comma-separated numeric ids, e.g. 8,2,6.
country_codeNoComma-separated country codes, e.g. BR,CO,CL.

Output Schema

NameRequiredDescriptionDefault
dataYes
metaYes
empty_resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already carry readOnly/idempotent/non-destructive/openWorld=false, so the description correctly focuses elsewhere: data provenance (official registries, gazette attributions, congress rosters) and the important caveat that these are internal lookup values, not citable documents. It does not discuss pagination or the 50-match cap beyond what the schema states.

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?

Purpose and the primary use case are front-loaded, and each paragraph has a job. The closing data-sources note is denser than strictly necessary but carries a real citation-hygiene warning rather than filler.

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?

With an output schema present, the description needn't explain return shape, and it covers the remaining gaps: entity types, id semantics, query strategy, country scoping, and citation caveats. An agent could call this correctly from the definition alone.

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 3 is the baseline; the description earns more by adding behavior the schema omits — that `country_code` comma-separated and omitting it means all accessible countries — and by illustrating multi-word memory matching that implies broader matching than a plain substring.

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?

Opens with a specific verb+resource ('Returns the full list of government entities') and enumerates the entity kinds covered. It then states the purpose that distinguishes it from list_top_entities and list_regulations: discovering entity_id values.

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?

Explicitly names the downstream tool ('Primary use: discover `entity_id` values to pass to `list_regulations`'), telling the agent both when to call it and what to do with the result. It also explains the query-strategy choice for `q` (name vs acronym vs remembered-name words).

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