Skip to main content
Glama
dixitayush
by dixitayush

parse_er_diagram

Extract database schema from Mermaid ER diagrams, converting entities, attributes, and relationships into PostgreSQL tables with auto-generated REST and GraphQL CRUD APIs.

Instructions

Parse a Mermaid ER diagram and extract the complete database schema including entities, attributes, and relationships.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
diagramNoThe Mermaid ER diagram text. If not provided, will use configured diagram source.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It states the parse/extract action but does not reveal whether the extracted schema is persisted, whether it overwrites an existing schema, whether a connection must be active, or what the actual return value is. For a tool sitting among schema-management siblings, this is a meaningful transparency gap.

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?

The description is a single direct sentence with the action and output front-loaded and no filler. It earns a 4 for efficiency, though it stops short of 5 because the terseness omits usage and behavioral context that would make it genuinely more useful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description needs to explain what happens on invocation and what the caller receives. It names the extracted components (entities, attributes, relationships) but omits side effects, persistence behavior, return format, and how this relates to sibling tools. This is insufficient for an agent deciding between parse_er_diagram, validate_diagram, and list_entities.

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 has 100% coverage for the single optional 'diagram' parameter, including the fallback to the configured diagram source. The tool description adds no parameter-level detail beyond the schema, so the baseline of 3 is appropriate.

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 names a specific action ('Parse'), a specific input type ('Mermaid ER diagram'), and a concrete outcome ('extract the complete database schema including entities, attributes, and relationships'). This clearly distinguishes it from sibling tools that list, validate, or generate rather than parse and extract.

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

Usage Guidelines3/5

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

The description implies the tool is the entry point for loading a schema from a diagram, but it gives no explicit guidance about when to prefer it over validate_diagram, list_entities, or generate_sql. There is no mention of prerequisites, ordering, or exclusions, so the agent must infer usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dixitayush/mcp-api'

If you have feedback or need assistance with the MCP directory API, please join our Discord server