Skip to main content
Glama

OpenDataModels MCP server

validate_data

Validate a JSON payload against the schema of a specific Smart Data Model. Use this when the user has an IoT payload or NGSI-LD entity and wants to check if it conforms to the standard. Returns a structured result with pass/fail and a list of specific validation errors if any. Example: validate_data({"model_name": "WeatherObserved", "data": {"id": "urn:ngsi-ld:WeatherObserved:001", "type": "WeatherObserved", "temperature": {"type": "Property", "value": 22.3}}})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe JSON object to validate. Accepts both NGSI-LD normalized format (with type/value wrappers) and key-values format.
strictNoStrict validation mode — disallows additional properties (default: false)
model_nameYesThe exact data model name to validate against — e.g., 'WeatherObserved'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses that the tool returns a structured result with pass/fail and a list of validation errors, and it gives a usage example. It doesn't explicitly state the operation is side-effect-free, but this is implied by 'validate' and 'check if it conforms.'

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?

The description is concise, with four sentences covering purpose, usage, return value, and an example. The example is slightly lengthy but adds clarity. There's no filler or redundancy.

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 description covers the tool's purpose, when to use it, and its output format. It doesn't describe strict mode's effect in detail, but the schema covers that. Given the moderate complexity and no output schema, the description is sufficiently complete, though it could explicitly mention the non-mutating nature.

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?

The input schema provides comprehensive descriptions for all three parameters (100% coverage), including the `strict` behavior and accepted data formats. The tool description adds an example but doesn't enrich meaning beyond the schema, so the baseline score of 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 starts with 'Validate a JSON payload against the schema of a specific Smart Data Model,' clearly stating a specific action and resource. This distinguishes it from sibling tools focused on export, search, or catalog access. The concrete example reinforces the intended use.

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

Usage Guidelines4/5

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

It explicitly says 'Use this when the user has an IoT payload or NGSI-LD entity and wants to check if it conforms to the standard,' providing clear context. It doesn't list alternatives, but none of the sibling tools offer validation functionality, so this guidance is sufficient.

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