Skip to main content
Glama

OpenDataModels MCP server

get_data_model

Retrieve the complete JSON Schema and metadata for a specific Smart Data Model. Use this when the user already knows the model name and wants its full definition, required fields, attribute types, or documentation URL. Example: get_data_model({"model_name": "WeatherObserved", "include_examples": true})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_nameYesThe exact name of the data model entity — e.g., 'WeatherObserved', 'OffStreetParking', 'AirQualityObserved'. Use search_data_models first if unsure of the exact name.
include_examplesNoInclude NGSI-LD payload examples in the response (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It clearly indicates a non-mutating retrieval operation and specifies the output content (JSON Schema, metadata, required fields, documentation URL). It does not discuss error handling or caching, but no risky behavior is hidden.

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 two sentences plus a compact example. It is front-loaded with the primary purpose and avoids repeating schema information, making it efficient and well-structured.

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?

For a simple retrieval tool with two well-documented parameters and no output schema, the description covers the purpose, clear usage context, and an example. The sibling list provides additional context for alternatives, making the description complete.

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 100% description coverage for both parameters, so the schema already conveys the semantics. The description adds a practical example but does not introduce additional parameter details beyond what the schema documents.

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 uses a specific verb ('Retrieve') and resource ('complete JSON Schema and metadata for a specific Smart Data Model'), distinguishing it from sibling search tools by emphasizing a known model name. It also provides an example, making its purpose unambiguous.

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

Usage Guidelines5/5

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

The description explicitly states when to use this tool ('when the user already knows the model name') and what it returns. It also directs users to 'search_data_models first if unsure' in the input schema, giving clear alternative guidance.

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