Skip to main content
Glama
flightlesstux

token-saver

set_thresholds

Override token thresholds for warnings, errors, and alerts, and configure suppression of logs and repetitive history to manage session token usage.

Instructions

Override alert thresholds for the current session. All values are in estimated tokens. Returns the applied configuration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
alertNoToken count that triggers an alert.
errorNoToken count that triggers an error.
warningNoToken count that triggers a warning.
suppressLogsNoWhether to suppress log-pattern outputs.
suppressRepetitiveHistoryNoWhether to flag repetitive history messages.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
appliedNo
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must disclose behavioral traits. It states 'override' and 'returns applied configuration,' but lacks details on side effects (e.g., whether changes persist across sessions, whether it resets existing thresholds not mentioned, or permissions needed). The description adds minimal behavioral context beyond what is obvious.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences covering purpose, unit, and return value. No wasted words. Front-loaded with the action and scope.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is incomplete for the boolean parameters (suppressLogs, suppressRepetitiveHistory) which are not 'thresholds' in token sense. Lacks explanation of session scoping or persistence. With no output schema shown but known to exist, return value is covered, but behavioral gaps remain.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with parameter descriptions. The description adds that all values are in estimated tokens, but this is already implied by schema ('Token count'). It does not add meaningful new information about parameter semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb 'Override' with a clear resource 'alert thresholds' and adds context ('current session', 'estimated tokens'). It distinguishes from siblings like set_mode or get_session_stats by focusing on thresholds.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool vs alternatives (e.g., set_mode). The description does not mention prerequisites, when-not-to-use, or provide exclusion criteria. Usage context is only broadly implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/flightlesstux/token-saver'

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