Skip to main content
Glama
Token Optimizer MCP

Token Optimizer MCP

by Tjpatel16

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PROJECT_ROOTNoAbsolute path to the repository being analyzed..
MAX_FILE_LINESNoHard cap on the number of lines returned by file read tools.300
FAISS_INDEX_PATHNoAbsolute path to store the FAISS database when embeddings support is installed.
MAX_OUTPUT_CHARSNoGlobal cutoff limit applied to all tool responses.8000
MAX_PREVIEW_CHARSNoSnippet length returned alongside search hits.200
MAX_SUMMARY_CHARSNoTruncation limit for structural file summaries.2000
TOKEN_COST_PER_1KNoCost in USD of 1,000 input tokens for the model being used, used to calculate monetary savings.0.003
EMBEDDING_CHUNK_SIZENoLines per chunk for vectorization when embeddings support is installed.50
ENABLE_TOKEN_TRACKINGNoToggle the persistent token tracker on or off.true

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

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources