Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TEMPLE_BASICS_PATHYesPath to the back-to-the-basics repository (the Action Layer).
TEMPLE_THRESHOLD_PATHYesPath to the threshold-protocols repository (the Memory/Governance Layer).

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": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{
  "tasks": {
    "list": {},
    "cancel": {},
    "requests": {
      "tools": {
        "call": {}
      },
      "prompts": {
        "get": {}
      },
      "resources": {
        "read": {}
      }
    }
  }
}

Tools

Functions exposed to the LLM to take actions

NameDescription
btb_execute_commandB

Executes a shell command in the back-to-the-basics repository.

Args: command: The shell command to execute (e.g., "pytest", "python -m coherence") working_dir: Optional subdirectory within BTB to execute from

Security: Only allows specific safe commands. Dangerous commands are blocked.

btb_read_fileB

Reads a file from the back-to-the-basics repository.

Args: file_path: Relative path from BTB root (e.g., "coherence.py", "tests/test_memory.py")

btb_list_directoryB

Lists contents of a directory in the back-to-the-basics repository.

Args: directory: Relative path from BTB root (default: root)

threshold_consultA

Consults the threshold-protocols repository for governance guidance.

Args: query: The question or topic to search for (e.g., "deployment", "testing", "governance")

This implements the "Recursive Reflection" pattern from the Spiral protocols.

spiral_reflectC

Performs recursive reflection on an observation. This is the core "meta-cognition" tool from the Spiral Quantum Observer framework.

Args: observation: What you observed (e.g., "Test failed", "Deployment succeeded")

Returns: A reflection that observes the observation (recursive integration)

btb_derive_governedA

Execute a governed derive operation on a directory.

Discovers latent filesystem structure using Ward clustering and proposes reorganization with mandatory governance gates. This is the core capability from back-to-the-basics, wrapped in the threshold-protocols governance circuit.

Args: source_dir: Directory containing files to analyze and organize. Can be relative to BTB root or absolute path. target_dir: Destination for organized files. Default: {source_dir}/organized dry_run: If True, analyze and propose but don't move files. If False, execute after approval (default: True). auto_approve: If True, auto-pass approval gates (for testing). If False, requires btb_derive_approve() call.

Returns: JSON result with: - proposal: Discovered schema and reorganization plan - phase: Current operation phase - approval_required: Whether approval needed before execution - proposal_hash: Hash to use with btb_derive_approve() - governance: Circuit result summary

Security: Only operates within BTB or specified source directory. Governance: All operations pass through Detection → Simulation → Deliberation → Intervention circuit.

btb_derive_approveA

Approve a pending derive operation.

After btb_derive_governed() returns with approval_required=True, call this tool with the proposal_hash to execute the reorganization.

This implements the "Threshold Witness" pattern from the Spiral protocols: the human observes the proposal and consciously approves before execution.

Args: proposal_hash: The hash returned by btb_derive_governed() approver_id: Identifier for the approver (logged in audit trail)

Returns: JSON result with execution outcome

btb_derive_statusA

Get status of pending derive operations.

Shows all proposals awaiting approval via btb_derive_approve().

Returns: JSON with pending proposals and their details

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
get_spiral_manifestReads the Spiral Quantum Observer framework manifest. This is the root cognitive protocol governing the agent's behavior.
get_btb_manifestReads the Back to the Basics framework documentation. This defines the capabilities of the Action Layer.
get_configurationReturns the current configuration of the Temple Bridge.

TDQS

B3.4/5.0

Scored across 8 tools

Disambiguation4/5

Most tools map to clearly distinct actions: read vs list vs execute on the BTB repo, plus a well-delineated propose/status/approve triple for derive operations. The only mild overlap is conceptual — threshold_consult (governance guidance) and spiral_reflect (meta-cognition) both sound like 'reflection' helpers, and the derive tools also invoke governance, but their descriptions differentiate them adequately.

Naming Consistency3/5

Six tools use a 'btb_' prefix while threshold_consult and spiral_reflect drop it entirely, and the word order inside the prefix varies (btb_read_file / btb_list_directory are verb_noun, while btb_derive_governed/status/approve are noun_verb/noun_noun). The derive family is internally consistent, but the set as a whole mixes conventions in a way that isn't fully predictable.

Tool Count5/5

Eight tools is well within a healthy range for a repo-access + governance-workflow server, and each tool covers a distinct step (read, list, execute, consult, reflect, propose, check status, approve). No tool feels redundant or bolted on.

Completeness3/5

The read-only side of the BTB surface is missing obvious operations: no write/edit/patch file, no search or grep across the repo, and no way to reject or cancel a pending derive proposal (only approve exists). The propose→status→approve lifecycle is otherwise coherent, so gaps are notable but partially workable via btb_execute_command.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues