Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
totem_init_toolA

Initialize totem for a project. Creates .totem/ directory and DB if missing.

Args: project: Optional project root path. Auto-detected from git root if omitted.

memory_create_toolB

Create a new memory item.

Args: type: One of: decision, invariant, gotcha, rejected_idea, assumption, open_question, ambiguity, contract, constraint, hypothesis, observation, bug, architecture, implementation title: Short title for the memory statement: The factual claim being stored tags: At least one tag for categorization details: Optional additional details confidence: 0 to 1; derived from asserted_by when omitted (user 1.0, test 0.95, source/git/doc 0.9, runtime 0.7, agent 0.6; hypotheses cap at 0.4) importance: 0 to 1, default 0.5 evidence: List of evidence objects with path, startLine, endLine, contentHash related_memory_ids: IDs of related memory items metadata: Extra metadata. Decision items accept 'rationale' (strongly recommended: explain WHY this decision was made, alternatives considered). Invariant items require 'verificationMethod' and 'condition' asserted_by: Who established the claim: user, test, source, git, doc, runtime, agent (default agent) applicability: current, legacy, deprecated, planned (orthogonal to status) scope: user, project, path, task — or JSON {"kind": "...", "value": "..."} valid_from: ISO timestamp when the claim starts being true valid_to: ISO timestamp when the claim stops being true supersedes_id: ID of a memory this one replaces (marks it superseded) project: Optional project root path. Auto-detected from git root if omitted.

memory_relate_toolB

Create a typed relation between two memories.

Args: from_id: Source memory ID to_id: Target memory ID kind: supersedes, contradicts, invalidates, derived_from, verified_by, refines, depends_on, touches (supersedes/invalidates update the target status) valid_from: Optional ISO start of the relation validity window. valid_to: Optional ISO end of the relation validity window. source_episode: Optional session or episode id that recorded the edge. project: Optional project root path.

memory_relations_toolC

List the typed relations involving a memory.

memory_history_toolC

Show the immutable timeline of a memory: created, updated fields, deleted.

memory_get_toolA

Retrieve a memory item by ID with staleness check.

Args: id: The memory item ID include_evidence: Whether to check evidence staleness (default True) project: Optional project root path. Auto-detected from git root if omitted.

memory_update_toolB

Update a memory item. Reason is optional but strongly recommended.

Args: id: The memory item ID reason: Why this update was made (strongly recommended for audit trail; defaults to 'maintenance') title: New title statement: New statement details: New details tags: New tags status: New status (active, potentially_stale, invalidated, resolved, superseded) confidence: New confidence (0-1) importance: New importance (0-1) evidence: New evidence list metadata: New metadata valid_from: New validity start (empty string clears it) valid_to: New validity end (empty string clears it) project: Optional project root path. Auto-detected from git root if omitted.

memory_delete_toolB

Soft-delete a memory item. Reason is required.

Args: id: The memory item ID reason: Required reason for deletion project: Optional project root path. Auto-detected from git root if omitted.

memory_verify_toolA

Record that a memory was verified: sets verified_at and verified_commit.

Verification, not provenance, is what earns confidence 1.0. Pass check_id from memory_check_record_tool for evidence-derived verification; without it the verification is recorded as an assertion.

Args: id: The memory item ID to mark verified method: How it was verified (stored in history) commit: Git commit verified at (defaults to HEAD) confidence: Confidence to set (default 1.0) verified_by_id: Optional memory ID holding the verification artifact check_id: Recorded check ID that justifies the verification project: Optional project root path. Auto-detected from git root if omitted.

memory_check_record_toolB

Record an observed check (command, exit code, output hash) for a memory.

Args: id: The memory item the check supports name: Short check name, e.g. "pytest tests/test_auth.py" command: The command that was run cwd: Working directory the command ran in exit_code: Observed exit code (0 is a pass) output: Optional captured output (hashed, not stored verbatim) output_hash: Pre-computed SHA256 of the output evidence_hash: Evidence digest the check ran against (defaults to now) commit: Git commit the check ran at (defaults to HEAD) ran_at: ISO timestamp of the run project: Optional project root path. Auto-detected from git root if omitted.

memory_audit_toolC

Verify the history hash chain and each item's recorded state digest.

memory_quality_toolB

Report signal ratio, provenance, stale evidence, conflicts, and digest quality.

totem_manifest_toolC

Return the stable digest of the registered tool surface.

totem_embedding_status_toolB

Report the configured retrieval encoder and its fallback state.

totem_eval_toolB

Evaluate context ranking on a golden case file (or an auto smoke set).

Args: cases_file: JSON file of cases; omitted means derive cases from memories k: Cutoff for recall@k baseline_file: Optional prior report to gate against tolerance: Allowed recall/MRR regression p95_ms: Latency budget for the gate project: Optional project root path

totem_validate_models_toolD

Gate the calibrated trust head on a temporal held-out slice.

memory_revalidate_toolB

Void verifications whose evidence changed since they were made.

