Skip to main content
Glama
sujkh85

Infinite Context Keeper

by sujkh85

get_context_usage

Estimates token usage in a conversation by combining used tokens, conversation text, and tool results with tiktoken to help manage context window limits.

Instructions

MCP 호스트가 넘기는 used_tokens·대화 본문·tool 결과 문자열을 tiktoken으로 합산해 컨텍스트 사용량을 추정합니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_tokensYes컨텍스트 윈도우 최대 토큰
session_idNodefault
used_tokensNo
conversation_textNo
tool_results_textNo
system_prompt_textNo
text_for_estimateNo
encoding_modelNo
Behavior3/5

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

The description explains the basic behavior (summing inputs with tiktoken), but lacks details on return format, error handling, or side effects. Since no annotations are provided, the description should be more explicit.

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?

The description is a single, concise sentence that directly states the tool's purpose. It contains no filler or redundancy.

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?

With 8 parameters, no output schema, and no annotations, the description is too brief to provide complete context. It omits details on return values, parameter interactions, and edge cases, making it insufficient for an agent to reliably invoke the tool.

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

Parameters2/5

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

Schema description coverage is only 13%, yet the description only mentions three of eight parameters (used_tokens, conversation_text, tool_results_text). The roles of max_tokens, session_id, system_prompt_text, text_for_estimate, and encoding_model are not explained, leaving significant gaps.

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 clearly states the tool estimates context usage using tiktoken by summing specific inputs (used_tokens, conversation text, tool results). It distinguishes itself from sibling tools, which are all unrelated (memory, project, etc.).

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 guidance on when to use this tool versus alternatives is provided. The description only explains what the tool does, not when it is appropriate or what prerequisites exist.

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/sujkh85/infinite-context-keeper-node'

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