Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FITTOK_MODELNoCPU model name for LLMLingua compressionbert-base-multilingual
FITTOK_SCRUBNoEnable PII scrubbing in pipeline (true/false)false
FITTOK_DEVICENoDevice to use: auto, cuda, cpuauto
FITTOK_CACHE_DIRNoCache directory path~/.cache/fittok
FITTOK_MODEL_GPUNoGPU model name for LLMLingua compressionbert-base-multilingual
FITTOK_CACHE_MAX_MBNoMaximum cache size in MB500

Capabilities

Features and capabilities supported by this server

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

Tools

Functions exposed to the LLM to take actions

NameDescription
parse_codebase_toolC

Parse all code files in a directory into a knowledge graph.

query_graph_toolC

Query a knowledge graph for the most relevant subgraph within a token budget.

compress_context_toolD

Compress text context using LLMLingua with a local model.

optimize_context_toolA

Return the most relevant REAL source code for a question, within a token budget.

Use this FIRST for any "how does X work / where is Y" question about the codebase, and prefer it over reading files or grepping. Call it ONCE per question: the returned optimized_context contains the relevant code — answer directly from it and do NOT separately read the files it came from (that defeats the whole point of the token savings).

optimize_context_streamC

Streaming pipeline: yields stage-by-stage progress events.

Returns a list of event dicts in order: [{"stage": "parsing", "status": "started"}, ...]

optimize_context_batchC

One parse, many queries. Builds graph once, runs slurp+compress per query.

optimize_context_structuredD

Full pipeline with structured JSON output mode.

Args: output_format: "markdown" (default) or "json" for structured output.

parse_codebase_stream_toolC

Stream parse progress. Parses in batches, returns progress events.

watch_start_toolC

Start watching a codebase for incremental graph updates.

watch_stop_toolC

Stop watching a codebase.

get_graph_stats_toolC

Return metadata and stats for a graph.

reset_graph_toolC

Force a full re-parse of the codebase, ignoring cache.

diff_graph_toolC

Compare two knowledge graphs and return structural differences.

scrub_text_toolC

Scrub PII (secrets, emails, API keys, etc.) from text.

scrub_file_toolC

Scrub PII from a file.

list_pii_patterns_toolA

List all registered PII detection patterns.

add_pii_pattern_toolC

Add or override a PII detection pattern.

clear_cache_toolB

Clear the cache. Scope: 'all' | 'graph' | 'query' | 'compression'.

cache_stats_toolB

Return cache hit/miss statistics and size.

launch_ui_toolC

Launch the web visualization UI for graph exploration.

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/likhithreddy/fittok'

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