About Tokenjam
Tokenjam is an MCP server published by Metabuilder-Labs in the Agents category: token Efficiency For AI Agents. Conduid read 23 tools from its source: acknowledge_alert, get_budget_headroom, get_cost_summary, get_drift_report, get_optimize_report, get_policy_status and 17 more. It is published to PyPI as tokenjam and runs with uvx.
The repository has 125 stars and 37 forks, is licensed MIT, and its last commit was on 29 Nov 2026. The latest release is v0.7.1 (15 Nov 2026): 0.7.1 keeps Langfuse backfill working through Langfuse Cloud's move to v4, prices the current Claude, GPT and Gemini models, and fixes a few things a first run used to t… It follows v0.7.0 (26 Sep 2026), and the 5 most recent releases go back to v0.6.10 (13 Aug 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include autonomous-agents, cli, duckdb, observability, openclaw and opentelemetry.
Install
uvx tokenjampip install tokenjamgit clone https://github.com/Metabuilder-Labs/tokenjamTools (23)
acknowledge_alertMark a specific alert as acknowledged. Use this when the user says they've seen an| Parameter | Type | Description |
|---|---|---|
| alert_id * | string |
get_budget_headroomReturn daily and per-session budget limits vs current spend for a specific agent.| Parameter | Type | Description |
|---|---|---|
| agent_id * | string |
get_cost_summaryReturn a cost breakdown grouped by day, agent, model, or tool — equivalent to `tj cost`.| Parameter | Type | Description |
|---|---|---|
| agent_id | string | |
| group_by | string | |
| since | string |
get_drift_reportReturn behavioral drift data: statistical baseline vs the latest session's actual| Parameter | Type | Description |
|---|---|---|
| agent_id | string |
get_optimize_reportReturn cost-saving candidates and budget projections — equivalent to| Parameter | Type | Description |
|---|---|---|
| agent_id | string | |
| budget_provider | string | |
| budget_usd | number | |
| findings | array | |
| since | string |
get_policy_statusReturn the TokenJam enforcement-plane policy status: the defined policies| Parameter | Type | Description |
|---|---|---|
| limit | integer |
get_savings_summaryReturn the policy savings meter: the ESTIMATED-RECOVERABLE amount these| Parameter | Type | Description |
|---|---|---|
| since | string |
get_statusReturn the current observability status for one or all agents — equivalent to running| Parameter | Type | Description |
|---|---|---|
| agent_id | string |
get_tool_statsReturn tool call counts and average duration per tool — equivalent to `tj tools`.| Parameter | Type | Description |
|---|---|---|
| agent_id | string | |
| since | string |
get_traceReturn the full span waterfall for a single trace — equivalent to `tj trace <id>`.| Parameter | Type | Description |
|---|---|---|
| trace_id * | string |
list_active_sessionsList every session currently in 'active' status — one row per session. Use this as thelist_agentsList all agents TokenJam has ever seen, with first/last seen timestamps and lifetime cost.list_alertsReturn alert history — equivalent to `tj alerts`. Use this when the user asks about| Parameter | Type | Description |
|---|---|---|
| agent_id | string | |
| severity | string | |
| unread | boolean |
list_summarize_candidatesList prompt files worth summarizing — large, prose-heavy CLAUDE.md / AGENTS.md| Parameter | Type | Description |
|---|---|---|
| path | string | |
| recursive | boolean | |
| repo | boolean |
list_tracesList recent traces with cost, duration, and span count — equivalent to `tj traces`.| Parameter | Type | Description |
|---|---|---|
| agent_id | string | |
| limit | integer | |
| since | string |
open_dashboardOpen the TokenJam web dashboard in the browser. Starts `tj serve` in the background if itsetup_harnessWire a fan-out harness (a governor/launcher that spawns many `claude` worker| Parameter | Type | Description |
|---|---|---|
| mode | string | |
| project_path | string |
setup_projectConfigure the current project to send telemetry to TokenJam. Writes OTEL_RESOURCE_ATTRIBUTES| Parameter | Type | Description |
|---|---|---|
| agent_id | string | |
| project_path | string |
suggest_policiesRecommend enforcement-plane policies from the user's actual usage — e.g. asummarize_applyApply staged summarize results to their files. **Default is a DRY-RUN** (reports| Parameter | Type | Description |
|---|---|---|
| go | boolean | |
| path | string |
summarize_checkVerify a summary produced from summarize_prep's wrapped prompt. Re-reads the file| Parameter | Type | Description |
|---|---|---|
| path * | string | |
| prepped_hash * | string | |
| source_nonce | string | |
| summary * | string |
summarize_prepPrepare a prompt file for structure-aware summarization. Wraps every structured| Parameter | Type | Description |
|---|---|---|
| path * | string | |
| ratio | number |
summarize_undoRestore the most recent summarize backup for a file. **Default is a DRY-RUN**;| Parameter | Type | Description |
|---|---|---|
| go | boolean | |
| path * | string |
Security checks
- ✓README presentThe repository's README runs to about 2.1K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 297 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 2.1K words, fetched 13 days ago. The original in the repository is authoritative.
Read full README