django-orm-lens
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DJANGO_ORM_LENS_ROOT | No | Absolute path to the Django project root directory. If not set, uses the current working directory. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_appsA | List every Django app in the workspace with model counts. |
| list_modelsC | Flat list of app.Model. Optional 'app' filter. |
| describe_modelA | Full JSON detail for one model: fields, relations, Meta, base classes, file path. |
| find_relationsC | Outbound (this model → others) and inbound (others → this) relations. |
| er_diagramB | Emit a Mermaid erDiagram for the whole workspace. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool serves a distinct purpose: listing apps/models, describing a single model, finding relations, and generating an ER diagram. No overlap in functionality.
Most tools follow a clear verb_noun pattern (list_apps, list_models, describe_model, find_relations). The exception is 'er_diagram' which is noun_noun, though still readable.
With 5 tools, the set is well-scoped for Django ORM introspection. Each tool earns its place, covering essential operations without redundancy.
The tool surface covers the full lifecycle of ORM exploration: listing apps/models, retrieving model details, analyzing relations, and visualizing the schema. No obvious gaps.