Skip to main content
Glama

Buscar calles

callejear_search_streets
Read-onlyIdempotent

Busca nombres y variantes en el catálogo de Madrid; get_coverage indica si es parcial o completo en la fecha de la fuente. Primero la coincidencia exacta ignorando tipo de vía y artículo inicial; orden textual, no residencial. Los códigos oficiales distinguen homónimos; punto y enlace pueden ser null. No admite filtros de métricas.

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": {
      "city_id": "<city_id>",
      "query": "<query>"
    },
    "name": "callejear_search_streets"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
cursorNo
city_idYes

Output Schema

NameRequiredDescriptionDefault
cityYes
errorNo
resultNo
statusYes
sourcesYes
limitationsYes
data_versionYes
responded_atYes
calculated_atYes
schema_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changed
    • changedOutput schema / properties / error / properties / code / enum
      Previous value: -[
      -  "out_of_coverage",
      -  "street_not_available",
      -  "invalid_cursor",
      -  "data_unavailable",
      -  "quota_exceeded",
      -  "response_too_large",
      -  "busy",
      -  "timeout",
      -  "disabled"
      -]New value: +[
      +  "out_of_coverage",
      +  "street_not_available",
      +  "invalid_cursor",
      +  "duplicate_street",
      +  "data_unavailable",
      +  "quota_exceeded",
      +  "response_too_large",
      +  "busy",
      +  "timeout",
      +  "disabled"
      +]
    • addedOutput schema / properties / result / properties / notice
      Added value: +{
      +  "maxLength": 2000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedOutput schema / properties / result / properties / streets / items / properties / canonical_url / anyOf
      Added value: +[
      +  {
      +    "pattern": "^https:\\/\\/callejear\\.com\\/madrid\\/madrid\\/[a-z0-9-]+\\/$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / result / properties / streets / items / properties / canonical_url / pattern
      Removed value: -"^https:\\/\\/callejear\\.com\\/madrid\\/madrid\\/[a-z0-9-]+\\/$"
    • removedOutput schema / properties / result / properties / streets / items / properties / canonical_url / type
      Removed value: -"string"
    • changedOutput schema / properties / result / properties / streets / items / properties / id / pattern
      Previous value: -"^legacy:calle:[1-9][0-9]{0,11}$"New value: +"^(?:legacy:calle:|es:28079:via:)[1-9][0-9]{0,11}$"
    • addedOutput schema / properties / result / properties / streets / items / properties / identity / properties / source_way_id / anyOf
      Added value: +[
      +  {
      +    "pattern": "^[0-9]+$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / result / properties / streets / items / properties / identity / properties / source_way_id / pattern
      Removed value: -"^[0-9]+$"
    • removedOutput schema / properties / result / properties / streets / items / properties / identity / properties / source_way_id / type
      Removed value: -"string"
    • removedOutput schema / properties / result / properties / streets / items / properties / identity / properties / status / const
      Removed value: -"spatially_supported"
    • addedOutput schema / properties / result / properties / streets / items / properties / identity / properties / status / enum
      Added value: +[
      +  "spatially_supported",
      +  "official_register",
      +  "official_name_conflict"
      +]
    • addedOutput schema / properties / result / properties / streets / items / properties / location_method
      Added value: +{
      +  "enum": [
      +    "official_surface_interior",
      +    "unavailable"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / result / properties / streets / items / properties / name_variants
      Added value: +{
      +  "items": {
      +    "maxLength": 180,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 8,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedOutput schema / properties / result / properties / streets / items / properties / point / anyOf
      Added value: +[
      +  {
      +    "prefixItems": [
      +      {
      +        "maximum": 90,
      +        "minimum": -90,
      +        "type": "number"
      +      },
      +      {
      +        "maximum": 180,
      +        "minimum": -180,
      +        "type": "number"
      +      }
      +    ],
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / result / properties / streets / items / properties / point / prefixItems
      Removed value: -[
      -  {
      -    "maximum": 90,
      -    "minimum": -90,
      -    "type": "number"
      -  },
      -  {
      -    "maximum": 180,
      -    "minimum": -180,
      -    "type": "number"
      -  }
      -]
    • removedOutput schema / properties / result / properties / streets / items / properties / point / type
      Removed value: -"array"
    • addedOutput schema / properties / result / properties / streets / items / properties / reference_geometry / anyOf
      Added value: +[
      +  {
      +    "const": "representative_point",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / result / properties / streets / items / properties / reference_geometry / const
      Removed value: -"representative_point"
    • removedOutput schema / properties / result / properties / streets / items / properties / reference_geometry / type
      Removed value: -"string"
    • removedOutput schema / properties / schema_version / const
      Removed value: -"1.0"
    • addedOutput schema / properties / schema_version / enum
      Added value: +[
      +  "1.0",
      +  "2.0"
      +]
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description adds genuinely useful behavior beyond that: exact-match-first ranking ignoring road type and leading article, textual rather than residential ordering, and that point/link fields may be null.

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?

Front-loaded with the core purpose, then dense semicolon-separated clauses that each carry information; no filler. It is compact and every sentence adds scope or behavior, though the clause density borders on terse.

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?

An output schema exists, so return values need not be spelled out, and the annotations cover the safety profile. But with 0% parameter description coverage, the input side (city_id, limit, cursor) is left entirely to the schema, making the definition incomplete for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for the four parameters, which it largely does not. It conceptually indicates what 'query' holds (names and variants) but says nothing about city_id, limit, or cursor usage; the null-field remark concerns output, not inputs.

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 ('Busca nombres y variantes en el catálogo de Madrid'), so the agent knows it searches street names/variants in the Madrid catalog. It differentiates one sibling by pointing to get_coverage for partial/complete coverage, but does not distinguish itself from compare_streets or get_street_context.

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

Usage Guidelines3/5

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

Provides a boundary ('No admite filtros de métricas') and defers coverage questions to get_coverage, implying when the tool is appropriate. However, there is no explicit when-to-use vs the other siblings like compare_streets or get_street_context; usage is only implied.

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