Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

db_schema

Read-onlyIdempotent

Analyze database schema definitions from Prisma, Drizzle, SQLAlchemy, Django ORM, TypeORM, and raw SQL DDL to return tables, columns, types, relationships, and migrations.

Instructions

Analyze database schema definitions. Parses Prisma, Drizzle, SQLAlchemy, Django ORM, TypeORM entities, and raw SQL DDL. Returns tables, columns, types, relationships, and migrations.

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": "db_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryNoSubdirectory to search for schema files

Output Schema

NameRequiredDescriptionDefault
tablesYes
summaryYes
relationshipsYes
scannedPatternsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered structurally. The description adds the supported-framework scope and enumerates extracted artifact types, but says nothing about behavior when a format is unsupported, when multiple schemas are found, whether parsing recurses, or what happens with zero matches.

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?

Three short sentences, front-loaded with the core verb and then scoped by supported formats and outputs. No filler, hedging, or repetition; every clause carries information.

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?

An output schema exists, so the enumerated return values are not strictly required, and annotations plus full parameter coverage remove the safety and parameter burden. The remaining gap is edge-case behavior (no schema found, unsupported formats, default directory scope), which is minor for a read-only single-parameter tool.

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?

With a single optional parameter at 100% schema description coverage, the schema already explains that 'directory' is a subdirectory to search. The description adds no further meaning, such as default scope when the parameter is omitted or whether nested directories are included, so the baseline 3 applies.

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?

States a specific verb and resource ('Analyze database schema definitions') and enumerates the exact schema languages supported (Prisma, Drizzle, SQLAlchemy, Django ORM, TypeORM, raw SQL DDL). This lets an agent know precisely what input this tool accepts, though it never names or contrasts a sibling such as api_contracts or dependency_graph, so differentiation is left to inference.

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?

Usage is only implied: the list of parsed formats tells the agent this applies when a repo contains ORM models or DDL, but there is no explicit when-to-use, when-not-to-use, or alternative-tool routing. No prerequisites or scoping advice (e.g. whole-repo vs subdirectory) are given.

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