Args: dry_run: Report candidates without changing them (default True) project: Optional project root path. Auto-detected from git root if omitted.

memory_evidence_refresh_toolC

Re-hash evidence, relocate symbols, and report orphaned paths.

memory_gc_toolA

Purge terminal-state memories older than a retention window.

Only superseded/invalidated/resolved items untouched for retention_days and not referenced by any relation are eligible. Defaults to dry-run.

Args: retention_days: Age threshold in days (default 90) dry_run: Report candidates without deleting (default True) project: Optional project root path. Auto-detected from git root if omitted.

memory_list_toolA

List memory items with optional filters.

Args: type: Filter by type (decision, invariant, gotcha, rejected_idea) tags: Filter by tags (items must have at least one) status: Filter by status (active, potentially_stale, invalidated) sort: Sort by 'created_at', 'updated_at' (default), or 'importance' limit: Maximum items to return (default 50) project: Optional project root path. Auto-detected from git root if omitted.

memory_recent_toolA

List most recently created memories.

Args: limit: Maximum items to return (default 5) project: Optional project root path. Auto-detected from git root if omitted.

memory_tasks_toolA

List in-progress task memories (tagged with task:*).

Args: limit: Maximum items to return (default 10) project: Optional project root path. Auto-detected from git root if omitted.

memory_commands_toolA

List command outcome memories (gotchas tagged with cmd:*).

Args: limit: Maximum items to return (default 20) project: Optional project root path. Auto-detected from git root if omitted.

resolve_conflict_toolC

Mark a conflict as resolved.

Args: conflict_id: The conflict ID resolution: Description of how the conflict was resolved (e.g. 'Kept existing: X') project: Optional project root path. Auto-detected from git root if omitted.

memory_search_toolB

Hybrid tag + full-text search.

Args: query: Search query (full-text via Turso FTS5) types: Filter by memory types tags: Filter by tags include_stale: Whether to include potentially stale items limit: Maximum results (default 20) as_of: Evaluate temporal validity at this ISO timestamp include_expired: Include memories outside their validity window include_file_state: Include operational file-state TLDRs (default false) project: Optional project root path. Auto-detected from git root if omitted.

memory_feedback_toolC

Record whether a memory was useful, wrong, irrelevant, or stale.

Args: id: Memory item id signal: useful, wrong, irrelevant, verified, or stale query: Task or query the item was considered for tags: Tags supplied with that query weight: Relative weight in [0, 10] (default 1) project: Optional project root path

memory_feedback_list_toolC

List recorded retrieval feedback.

memory_train_models_toolC

Fit the reranker and calibrator from recorded feedback.

memory_consolidate_toolA

Cluster near-duplicate memories and optionally supersede duplicates.

Args: apply: Apply the consolidation (default is a dry run) threshold: Cosine similarity needed to join a cluster (default 0.92) project: Optional project root path

engineering_context_toolB

Assemble engineering context with output ordering.

Pipeline: tag match -> score -> sort -> truncate -> serialize. Conflicts and warnings are NEVER dropped for budget.

Args: tags: Tags to match against task: Optional task description (shown in output header) token_budget: Optional token budget for truncation types: Filter by memory types include_stale: Whether to include potentially stale items current_task: Description of what you're working on right now. Boosts scoring for memories relevant to this task. max_item_chars: Cap a single item so it cannot dominate the budget as_of: Evaluate temporal validity at this ISO timestamp include_expired: Include memories outside their validity window include_file_state: Include operational file-state TLDRs (default false) paths: Filter items whose evidence matches these file paths project: Optional project root path. Auto-detected from git root if omitted.

memory_export_toolA

Export all memories and conflicts as portable JSON.

Args: project: Optional project root path. Auto-detected from git root if omitted.

memory_import_toolA

Import memories from a previously exported dict. Skips duplicate IDs.

Args: data: The export dict containing 'items' and optionally 'conflicts' project: Optional project root path. Auto-detected from git root if omitted.

memory_file_context_toolA

Return and refresh a file's current-state TLDR, keyed by content hash.

Use this after reading a file to store what the file now does, or before a read to check whether a cached TLDR is still fresh. An unchanged file returns fresh: true without writing.

Args: path: File path, relative to the project or absolute reason: Why the file state was captured statement: Optional override for the generated TLDR details: Optional additional details tags: Extra tags refresh: Update the stored TLDR when the content changed title: Optional title override project: Optional project root path

memory_session_summary_toolA

Create or update one compact summary for a work session.

Args: session_id: Stable session id; repeat calls update the same record summary: One or two sentences describing what changed and why files: Changed file paths tools: Tool names used in the session commit: Git commit, defaults to HEAD title: Optional title override reason: Optional reason for the update project: Optional project root path

memory_workflow_toolC

Create or update a reusable procedure with steps and verification.

memory_profile_toolC

Create or update one always-on user profile block in the user database.

memory_graph_toolC

Return entities and the memories linked to them.

memory_rollup_toolC

Summarize file-state memories into module and project memories.

memory_heat_toolC

Rank memories by recency, importance, and access.

