Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ANTHROPIC_API_KEYNoAnthropic API key (optional - enables LLM extraction)
WORLD_MODEL_DEBUGNoDebug mode (set to 1 to enable)
WORLD_MODEL_DB_PATHNoDatabase location (default: ./.claude/world-model/)./.claude/world-model/
WORLD_MODEL_REASONING_MODELNoModel selection for reasoning (default: claude-3-5-sonnet-20241022)claude-3-5-sonnet-20241022
WORLD_MODEL_EXTRACTION_MODELNoModel selection for extraction (default: claude-3-haiku-20240307)claude-3-haiku-20240307

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
query_factB

Query the knowledge graph for facts about entities (APIs, functions, classes, etc.)

record_eventC

Record a development event (file edit, test run, etc.)

validate_changeB

Validate a proposed code change against known constraints

get_constraintsC

Get constraints (linting rules, patterns, conventions) for a file

record_correctionC

Record a user correction to Claude's output (high-priority learning signal)

get_related_bugsC

Get bugs fixed in a file and assess regression risk

seed_projectB

Scan the project codebase and populate the knowledge graph with entities and relationships from existing code

ingest_pr_reviewsB

Pull GitHub PR review comments and convert them into learned constraints in the knowledge graph

record_decisionC

Record a decision trace: what the agent proposed and how the human responded

get_decision_logC

Get decision traces showing agent proposals and human corrections

record_test_outcomeC

Record test results and link failures to recent code changes

get_co_edit_suggestionsC

Get files commonly edited alongside the given file based on historical patterns

search_globalC

Search entities across all registered world-model projects

predict_regressionA

Score regression risk for a proposed change to a file based on past bugs, test failures, and constraint violations

simulate_changeC

Project blast radius and historical outcomes for a proposed change

predict_test_failuresC

Surface tests likely to fail given a set of edited files

promote_constraintC

Promote a constraint from this project to all other registered projects

get_health_reportB

Memory health diagnostics: orphans, stale facts, contradictions, decay candidates, DB sizes

get_context_for_actionA

Pre-action context bundle: constraints, decisions, bugs, co-edits, related facts, and risk score for a file before editing

find_contradictionsB

Find pairs of facts that contradict each other based on similarity and status differences

recall_transcript_rangeB

Hydrate a Claude Code session transcript by line range. Lets agents trace a fact back to the exact conversation that produced it.

export_claude_mdC

Generate a CLAUDE.md document from the knowledge graph (top constraints, recent decisions, known bug regions, co-edit patterns).

get_injection_contextA

Return a compact constraint+fact bundle for PostCompact / UserPromptSubmit hooks to re-inject after context loss.

record_compaction_auditC

Record a context-compaction event with token counts and what was re-injected. Lets developers audit what was remembered across compaction boundaries.

get_compaction_auditB

List recent compaction audit entries, most-recent first. Filter by session_id or limit count.

resolve_contradictionC

Pick a winner between two contradicting facts using a confidence-weighted strategy (auto, keep_higher_confidence, keep_most_recent, keep_most_sources, supersede_a, supersede_b, manual).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/SaravananJaichandar/world-model-mcp'

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