Skip to main content
Glama
Context Budget Engine
by sivram04

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.

Prefer read_smart over reading whole files: pass what you are looking for as query and you get the relevant definitions or lines instead of the entire file. Use full=true only when you truly need every line. Use log_smart for logs.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
read_smartA

Read a file through the context policy. With a query ("where is the retry limit set?") you get only the relevant definitions or lines, with line numbers; without one, a skeleton for large code files. Set full=true to get every line.

log_smartB

Errors, warnings and the last lines lines of a log file, instead of the whole log.

search_smartB

Regex search under a folder: returns file:line: text, skipping caches and binaries.

savingsA

Tokens kept out of this assistant's context by read_smart/log_smart so far.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: read_smart reads files with context-aware modes, log_smart focuses on log diagnostics, search_smart performs regex search, and savings reports token savings. Although read_smart and log_smart both read files, the log-specific behavior and parameters make the boundary clear.

Naming Consistency4/5

The three operational tools follow a consistent verb_smart snake_case pattern: read_smart, log_smart, and search_smart. savings is a metrics noun rather than an action, which is a minor but understandable deviation.

Tool Count5/5

Four tools is well-scoped for a focused context budget engine. Each tool covers a distinct capability and none appears redundant or trivial.

Completeness4/5

The surface covers the core read-only context-saving workflow: smart file reading, log inspection, search, and savings reporting. Minor gaps exist, such as explicit directory listing or savings-reset/configuration operations, but agents can work around them.