Skip to main content
Glama

datasets_numbeo_cities_facets

Read-only

Returns terms aggregation counts for the Numbeo cities dataset, honoring the same filters as Search the Numbeo cities dataset. Use alongside the related search tool to inspect filter counts under the same query filters.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "facet": "<facet>"
    },
    "name": "datasets_numbeo_cities_facets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text query over the city name, max 256 characters.
pageNoResult page number, 1-based, default 1; page times page_size must not exceed 10000.
sortNoOptional sort order. Allowed values: name_asc, cost_of_living_asc, cost_of_living_desc, quality_of_life_desc, safety_desc, crime_asc, health_care_desc, pollution_asc, traffic_asc. Defaults to relevance with q, otherwise name_asc.
facetYesRequired facet to aggregate. Allowed values: country.
countryNoOptional exact country filter, max 128 characters.
page_sizeNoPage size, default 20, max 100; page times page_size must not exceed 10000.
max_crime_indexNoOptional maximum Crime Index.
min_crime_indexNoOptional minimum Crime Index.
min_safety_indexNoOptional minimum Safety Index.
max_traffic_indexNoOptional maximum Traffic Index.
max_pollution_indexNoOptional maximum Pollution Index.
min_health_care_indexNoOptional minimum Health Care Index.
max_cost_of_living_indexNoOptional maximum Cost of Living Index (New York = 100).
min_cost_of_living_indexNoOptional minimum Cost of Living Index (New York = 100).
min_quality_of_life_indexNoOptional minimum Quality of Life Index.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered structurally. The description adds the meaningful behavioral contract that aggregation honors the identical filter set as search, which is why counts line up. It does not address the odd presence of page/page_size/sort on an aggregation call, nor any limits on the count results, leaving a real behavioral gap.

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?

Two sentences, no padding, with the core purpose front-loaded before the usage hint. Every clause carries information. Minor redundancy in naming the dataset twice ('Numbeo cities dataset' / 'related search tool') keeps it just under the top mark.

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?

An output schema exists, so return structure need not be explained, and all 15 parameters are richly documented in the schema. For an aggregation tool the description covers purpose, the filter-parity contract, and the companion-tool workflow. What it omits — facet value enumeration beyond what the schema states and pagination relevance — is mostly covered elsewhere.

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 description coverage is 100% and every one of the 15 parameters, including the required 'facet' with its allowed value 'country', is documented in the schema. The description's contribution is relational rather than syntactic: it tells the agent the filters mirror the search tool's filters. That is useful but does not add per-parameter meaning, so the baseline 3 applies.

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?

States a specific verb and resource: 'Returns terms aggregation counts for the Numbeo cities dataset.' This distinguishes it from a document-returning search and from an item lookup, and it explicitly ties itself to the related search tool. The only weakness is that it refers to the sibling by a title-like phrase rather than disambiguating facets-as-counts more concretely.

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?

'Use alongside the related search tool to inspect filter counts under the same query filters' gives a clear usage context and the reason to call it rather than the search tool. It stops short of explicit when-not guidance (e.g., don't call this to retrieve city records) and doesn't say what to do when the facet yields no counts, so it is not a full 5.

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.