Skip to main content
Glama

List Top Entities

list_top_entities
Read-onlyIdempotent

Aggregated count of regulations/consultations per issuing entity, ranked descending — for 'most active entities'/'who issued the most regulations' type questions, without paging through raw rows and counting client-side.

domain selects which activity to count (regulations or consultations, required). since/until (YYYY-MM-DD) bound the window — e.g. the last 10 days. country_code is comma-separated; omit for all accessible countries.

⚠️ Not available for bills/news/schedules/votes/actors/interventions/transcripts — none of them carry an entity (or any other categorical field) to group by, so there's no structural 'top entity'/'top topic' for those domains; that still requires paging + client-side synthesis.

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
limitNoHow many entities to return, ranked by activity in the window (1-50).
sinceNoCount activity on or after this date (YYYY-MM-DD).
untilNoCount activity on or before this date (YYYY-MM-DD).
domainYesWhich domain's activity to count.
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 declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is free. The description adds genuinely non-obvious traits: results are aggregated and ranked descending rather than raw rows, domain coverage is structurally limited, and returned entities are internal lookup values that must not be cited directly — the underlying regulation/bill/actor record should be cited instead. Return-shape details are omitted, but an output schema exists to cover that.

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?

It is front-loaded — the aggregation purpose and the 'instead of paging' rationale come first, then parameters, then exclusions, then provenance. The data-sources paragraph is longer than strictly necessary but earns its place by establishing that entities are non-citable, which prevents a downstream citation error.

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?

For a read-only aggregation tool with a full schema and an output schema, nothing actionable is missing: what is counted, how it is ranked, the supported domain universe, the window and country filters, and a citation caveat are all present. The explicit list of unsupported domains removes the main failure mode for this tool.

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 baseline is 3. The description still adds operational meaning beyond the schema: domain is required and selects which activity is counted, since/until bound the counting window (with a 'last 10 days' example), and country_code is comma-separated with an omission rule. Only country_id's deprecated status is left entirely to 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 states a specific verb and resource — an aggregated, descending-ranked count of regulations/consultations per issuing entity — and explicitly contrasts it with paging raw rows client-side, which distinguishes it from siblings like list_regulations and list_entities. An agent can tell exactly what this returns without opening the schema.

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?

It names the question patterns this answers ('most active entities', 'who issued the most regulations') and gives an explicit negative case: bills/news/schedules/votes/actors/interventions/transcripts are not supported and still require paging plus manual synthesis. It also says to omit country_code for all accessible countries, so both when-to-use and when-not-to-use are covered.

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