Skip to main content
Glama

Tool of Truth

Every tool call, proven.

Verification sentinel for AI agent tool usage. MITM proxy that intercepts all MCP tool calls, detects fabrication, tracks costs, verifies outcomes, and infers user satisfaction.

Features

Feature

Status

Description

MITM Proxy

Transparently intercepts all MCP tool calls

Fabrication Detection

7-signal deep analysis: trace, doc-similarity, timing, placeholders, contradictions

Trust Scoring

Weighted 0-100 with fabrication cap

Cost Tracking

Per-call cost for 8 providers

Token Counting

Input/output tokens per call

Outcome Verification

Compares tool result against user's original prompt

Skill Adherence

Verifies workflow via manifests

User Satisfaction

Infers satisfaction from follow-up messages

Receipts

SHA-256 hashed, JSON + human-readable

Local Storage

JSONL daily files + indexed lookup

Tool Transparency

Shows what downstream tools actually do

Related MCP server: openclaw-output-vetter-mcp

Quick Start

1. Install

npm install -g tooloftruth-mcp

2. Connect (Option A: Direct)

// Your agent's MCP config
{
  "tooloftruth": {
    "command": "tooloftruth-mcp"
  }
}

3. Connect (Option B: Proxy — MITM mode)

// Your agent's MCP config
{
  "tooloftruth": {
    "command": "tooloftruth-mcp"
  }
}
// ~/.tooloftruth/proxy.json
{
  "servers": {
    "firecrawl": { "command": "npx", "args": ["firecrawl-mcp"] },
    "github": { "command": "npx", "args": ["@modelcontextprotocol/server-github"] }
  }
}

4. Use

You: Did you actually use firecrawl?
Agent: [calls tooloftruth_verify]
Agent: VERIFIED — firecrawl was called at 10:30:02, trust score 98/100, cost $0.03

You: How much did I spend on tools today?
Agent: [calls tooloftruth_cost]
Agent: Total: $0.47 across 12 tool calls

You: Was that result what I asked for?
Agent: [calls tooloftruth_outcome]
Agent: ALIGNED — tool result matches your request

You: That's wrong, try again
Agent: [calls tooloftruth_satisfaction]
Agent: User appears dissatisfied — result may be wrong

CLI

# Intercept and monitor non-MCP commands
tooloftruth -- gh api repos/user/repo

# One-shot status report (daemon health, receipts, cost, top tools)
tooloftruth status

Daemon

A launchd daemon watches .tooloftruth/receipts/, aggregates daily stats, and alerts on fabrications.

# Install the daemon (macOS)
launchctl load ~/Library/LaunchAgents/com.tooloftruth.daemon.plist

Stats are written to .tooloftruth/stats/YYYY-MM-DD.json.

Truth Scan

tooloftruth_truth_scan does real web verification of claims: Bing search (curl) → crawl4ai fetch → evidence extraction → verdict.

MCP Tools

Tool

Description

tooloftruth_verify

Verify a specific tool was used

tooloftruth_check

Pre-flight: is tool installed/configured?

tooloftruth_receipt

Generate/view verification receipt

tooloftruth_cost

Cost breakdown by tool

tooloftruth_history

Search historical receipts

tooloftruth_truth

Full session truth report

tooloftruth_satisfaction

Infer user satisfaction from message

tooloftruth_outcome

Verify result matches user prompt

tooloftruth_audit

Cross-reference agent claims against actual tool calls

tooloftruth_conversation

View conversation log

tooloftruth_truth_scan

Web research + fact-check a claim

How the MITM Proxy Works

Agent ←→ Tool of Truth ←→ MCP Server (downstream)
              ↓
         Records everything
         Runs deep fabrication checks
         Verifies outcome alignment
         Infers satisfaction
         Generates receipts
         Returns result unchanged

Storage

All data stays in your machine's home directory:

~/.tooloftruth/
├── config.json          ← settings
├── index.json           ← fast lookup index
├── proxy.json           ← downstream server config
├── receipts/
│   ├── 2026-08-17.jsonl ← today's calls
│   └── ...
├── conversations/
│   └── 2026-08-17.jsonl ← claim/action conversations
└── stats/               ← daemon aggregations
    ├── 2026-08-17.json
    └── ...

## Skill Manifests

Skills can attach verification manifests:

```json
{
  "skill": "last-30-days",
  "version": "2.1.0",
  "requires": {
    "github_mcp": {
      "tool": "get_repo_stats",
      "mustBeCalled": true
    }
  }
}

Development

git clone https://github.com/adigoel07/tooloftruth.git
cd tooloftruth
pnpm install
pnpm build
npx vitest run

License

MIT — use it, fork it, build on it.

Author

Built by adigoel07.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    A
    maintenance
    Open-source MCP proxy that enforces security policies, content scanning, and audit logging between AI agents and tool servers
    25
    AGPL 3.0
  • A
    license
    A
    quality
    B
    maintenance
    MCP server for verifying AI agent claims vs reality — single-transcript inline grounding-check that flags when an agent's response states facts not in the input context, when its code silently swallows exceptions and substitutes mock data, or when its multi-turn transcript contains contradictions or unverified completion claims. Sub-second, local, free, no API calls.
    4
    1
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Enables trust, reputation, and economic accountability for MCP by proxying between clients and servers, enriching every tool invocation with trust evaluation, KYA tiers, spending limits, and delegation chains.
    MIT
  • A
    license
    -
    quality
    A
    maintenance
    An MCP server that gives AI agents observability over their own tool calls, enabling auditing, cost tracking, latency analysis, and alerting.
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage

  • A paid remote MCP for AI agent browser DevTools MCP, built to return verdicts, receipts, usage logs,

View all MCP Connectors

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/adigoel07/tooloftruth'

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