Skip to main content
Glama
Orphnet

@orphnet/d1-eloquent-mcp

by Orphnet

validate_model

Compare a model's declared shape against the D1 schema to detect drift and return a list of issues.

Instructions

Compare a single model's declared shape (table, casts, softDeletes, timestamps, revisions) against the actual local D1 schema and return any drift as a list of issues.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesModel class name

Schema Changelog

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

  1. First observedv0.1.0-beta.2

TDQS

A4/5.0
Behavior3/5

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

Without annotations, the description must disclose safety and side effects. It correctly states it is a read/compare operation with no destructive action. However, it doesn't mention error behavior (e.g., what if model doesn't exist or schema is unreachable), rate limits, or if it alters any state. The description adequately describes the core behavior but omits edge-case transparency.

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?

The description is a single, well-structured sentence that front-loads the primary action ('Compare a single model's declared shape') and lists the specific aspects checked. Every phrase is necessary; there is no redundancy or filler. The length is appropriate for the tool's moderate complexity.

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?

Given the minimal input schema (1 param, no enums) and no output schema, the description provides sufficient context for the tool's inputs and outputs. It explains the source of comparison ('declared shape' vs 'actual local D1 schema') and the output ('list of issues'). However, it could be more complete by hinting at the structure of those issues (e.g., 'field type mismatch, missing column'), but the current level is adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with one parameter ('name'). The description adds value by explaining that 'name' refers to a 'Model class name' (not a file name or table name) and implies it must correspond to a Laravel model. This context is richer than the schema's 'Model class name' alone, though the schema's description is already clear.

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 uses a specific verb ('compare') and resource ('a single model's declared shape...against the actual local D1 schema'), clearly distinguishing this from sibling tools like 'validate_all' or 'list_models'. It also specifies the exact fields checked (table, casts, softDeletes, timestamps, revisions) and the output type (drift issues), making the purpose unambiguous.

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 this tool is for validating one model, but does not explicitly contrast it with 'validate_all' (which presumably checks all models). It also doesn't mention prerequisites (e.g., model must exist, D1 schema must be accessible) or when not to use it. The context allows inference, but the description lacks direct guidance.

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/Orphnet/d1-eloquent-mcp'

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