Skip to main content
Glama

import_data_model

Destructive

Imports a data model from a universal format and turns it into OrgGen entities. Supported parsers: 'dbml', 'sql-postgres', 'json-schema'. Mode 'replace' (default) replaces all existing ERD entities — suited when the user wants to bootstrap the project from a source file. Mode 'merge' adds to the existing entities without touching the old ones — useful to merge a sub-domain. Blocks of the org-chart kind (groups, subsidiaries) are never touched. Returns warnings for unrecognized types (mapped to 'string' by default) and orphan FKs.

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": {
      "format": "<format>",
      "payload": "<payload>"
    },
    "name": "import_data_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo'replace' (default) replaces all existing ERD entities with the imported model. 'merge' adds to the existing entities while avoiding duplicates by name — relations between new and old entities are kept if the names match.
formatYesFormat of the input payload. Supported parsers: 'dbml', 'sql-postgres', 'json-schema'.
originNoTop-left corner of the grid layout (default x=200, y=200).
payloadYesText content of the model to import (the complete source file).
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed5 schema fields changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / format / description
      Previous value: -"Format du payload d'entrée. Parsers supportés : 'dbml', 'sql-postgres', 'json-schema'."New value: +"Format of the input payload. Supported parsers: 'dbml', 'sql-postgres', 'json-schema'."
    • changedInput schema / properties / mode / description
      Previous value: -"'replace' (défaut) remplace toutes les entités MCD existantes par le modèle importé. 'merge' ajoute aux entités existantes en évitant les doublons par nom — les relations entre nouvelles et anciennes entités sont conservées si les noms correspondent."New value: +"'replace' (default) replaces all existing ERD entities with the imported model. 'merge' adds to the existing entities while avoiding duplicates by name — relations between new and old entities are kept if the names match."
    • changedInput schema / properties / origin / description
      Previous value: -"Coin haut-gauche du layout grille (par défaut x=200, y=200)."New value: +"Top-left corner of the grid layout (default x=200, y=200)."
    • changedInput schema / properties / payload / description
      Previous value: -"Contenu textuel du modèle à importer (le fichier source au complet)."New value: +"Text content of the model to import (the complete source file)."
  4. First observed

TDQS

A4.1/5.0
Behavior5/5

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

The annotations declare destructiveHint=true, and the description goes well beyond that by naming exactly what is destroyed in replace mode (all existing ERD entities) and what is explicitly preserved (org-chart blocks). It also discloses the return behavior — warnings for unrecognized types coerced to 'string' and for orphan FKs — which annotations do not cover at all.

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?

It is front-loaded with the core action, then mode semantics, then preservation guarantees and return warnings — a logical order with no filler sentences. The parser list is duplicated from the schema's enum description, which is the only mild redundancy.

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 destructive 5-parameter import with a nested object and no output schema, the definition covers what changes, what is protected, mode tradeoffs, and what comes back as warnings. Combined with a fully documented schema, an agent has everything needed to invoke it correctly.

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 coverage is 100%, so both required parameters and the origin object are already documented in the schema, including the same replace/merge tradeoff the description restates. The description adds little parameter-level meaning beyond the schema and never mentions 'origin' or 'expectedProjectId'; a baseline 3 is appropriate.

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 opens with a specific verb and resource ('Imports a data model ... turns it into OrgGen entities') and bounds the scope by stating that org-chart blocks (groups, subsidiaries) are never touched, which separates it from the org-chart importers. It stops short of naming a concrete sibling such as export_data_model or analyze_data_model, so an agent still has to infer the boundary from scope wording alone.

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 gives explicit when-to-use guidance for each mode: 'replace' when bootstrapping a project from a source file, 'merge' when merging a sub-domain. What is missing is guidance on when to pick this tool over the other import_* siblings (arch diagram, org, tasks), which is left implicit.

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.