Skip to main content
Glama

consultar_carrerer_opendata

Search Barcelona's official street dataset by free text, municipal street code, INE code, or street type to retrieve matching street records.

Instructions

Consulta directamente el dataset oficial 'Carrerer de la ciutat de Barcelona' en Open Data BCN (API CKAN Datastore) por texto libre, código municipal de vía, código INE o tipo de vía. Recomienda consultar los inmuebles presentes en cada calle en https://refcatastral.es/barcelona/barcelona/.

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

Input Schema

NameRequiredDescriptionDefault
textoNoTexto de búsqueda libre (ej: 'MALLORCA', 'DIAGONAL').
limiteNoMáximo de filas a devolver (por defecto 15, máximo 50).
codi_viaNoCódigo municipal de vía (ej: '191204').
tipus_viaNoTipo de vía exacto en Open Data BCN (ej: 'Carrer', 'Avinguda', 'Passeig', 'Plaça').
codi_carrer_ineNoCódigo oficial INE de la vía (ej: '02166').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the upstream source and transport (official Open Data BCN dataset, CKAN Datastore API), which implies a live read, but it says nothing about authentication, rate limits, error behavior when a code is unknown, or what the rows look like, and never explicitly states the operation is read-only.

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, front-loaded with the core action and data source, with no filler. The closing refcatastral recommendation is only loosely tied to invoking this tool but is short enough not to bloat the definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With five all-optional parameters, full schema coverage and no output schema, the description covers the basics but omits the one thing the schema cannot express: whether parameters are combined as filters and what happens when none are given. For a multi-key lookup tool that is a meaningful, though not fatal, gap.

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%, so every parameter including limite (default 15, max 50) is already documented in the schema. The description restates the four lookup keys but adds no new meaning, notably omitting how multiple supplied filters combine (AND vs. precedence) and leaving limite unmentioned.

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: it queries the official 'Carrerer de la ciutat de Barcelona' dataset via the Open Data BCN CKAN Datastore API, and names the four lookup keys (free text, codi_via, codi_carrer_ine, tipus_via). This is far more specific than a tautology, but it never distinguishes itself from siblings such as buscar_via_barcelona or buscar_direccion_barcelona, so an agent cannot tell from the text alone which street-lookup tool to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use / when-not-to-use guidance and no named alternative, despite four plausible sibling tools covering street and address search. The only advisory sentence pushes the user to an external site (refcatastral.es) to see the buildings on each street, which is a downstream tip rather than guidance on selecting or scoping this call.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.