ReToken
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RETOKEN_PORT | No | Loopback port to listen on. | 8888 |
| RETOKEN_TERSE_MODE | No | Ask the model for terse prose replies. | false |
| RETOKEN_UPDATE_API | No | Points the update check at a mirror of the GitHub releases API. | |
| RETOKEN_AUTO_UPDATE | No | Daily update check: install (download, verify, restart; release binaries only), notify (log only) or off. | install |
| RETOKEN_CCR_ENABLED | No | Proxy-side replay of retoken_retrieve calls (experimental). | false |
| RETOKEN_CACHE_ENABLED | No | Exact-match response cache for deterministic requests. | true |
| RETOKEN_CACHE_TTL_SECS | No | Response cache entry lifetime. | 300 |
| RETOKEN_GEMINI_BASE_URL | No | Upstream for Gemini API requests. | https://generativelanguage.googleapis.com |
| RETOKEN_CHATGPT_BASE_URL | No | Upstream for /chatgpt/... requests (Codex on a ChatGPT plan). | https://chatgpt.com/backend-api/codex |
| RETOKEN_COMPRESSION_ENABLED | No | Tool-output compression (lossless unless the retrieval tool is present). | true |
| RETOKEN_SUBAGENT_TERSE_MODE | No | Terse replies for Claude Code subagents only. | false |
| RETOKEN_SUBAGENT_CONTEXT_LIFT | No | Multi-agent: move each Claude Code subagent's shared opening context into the cached system prompt so sibling agents read it instead of writing it. | true |
| RETOKEN_UPSTREAM_TIMEOUT_SECS | No | Connect and idle-read timeout to the provider. | 60 |
| RETOKEN_ALLOWED_UPSTREAM_HOSTS | No | Allowlist for custom upstreams. | any public host |
| RETOKEN_PROMPT_CACHING_ENABLED | No | Anthropic cache breakpoints and OpenAI prefix canonicalization. | true |
| RETOKEN_SHARED_PREAMBLE_BREAKPOINT | No | Cache breakpoint after the reminders a conversation starts with, when the client has not placed one; only cache markers change. | true |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| retoken_retrieveA | Read the saved original when a ReToken marker indicates that lines you need were elided. Skip retrieval if the visible output answers the question. Pass the handle alone for the original text, search for matching lines, or request a line range. Results over 80000 UTF-8 bytes are cut and followed by a notice. Narrow the search or range to read more. A malformed, unknown, or expired handle returns a tool error: check the marker, then rerun the original command if safe and needed. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of misselection between competing tools. Its purpose—retrieving elided content via a ReToken handle—is stated unambiguously, including the guidance to skip it when visible output suffices.
The single name `retoken_retrieve` follows a clean snake_case, server-prefixed verb pattern. There is no inconsistency to speak of, though a one-tool set gives no opportunity to demonstrate a repeatable convention.
The server's scope is deliberately narrow—recovering content hidden behind a marker—and one tool covers that job without redundancy. It is on the thin side, but no additional tool would obviously earn its place.
The tool supports the three plausible access modes (whole original, search, line range) plus truncation handling, which covers the retrieval lifecycle well. Minor gaps exist around discovering handles or inspecting size/metadata without fetching content.