Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CODE_SHRINKER_VALIDATE_CMD_JSONNoJSON array of command and arguments for validation, e.g. '["npm","test"]'.
CODE_SHRINKER_REQUIRED_CHECKS_JSONNoJSON array of required checks for patch validation, e.g. '["parse","lint","tests"]'.

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
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
project.scanA

Build cross-file call graph for a repository. Required before symbol.context.

project.mapB

Layer 0: file tree + exports for a repository.

file.contractsC

Layer 1: contracts for all symbols. FIXED: includes full body ranges.

symbol.sourceC

EXACT source — repository-scoped full symbol source and contract.

symbol.contextC

Callers/callees/tests for a repository. REPO-ISOLATED.

project.watch_startC

Start incremental file watcher for a specific repository.

project.watch_stopC

Stop the watcher for a specific repository.

project.watch_statusC

Current watcher state for a repository.

project.snapshotC

Take a snapshot for a repository.

artifact.putC

Content-addressed storage with SHA-256, compression, TTL. Returns artifact ID.

artifact.getA

Retrieve artifact by ID. Returns content as text.

artifact.get_chunkC

Read one chunk of a large artifact.

artifact.copy_textC

Self-contained copyable artifact content.

artifact.pinA

Pin/unpin (pinned survive GC).

artifact.deleteA

Delete artifact and its files.

artifact.listC

List all artifacts with metadata.

artifact.statsA

Storage statistics (count, size, compression).

artifact.gcA

Remove expired unpinned artifacts.

project.changed_symbolsC

Symbols changed since last scan/watch for a repository.

context.createC

Build L0-L3 packet with ranking + quality check. Repository-scoped.

context.expandD

FIXED: path validated, loads symbols into packet.

context.inspectD

Loss manifest + quality.

patch.proposeD

FIXED: patchId linked to validate/apply via randomUUID.

patch.validateA

Validate proposed patch. Requires patchId from patch.propose. All state from server.

patch.applyD

FIXED: real hash re-check works now.

patchset.proposeC

Propose an atomic multi-file patch set with expected hashes.

patchset.validateC

Validate the whole patch set in one sandbox.

patchset.applyB

Atomically apply all validated files with rollback journal.

patchset.rollbackB

Restore every file from the patch-set backup journal.

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/sbrejnev988-coder/mcp-code-shrinker'

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