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
| Name | Required | Description | Default |
|---|---|---|---|
| max_tokens | Yes | 컨텍스트 윈도우 최대 토큰 | |
| session_id | No | default | |
| used_tokens | No | ||
| conversation_text | No | ||
| tool_results_text | No | ||
| system_prompt_text | No | ||
| text_for_estimate | No | ||
| encoding_model | No |