Skip to main content
Glama

Comparer des contextes territoriaux

callejear_compare_streets
Read-onlyIdempotent

Deux à cinq rues côte à côte, sans gagnant ni classement. Deux rues du même IRIS ont les mêmes comptages d’équipements. Les dimensions non comparables sont signalées.

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": {
      "street_ids": "<street_ids>"
    },
    "name": "callejear_compare_streets"
  }
}

Input Schema

NameRequiredDescriptionDefault
dimensionsNo
street_idsYes

Output Schema

NameRequiredDescriptionDefault
errorNo
resultNo
statusYes
sourcesYes
limitationsYes
data_versionYes
responded_atYes
calculated_atYes
not_availableYes
schema_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed42 schema fields changed
    • changedInput schema / properties / dimensions / items / enum
      Previous value: -[
      -  "services.health",
      -  "services.education",
      -  "services.sport",
      -  "services.culture",
      -  "services.public"
      -]New value: +[
      +  "services.health",
      +  "services.education",
      +  "services.sport",
      +  "services.culture",
      +  "services.public",
      +  "transport.bus_stops",
      +  "transport.tram_stops",
      +  "transport.metro_stations",
      +  "transport.rail_stations",
      +  "transport.bike_stations",
      +  "energy.dpe"
      +]
    • changedInput schema / properties / dimensions / maxItems
      Previous value: -5New value: +11
    • addedOutput schema / properties / result / properties / definitions
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "computed_at": {
      +        "type": "null"
      +      },
      +      "counted_unit": {
      +        "type": "string"
      +      },
      +      "definition_id": {
      +        "type": "string"
      +      },
      +      "definition_version": {
      +        "const": "2",
      +        "type": "string"
      +      },
      +      "distance_method": {
      +        "type": "string"
      +      },
      +      "evidence_type": {
      +        "enum": [
      +          "observed_count",
      +          "sample",
      +          "territorial_listing"
      +        ],
      +        "type": "string"
      +      },
      +      "imported_at": {
      +        "type": "null"
      +      },
      +      "interpretation_limits": {
      +        "items": {
      +          "maxLength": 2000,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "label": {
      +        "maxLength": 2000,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "radius_m": {
      +        "anyOf": [
      +          {
      +            "exclusiveMinimum": 0,
      +            "maximum": 9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "reference_geometry": {
      +        "type": "string"
      +      },
      +      "scale": {
      +        "enum": [
      +          "street",
      +          "iris",
      +          "commune"
      +        ],
      +        "type": "string"
      +      },
      +      "source_refs": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "source_updated_at": {
      +        "type": "null"
      +      },
      +      "unit": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "definition_id",
      +      "definition_version",
      +      "label",
      +      "unit",
      +      "scale",
      +      "evidence_type",
      +      "counted_unit",
      +      "radius_m",
      +      "distance_method",
      +      "reference_geometry",
      +      "source_refs",
      +      "source_updated_at",
      +      "imported_at",
      +      "computed_at",
      +      "interpretation_limits"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 12,
      +  "type": "array"
      +}
    • addedOutput schema / properties / result / properties / not_comparable
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "key": {
      +        "enum": [
      +          "services.health",
      +          "services.education",
      +          "services.sport",
      +          "services.culture",
      +          "services.public",
      +          "transport.bus_stops",
      +          "transport.tram_stops",
      +          "transport.metro_stations",
      +          "transport.rail_stations",
      +          "transport.bike_stations",
      +          "energy.dpe"
      +        ],
      +        "type": "string"
      +      },
      +      "reason_code": {
      +        "enum": [
      +          "no_iris",
      +          "no_observation",
      +          "no_coordinates",
      +          "department_not_collected",
      +          "collection_capped",
      +          "insufficient_sample",
      +          "no_gaspar_record",
      +          "value_missing_for_some_streets",
      +          "same_iris_identical_by_construction"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "reason_code"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / result / properties / reasons
      Added value: +{
      +  "additionalProperties": {
      +    "maxLength": 2000,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "propertyNames": {
      +    "enum": [
      +      "no_iris",
      +      "no_observation",
      +      "no_coordinates",
      +      "department_not_collected",
      +      "collection_capped",
      +      "insufficient_sample",
      +      "no_gaspar_record",
      +      "value_missing_for_some_streets",
      +      "same_iris_identical_by_construction"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / result / properties / rows / items / properties / additional_unnamed_stop_points
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / result / properties / rows / items / properties / energy
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "data_period": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "from": {
      +                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +                  "type": "string"
      +                },
      +                "to": {
      +                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "from",
      +                "to"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "distribution": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "A": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "B": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "C": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "D": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "E": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "F": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "G": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "A",
      +                "B",
      +                "C",
      +                "D",
      +                "E",
      +                "F",
      +                "G"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "key": {
      +          "const": "energy.dpe",
      +          "type": "string"
      +        },
      +        "reason_code": {
      +          "anyOf": [
      +            {
      +              "enum": [
      +                "no_iris",
      +                "no_observation",
      +                "no_coordinates",
      +                "department_not_collected",
      +                "collection_capped",
      +                "insufficient_sample",
      +                "no_gaspar_record",
      +                "value_missing_for_some_streets",
      +                "same_iris_identical_by_construction"
      +              ],
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "sample_size": {
      +          "anyOf": [
      +            {
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "status": {
      +          "enum": [
      +            "partial",
      +            "unavailable"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "key",
      +        "status",
      +        "reason_code",
      +        "sample_size",
      +        "distribution",
      +        "data_period"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • removedOutput schema / properties / result / properties / rows / items / properties / georisques / properties / codes
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "items": {
      -        "pattern": "^\\d{2,6}$",
      -        "type": "string"
      -      },
      -      "maxItems": 100,
      -      "type": "array"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • addedOutput schema / properties / result / properties / rows / items / properties / georisques / properties / families
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "pattern": "^\\d{2}$",
      +            "type": "string"
      +          },
      +          "label": {
      +            "maxLength": 2000,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "label"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 20,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / result / properties / rows / items / properties / georisques / properties / key
      Added value: +{
      +  "const": "risks.gaspar",
      +  "type": "string"
      +}
    • removedOutput schema / properties / result / properties / rows / items / properties / georisques / properties / reason
      Removed value: -{
      -  "maxLength": 2000,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • addedOutput schema / properties / result / properties / rows / items / properties / georisques / properties / reason_code
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "no_iris",
      +        "no_observation",
      +        "no_coordinates",
      +        "department_not_collected",
      +        "collection_capped",
      +        "insufficient_sample",
      +        "no_gaspar_record",
      +        "value_missing_for_some_streets",
      +        "same_iris_identical_by_construction"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • removedOutput schema / properties / result / properties / rows / items / properties / georisques / properties / scale
      Removed value: -{
      -  "const": "commune",
      -  "type": "string"
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / georisques / properties / source_refs
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / georisques / properties / source_updated_at
      Removed value: -{
      -  "type": "null"
      -}
    • addedOutput schema / properties / result / properties / rows / items / properties / georisques / properties / unmapped_codes
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "pattern": "^\\d{2,6}$",
      +        "type": "string"
      +      },
      +      "maxItems": 100,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / result / properties / rows / items / properties / georisques / required
      Previous value: -[
      -  "scale",
      -  "territory_id",
      -  "status",
      -  "codes",
      -  "source_refs",
      -  "source_updated_at",
      -  "reason"
      -]New value: +[
      +  "key",
      +  "territory_id",
      +  "status",
      +  "reason_code",
      +  "families",
      +  "unmapped_codes"
      +]
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / computed_at
      Removed value: -{
      -  "type": "null"
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / counted_unit
      Removed value: -{
      -  "const": "bpe_equipment",
      -  "type": "string"
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / data_period
      Removed value: -{
      -  "type": "null"
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / definition_version
      Removed value: -{
      -  "const": "1",
      -  "type": "string"
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / distance_method
      Removed value: -{
      -  "const": "iris_membership",
      -  "type": "string"
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / evidence_type
      Removed value: -{
      -  "const": "observed_count",
      -  "type": "string"
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / imported_at
      Removed value: -{
      -  "type": "null"
      -}
    • changedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / key / enum
      Previous value: -[
      -  "services.health",
      -  "services.education",
      -  "services.sport",
      -  "services.culture",
      -  "services.public"
      -]New value: +[
      +  "services.health",
      +  "services.education",
      +  "services.sport",
      +  "services.culture",
      +  "services.public",
      +  "transport.bus_stops",
      +  "transport.tram_stops",
      +  "transport.metro_stations",
      +  "transport.rail_stations",
      +  "transport.bike_stations"
      +]
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / radius_m
      Removed value: -{
      -  "type": "null"
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / reason
      Removed value: -{
      -  "maxLength": 2000,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • addedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / reason_code
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "no_iris",
      +        "no_observation",
      +        "no_coordinates",
      +        "department_not_collected",
      +        "collection_capped",
      +        "insufficient_sample",
      +        "no_gaspar_record",
      +        "value_missing_for_some_streets",
      +        "same_iris_identical_by_construction"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / reference_geometry
      Removed value: -{
      -  "const": "iris",
      -  "type": "string"
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / scale
      Removed value: -{
      -  "const": "iris",
      -  "type": "string"
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / source_refs
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / source_updated_at
      Removed value: -{
      -  "type": "null"
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / territory_id
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / result / properties / rows / items / properties / metrics / items / properties / unit
      Removed value: -{
      -  "const": "equipment_count",
      -  "type": "string"
      -}
    • changedOutput schema / properties / result / properties / rows / items / properties / metrics / items / required
      Previous value: -[
      -  "key",
      -  "value",
      -  "unit",
      -  "status",
      -  "reason",
      -  "scale",
      -  "territory_id",
      -  "evidence_type",
      -  "counted_unit",
      -  "definition_version",
      -  "radius_m",
      -  "distance_method",
      -  "reference_geometry",
      -  "source_refs",
      -  "data_period",
      -  "source_updated_at",
      -  "imported_at",
      -  "computed_at"
      -]New value: +[
      +  "key",
      +  "value",
      +  "status",
      +  "reason_code"
      +]
    • changedOutput schema / properties / result / properties / rows / items / properties / metrics / maxItems
      Previous value: -5New value: +10
    • removedOutput schema / properties / result / properties / rows / items / properties / street / properties / iris_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / result / properties / rows / items / properties / street / properties / iris_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / result / properties / rows / items / properties / street / properties / point / anyOf
      Previous value: -[
      -  {
      -    "prefixItems": [
      -      {
      -        "maximum": 90,
      -        "minimum": -90,
      -        "type": "number"
      -      },
      -      {
      -        "maximum": 180,
      -        "minimum": -180,
      -        "type": "number"
      -      }
      -    ],
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": false,
      +    "maxItems": 2,
      +    "minItems": 2,
      +    "prefixItems": [
      +      {
      +        "maximum": 90,
      +        "minimum": -90,
      +        "type": "number"
      +      },
      +      {
      +        "maximum": 180,
      +        "minimum": -180,
      +        "type": "number"
      +      }
      +    ],
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / result / properties / rows / items / required
      Previous value: -[
      -  "street",
      -  "metrics",
      -  "georisques"
      -]New value: +[
      +  "street",
      +  "metrics",
      +  "additional_unnamed_stop_points",
      +  "energy",
      +  "georisques"
      +]
    • changedOutput schema / properties / result / required
      Previous value: -[
      -  "rows",
      -  "same_iris",
      -  "summary"
      -]New value: +[
      +  "rows",
      +  "same_iris",
      +  "not_comparable",
      +  "definitions",
      +  "reasons",
      +  "summary"
      +]
    • changedOutput schema / properties / schema_version / const
      Previous value: -"1.0"New value: +"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 declare a safe, idempotent, closed-world read, so the description correctly spends its words elsewhere: it warns that streets in the same IRIS share identical facility counts and that non-comparable dimensions are flagged. That is real data-granularity context an agent could not infer from the structured fields.

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?

Three short sentences, each carrying a distinct point (scope, granularity caveat, comparability caveat), with the scope constraint front-loaded. Nothing is padded, though the terseness leaves the parameter story untold.

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 shape and the flagging of incomparable dimensions need not be spelled out. However, for a tool with two parameters and zero schema descriptions, the description should say what happens when 'dimensions' is omitted and confirm that the street identifiers must span comparable territories.

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%, and the description only restates the 2–5 street bound that the schema already enforces via minItems/maxItems. The optional 'dimensions' parameter is never explained: no default when omitted, no indication that it selects a subset of the enum, only an oblique mention that non-comparable dimensions get flagged.

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?

The description states a concrete case (comparing 2–5 streets side by side) and explicitly excludes a ranking or winner, which distinguishes it from any scoring tool. The comparison verb itself is carried by the name/title rather than the description text, and no sibling is named for contrast.

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?

The multi-street framing implies when to use it (when you want a side-by-side of several streets rather than a single one), but it never states exclusions or points to alternatives such as callejear_get_street_context for a single street. The 2–5 bound is the only explicit constraint.

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