Skip to main content
Glama

Crime

crime
Read-onlyIdempotent

Get recorded offence rates by type per 1,000 residents for a Spanish place, with yearly change, year-to-date figures and province, region and Spain comparisons.

Instructions

Recorded crime in a place from the Interior ministry: offences by type (theft, burglary, robbery, assault, drugs, cybercrime and more) for the latest full year, per 1,000 residents, the change on the year before, the latest year-to-date figures, and province, region and Spain for comparison.

Published for municipalities over 20,000 residents, provinces and regions; smaller places
get the province's figures, and the result says so.

Input Schema

NameRequiredDescriptionDefault
placeYesPlace name or INE code: municipality ('Valladolid' or '47186'), province ('41'; a bare name like 'Sevilla' means the city), autonomous community ('Cataluña' or 'CA09'), district ('4718603') or census tract ('4718603012'). 'Name, Province' picks between same-named towns.

Output Schema

NameRequiredDescriptionDefault
dataYes
checksNo
sourcesYes
confidenceYesLowest confidence across inputs: high, medium or low. Never state a conclusion more strongly than this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world behavior. The description adds genuine non-annotation context: only municipalities over 20,000 residents have their own figures, smaller places return the province's data, and the result itself indicates this fallback. That is exactly the kind of reliability caveat an agent needs.

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 data content and ending with the coverage caveat. Dense but every clause (offence types, unit, comparison levels, publication threshold) adds information; only the long enumeration in the first sentence slightly taxes readability.

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

Completeness5/5

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

Given a single fully documented parameter, rich annotations, and an output schema that handles return values, the description supplies everything else needed: what is measured, the unit, comparison geographies, and the fallback for small places.

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 the single 'place' parameter is thoroughly documented in the schema (INE codes, format variants, disambiguation with 'Name, Province'). The description adds no parameter-level detail beyond that, so the 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?

States a specific resource (Interior ministry recorded crime) with the exact metric (offences by type, per 1,000 residents, YoY change, YTD), so an agent immediately knows what data it returns. No sibling tool covers crime statistics, so it is inherently distinguished from businesses, income, rents, demographics, etc.

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?

Usage is only implied by the data domain; there is no explicit 'use this when… / not for…' statement or named alternative. The coverage note (smaller places fall back to province figures) hints at scope but is a behavior caveat rather than routing guidance.

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