Skip to main content
Glama

analyze_data_model

Read-only

Audits the complete data model (MCD/ERD) and returns the inconsistencies (missing PK, broken FK, FK cycles, duplicate names, many-to-many without a junction table…). Handy when the user asks 'check my ERD' or before proposing an SQL export.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_data_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
minSeverityNoFilter the issues by minimum severity (default 'info' = all)
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. Changed2 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 / minSeverity / description
      Previous value: -"Filtrer les issues par sévérité minimale (défaut 'info' = tout)"New value: +"Filter the issues by minimum severity (default 'info' = all)"
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. Beyond that, the description discloses what the operation actually computes and what category of findings it returns, which is real added context. It does not say whether results are capped, ordered, or how large a model it can handle.

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?

Two sentences with no filler. The audit scope and the concrete check list are front-loaded, and the usage cue follows. Every clause earns its place.

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?

With no output schema, the description compensates by listing the classes of inconsistencies returned, so an agent knows what to expect. Two optional params are fully documented in the schema. The only minor gap is result shape/size expectations, which is not critical for a read-only diagnostic.

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%: minSeverity documents its enum and default, and expectedProjectId documents its UUID semantics and session override. The description adds nothing about either parameter, so the schema carries the full burden and 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 verb ('Audits') and a specific resource ('the complete data model (MCD/ERD)'), then enumerates the concrete outputs it produces (missing PK, broken FK, FK cycles, duplicate names, many-to-many without a junction table). This is far more specific than the sibling analyzers (analyze_canvas, analyze_tasks), which target different artifacts.

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?

Gives an explicit trigger ('when the user asks "check my ERD"') and a workflow placement ('before proposing an SQL export'), which is enough for an agent to decide when to reach for it. It stops short of stating when *not* to use it or naming an alternative tool to prefer.

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.