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.

Input Schema

NameRequiredDescriptionDefault
minSeverityNoFilter the issues by minimum severity (default 'info' = all)
expectedProjectIdNoUUID 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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)"
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description usefully discloses the class of findings returned, but says nothing about scope or permissions – notably that the call is refused unless access is granted to a targeted project, which is real behavioral context the 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler: the capability and its outputs come first, then the usage cues. Every clause carries information about either what is detected or when to invoke it.

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 and only two optional params, the description adequately explains what the tool returns (a set of inconsistencies) and when to run it, so an agent can call it correctly with defaults. It is slightly thin on scope/permission behavior, but nothing essential to invocation is missing.

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%, so both parameters (minSeverity, expectedProjectId) are already documented in the schema, including the default and the project-targeting/refusal semantics. The description adds no parameter-level detail beyond that, so 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 resource (complete data model MCD/ERD), then enumerates the exact defect classes it detects (missing PK, broken FK, FK cycles, duplicate names, many-to-many without junction table). This distinguishes it from the validate_* and analyze_canvas/analyze_tasks siblings, which target other 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 two concrete triggers: a user asking 'check my ERD', and the pre-export checkpoint before proposing SQL. That is clear when-to-use context, but it never names an alternative to prefer instead (e.g., validate_arch, export_ddl) or states when this tool is not the right call.

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.