Skip to main content
Glama

context

Avoid stale session data by checking memory state expiration, resetting invalid sessions, and optimizing token usage based on current and maximum token counts.

Instructions

管理Context状态,检测过期并处理重置

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes操作类型
maxTokensNo最大token限制
tokenCountNo当前token数量

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv2.0.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations provided, the description bears the full burden of disclosing behavior. It mentions detecting expiry and handling reset, but does not clarify whether reset is destructive, what optimize does, or if there are side effects. This is a significant gap for a tool that appears to mutate state.

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

Conciseness3/5

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

The description is a single short sentence with no redundancy, yet it is more of a label than a complete explanation. It is concise in length but lacks substance, conveying only a vague sense of functionality without concretely stating what the tool does.

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?

Given no annotations, no output schema, and an action enum with non-obvious values (check, reset, optimize), the description is incomplete for correct invocation. It does not explain what each action does, how tokenCount and maxTokens interact, or what the expected result of calling the tool is.

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 description coverage is 100%, so the schema already documents all parameters with descriptions. The tool description adds no parameter-level detail beyond the schema, so the baseline of 3 applies. It neither enhances nor conflicts with schema semantics.

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

Purpose4/5

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

The description states a specific function ('管理Context状态,检测过期并处理重置') with clear intent, and distinguishes itself from siblings like log_conversation and files by focusing on context state management. However, '管理' is somewhat generic, and the specific operations (check/reset/optimize) are not elaborated.

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 is given on when to use this tool versus sibling tools such as log_conversation or tasks. The description only states what the tool does, not in which situations it should be invoked, nor any exclusions to avoid incorrect usage.

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

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/fangxh2013/trae-memory'

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