memory_touch_toolB

Record that memories were read, feeding the heat score.

memory_decay_toolC

Archive low-heat operational and episodic memories past their TTL.

memory_induce_workflow_toolC

Turn one session summary into a reusable workflow draft.

memory_maintenance_toolC

Run revalidation, rollup, decay, and consolidation in one cycle.

memory_export_markdown_toolC

Export active memories as Markdown notes with wikilink relations.

memory_import_markdown_toolC

Import Markdown notes produced by memory_export_markdown.

register_file_read_toolA

Register facts learned from reading a file. Auto-hashes content, updates existing or creates new.

Call this after reading a file to store what you learned. Prevents re-reading the same file in future sessions.

Args: path: File path (e.g. 'src/auth.py') statement: What you learned (e.g. 'getUser() returns User | null, takes user_id: int') subject: What the fact is about (e.g. 'getUser()') kind: What kind of code fact (api/function/module/type/config/schema) tags: Tags for categorization start_line: Optional line range start (auto-detected if omitted) end_line: Optional line range end (auto-detected if omitted) title: Optional title (defaults to 'File: {filename}') details: Optional additional details symbol: Optional symbol the fact is about (e.g. 'UserService.authenticate'); makes evidence survive line moves project: Optional project root path. Auto-detected from git root if omitted.

register_file_write_toolA

Register a file write/modification. Auto-hashes content, updates existing or creates new.

Call this after editing or writing a file to document what changed and why. The commit-gate hook will block all other tools until you register the write.

Args: path: File path (e.g. 'src/auth.py') statement: What changed (e.g. 'Added input validation to getUser()') reason: Why the change was made (e.g. 'Fix: getUser() crashed on null input') tags: Tags for categorization start_line: Optional line range start end_line: Optional line range end title: Optional title (defaults to 'File: {filename}') details: Optional additional details symbol: Optional symbol the change touches project: Optional project root path. Auto-detected from git root if omitted.

decision_createA

Create a decision memory. Always provide rationale explaining WHY.

invariant_createD

Create an invariant memory. Requires verificationMethod and condition.

gotcha_createC

Create a gotcha memory for non-obvious behaviors.

rejected_idea_createB

Create a rejected idea memory. Prevents re-proposing dead ends.

assumption_createD

Create an assumption memory. classify: fact/assumption/hypothesis/guarantee.

open_question_createC

Create an open question memory. impact: low/medium/high/critical.

ambiguity_createC

Create an ambiguity memory. impact: low/medium/high/critical. high/critical = blocking.

flag_ambiguityC

Flag an ambiguity. Convenience wrapper for ambiguity_create. impact: low/medium/high/critical.

contract_createC

Create a contract memory for observable behavior of functions/APIs.

constraint_createC

Create a constraint memory for implementation restrictions.

hypothesis_createB

Create a hypothesis memory. Never auto-promote to invariant/decision.

observation_createC

Create an observation memory. Never auto-promote to invariant/decision.

bug_createC

Create a bug memory. State machine: open→confirmed→fixed→verified.

architecture_createC

Create an architecture memory for component structure mapping.

implementation_createC

Create an implementation memory for codebase facts (API, function, module, type, config, schema).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

C2.4/5.0

Scored across 62 tools

Disambiguation2/5

A generic memory_create_tool that accepts all 14 memory types coexists with 14 type-specific create tools (contract_create, bug_create, assumption_create, etc.), so an agent cannot tell which path is canonical. Several other clusters overlap heavily: register_file_read_tool vs memory_file_context_tool, flag_ambiguity vs ambiguity_create, memory_export_tool vs memory_export_markdown_tool, and a fleet of list/search variants (memory_list_tool, memory_recent_tool, memory_tasks_tool, memory_commands_tool, memory_search_tool, memory_heat_tool). Descriptions mitigate some confusion, but boundaries are genuinely blurry in many places.

Naming Consistency2/5

Conventions are mixed: noun_verb forms (contract_create, memory_relate_tool), verb_noun forms (flag_ambiguity, resolve_conflict_tool, register_file_write_tool), and a large block carrying a redundant _tool suffix (memory_get_tool, totem_init_tool) next to ones without it (contract_create, memory_workflow_tool is suffixed but memory_feedback_tool vs contract_create are inconsistent). No single predictable pattern lets an agent guess a name.

Tool Count1/5

At 62 tools this is far past a workable agent surface, and several are internal evaluation/training utilities (totem_eval_tool, totem_validate_models_tool, memory_train_models_tool, totem_manifest_tool, totem_embedding_status_tool) that do not belong in everyday tool selection. Many operations should have been consolidated (one create tool with a type parameter, one export/import pair, one list tool with filters).

Completeness5/5

The lifecycle is essentially exhaustive: create/get/update/delete for memories, typed relations, history, verification and check recording, evidence refresh, revalidation, GC, consolidation, maintenance, audit/quality reporting, feedback, and both JSON and Markdown export/import. No obvious operation is missing for a persistent engineering-memory domain.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues