Skip to main content
Glama

search_datasets

Read-onlyIdempotent

Search datasets by free text. IMPORTANT: check server instructions first — many common queries have a direct dataset_id you can use with query_dataset without searching. Only use search_datasets when you don't know which dataset you need.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results to return. Min 1, max 100. Default 20.
queryYesSearch text in Catalan or Spanish. Examples: 'qualitat aire', 'pressupostos municipals', 'transport públic', 'residus', 'educació', 'rodalies'.
portalNoFilter results to a single portal.
categoryNoFilter by thematic category. Examples: 'Medi Ambient', 'Educació', 'Salut', 'Economia', 'Transport', 'Seguretat'. Use list_categories to see all available categories.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedInput schema / properties / portal / enum
      Previous value: -[
      -  "generalitat",
      -  "barcelona",
      -  "diba",
      -  "aoc",
      -  "reus",
      -  "girona",
      -  "fgc",
      -  "idescat",
      -  "renfe",
      -  "ine",
      -  "ree",
      -  "sepe",
      -  "cnmc",
      -  "cora"
      -]New value: +[
      +  "generalitat",
      +  "barcelona",
      +  "diba",
      +  "aoc",
      +  "reus",
      +  "girona",
      +  "fgc",
      +  "idescat",
      +  "renfe",
      +  "ine",
      +  "ree",
      +  "sepe",
      +  "cnmc",
      +  "cora",
      +  "catalonica"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / portal / enum
      Previous value: -[
      -  "generalitat",
      -  "barcelona",
      -  "diba",
      -  "aoc",
      -  "reus",
      -  "girona",
      -  "fgc",
      -  "idescat",
      -  "renfe",
      -  "ine",
      -  "ree",
      -  "sepe",
      -  "cnmc"
      -]New value: +[
      +  "generalitat",
      +  "barcelona",
      +  "diba",
      +  "aoc",
      +  "reus",
      +  "girona",
      +  "fgc",
      +  "idescat",
      +  "renfe",
      +  "ine",
      +  "ree",
      +  "sepe",
      +  "cnmc",
      +  "cora"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / portal / enum
      Previous value: -[
      -  "generalitat",
      -  "barcelona",
      -  "diba",
      -  "aoc",
      -  "reus",
      -  "girona",
      -  "fgc",
      -  "idescat",
      -  "renfe",
      -  "aemet",
      -  "ine",
      -  "ree",
      -  "sepe",
      -  "cnmc"
      -]New value: +[
      +  "generalitat",
      +  "barcelona",
      +  "diba",
      +  "aoc",
      +  "reus",
      +  "girona",
      +  "fgc",
      +  "idescat",
      +  "renfe",
      +  "ine",
      +  "ree",
      +  "sepe",
      +  "cnmc"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / portal / enum
      Previous value: -[
      -  "generalitat",
      -  "barcelona",
      -  "diba",
      -  "aoc",
      -  "reus",
      -  "girona",
      -  "fgc",
      -  "idescat",
      -  "renfe"
      -]New value: +[
      +  "generalitat",
      +  "barcelona",
      +  "diba",
      +  "aoc",
      +  "reus",
      +  "girona",
      +  "fgc",
      +  "idescat",
      +  "renfe",
      +  "aemet",
      +  "ine",
      +  "ree",
      +  "sepe",
      +  "cnmc"
      +]
  5. Changed5 schema fields changed
    • changedInput schema / properties / category / description
      Previous value: -"Filtra per categoria temàtica. Exemples: 'Medi Ambient', 'Educació', 'Salut', 'Economia', 'Territori', 'Seguretat'. Usa list_categories per veure totes les categories disponibles."New value: +"Filter by thematic category. Examples: 'Medi Ambient', 'Educació', 'Salut', 'Economia', 'Transport', 'Seguretat'. Use list_categories to see all available categories."
    • changedInput schema / properties / limit / description
      Previous value: -"Nombre màxim de resultats a retornar. Mínim 1, màxim 100. Per defecte 20."New value: +"Maximum number of results to return. Min 1, max 100. Default 20."
    • changedInput schema / properties / portal / description
      Previous value: -"Filtra resultats a un sol portal."New value: +"Filter results to a single portal."
    • changedInput schema / properties / portal / enum
      Previous value: -[
      -  "generalitat",
      -  "barcelona",
      -  "diba",
      -  "aoc",
      -  "reus",
      -  "girona",
      -  "fgc",
      -  "idescat"
      -]New value: +[
      +  "generalitat",
      +  "barcelona",
      +  "diba",
      +  "aoc",
      +  "reus",
      +  "girona",
      +  "fgc",
      +  "idescat",
      +  "renfe"
      +]
    • changedInput schema / properties / query / description
      Previous value: -"Text de cerca en català o castellà. Exemples: 'qualitat aire', 'pressupostos municipals', 'transport públic', 'residus', 'educació'."New value: +"Search text in Catalan or Spanish. Examples: 'qualitat aire', 'pressupostos municipals', 'transport públic', 'residus', 'educació', 'rodalies'."
  6. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare the tool as read-only, idempotent, open-world, and non-destructive. The description adds the workflow context about checking server instructions and preferring query_dataset, but does not disclose additional behavioral details such as result ordering, matching logic, or that it searches across multiple portals. Given annotations cover safety, the description provides minimal extra behavioral insight, so a 3 is appropriate.

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 effectively front-load the core action ('Search datasets by free text') followed by a high-priority usage note. There is no wasted text; the IMPORTANT warning earns its place by preventing unnecessary searches.

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?

The tool has four parameters and no output schema, but the schema fully documents inputs. The description provides necessary workflow context about when to use this tool versus query_dataset, and the sibling list includes list_categories for category filtering. However, it does not state what the tool returns (e.g., a list of datasets with metadata), which would help an agent know what to expect from the response. Given the calibration example, a 4 is suitable.

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%, with each parameter having a descriptive comment including defaults, constraints, enums for portal, and examples for query and category. The description itself does not add parameter-level detail beyond the schema, so baseline 3 applies.

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 uses the specific verb 'Search' with resource 'datasets' and specifies 'free text' as the input modality. It explicitly distinguishes from query_dataset by stating to only use when you don't know which dataset you need, which sets it apart from siblings.

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 advises checking server instructions first and states that many common queries have a direct dataset_id better served by query_dataset. It gives a clear condition: 'Only use search_datasets when you don't know which dataset you need.' This is explicit when-to-use and when-not-to-use with a named alternative.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool has a unique purpose: search datasets, get metadata, list fields, list categories, list portals, query data, find related datasets, and search radio archives. There is no overlap between them, and the descriptions clearly distinguish when to use each.

Naming Consistency4/5

Most tools follow a verb_noun pattern (get_, list_, query_, search_), but 'related_datasets' breaks the pattern as a noun phrase. This is a minor inconsistency in an otherwise predictable naming scheme.

Tool Count5/5

With 8 tools, the set is well-scoped for a data catalog server. Each tool addresses a distinct need, and the count is neither too sparse nor overwhelming for effective agent use.

Completeness5/5

The tools cover the full spectrum of data discovery (search, categories, portals), inspection (metadata, fields), extraction (query), and exploration (related datasets). The additional radioteca search expands the domain without leaving gaps in the core open data workflow.