Skip to main content
Glama
README.md
# Token Verdict — agent tools (MCP · ElizaOS · AgentKit · LangChain)

[![Token Verdict (x402) MCP connector](https://glama.ai/mcp/connectors/dev.workers.tariffdata.token-verdict/token-verdict/badges/score.svg)](https://glama.ai/mcp/connectors/dev.workers.tariffdata.token-verdict/token-verdict)

**One check before every swap.** Give it a token address and get back an A–F grade, a 0–100 score, a one-line verdict, and the red flags behind it: honeypot sell simulation, buy/sell tax, mint/freeze authority, hidden owner, proxy contract, holder concentration, LP lock, liquidity, 24h volume, and pair age.

Chains: **Base, Ethereum, BSC, Arbitrum, Polygon, Solana** (detected automatically if you leave the chain out).

Data sources: DexScreener (market), GoPlus (contract security), honeypot.is (EVM sell simulation).

## Pricing

Pay per call with [x402](https://x402.org). USDC on Base mainnet (`eip155:8453`). No account, no API key, no signup. The agent's wallet signs on the agent's machine.

| Call | Endpoint | Price |
| --- | --- | --- |
| Token verdict | `/v1/verdict` | **$0.01** |
| Batch verdict (up to 10 tokens, ranked) | `/v1/verdict/batch` | **$0.05** |
| Live DEX price / liquidity / FDV | `/v1/price` | **$0.001** |
| `pricing` tool, OpenAPI, llms.txt, health | — | free |

You are not charged for unpaid calls, invalid input (400), or upstream failures (502). An unpaid call returns an HTTP 402 quote.

## 1. Use it as a remote MCP server (no install)

Endpoint (Streamable HTTP, no auth): `https://token-verdict.tariffdata.workers.dev/mcp`

```json
{ "mcpServers": { "token-verdict": { "type": "http", "url": "https://token-verdict.tariffdata.workers.dev/mcp" } } }
```

Claude Code:

```bash
claude mcp add --transport http token-verdict https://token-verdict.tariffdata.workers.dev/mcp
```

Tools: `pricing` (free), `token_verdict`, `token_verdict_batch`, `token_price`. When called without payment, the remote server returns the price and a ready-to-pay URL that any x402 client (for example `@x402/fetch`) can call.

## 2. Use it as a local stdio MCP server that pays for you

```json
{
  "mcpServers": {
    "token-verdict": {
      "command": "npx",
      "args": ["-y", "token-verdict-agent-tools"],
      "env": { "TOKEN_VERDICT_WALLET_KEY": "<agent wallet private key, USDC on Base>", "TOKEN_VERDICT_MAX_USD": "0.05" }
    }
  }
}
```

- With `TOKEN_VERDICT_WALLET_KEY` set, paid tools settle via x402 and return the real verdict. Install the optional peers: `npm i @x402/fetch @x402/evm viem`.
- Without a key, you get the free quote only, and nothing is paid.
- `TOKEN_VERDICT_MAX_USD` caps every single payment (default 0.05).
- Use a dedicated low-balance agent wallet. Never use your main wallet.

## 3. Use it as a library (JS/TS)

```bash
npm i token-verdict-agent-tools @x402/fetch @x402/evm viem
```

```js
import { makePayingFetch, tokenVerdict, tokenVerdictBatch, tokenPrice, guardSwap } from "token-verdict-agent-tools";

const fetchImpl = await makePayingFetch({ privateKey: process.env.AGENT_KEY, maxUsd: 0.02 });

const v = await tokenVerdict("0x532f27101965dd16442E59d40670FaF5eBB142E4", { chain: "base", fetchImpl });
console.log(v.grade, v.score, v.verdict, v.red_flags);

// Swap guard: fails closed (allow=false) on honeypot, grade D/F, or any error.
const g = await guardSwap("0x532f27101965dd16442E59d40670FaF5eBB142E4", { fetchImpl });
if (!g.allow) throw new Error("blocked: " + g.reason);
```

Without `fetchImpl`, each call returns `{ paid: false, status: 402, quote }` and nothing is charged.

### ElizaOS

```js
import tokenVerdictPlugin from "token-verdict-agent-tools/eliza";
// character.plugins: [tokenVerdictPlugin]
// settings: TOKEN_VERDICT_WALLET_KEY (agent wallet), TOKEN_VERDICT_MAX_USD (default 0.05)
```

The plugin adds the `CHECK_TOKEN` action, which also answers to RUG_CHECK, HONEYPOT_CHECK, TOKEN_SAFETY and IS_TOKEN_SAFE. It runs when a message contains a token address.

### Coinbase AgentKit / LangChain

```js
import { tokenVerdictTool } from "token-verdict-agent-tools";
const tool = tokenVerdictTool({ fetchImpl }); // { name, description, schema, invoke }
// LangChain: new DynamicStructuredTool({ ...tool, func: tool.invoke })
```

## HTTP API

- OpenAPI: https://token-verdict.tariffdata.workers.dev/openapi.json
- llms.txt: https://token-verdict.tariffdata.workers.dev/llms.txt
- x402 manifest: https://token-verdict.tariffdata.workers.dev/.well-known/x402

`POST /v1/verdict` takes `{"tokenAddress":"0x...","chain":"base"}`. `GET /v1/verdict?token=0x...&chain=base` works as well.

## Development

```bash
npm test   # live tests against the public API, unpaid (402 quotes only)
```

## Disclaimer

The verdict is a heuristic risk signal, not financial advice. A good grade does not guarantee that a token is safe.

## License

MIT © 2026 Wally

TDQS

A3.9/5.0

Scored across 4 tools

Disambiguation4/5

Each tool targets a distinct action: pricing is a free catalog, token_verdict is a single-token safety grade, token_verdict_batch is the bulk version, and token_price returns market data. The only mild overlap is that token_price's liquidity/volume fields and token_verdict's red flags both touch token risk, but the descriptions make the price-vs-safety split clear.

Naming Consistency4/5

Three of four tools follow a clean token_<noun> snake_case pattern (token_verdict, token_verdict_batch, token_price) with the batch suffix used predictably. The lone deviation is 'pricing', which drops the prefix and reads as a noun rather than following the token_* convention.

Tool Count5/5

Four tools is a tight, well-scoped surface for a token-grading service: catalog, single lookup, batch lookup, and price lookup. Each tool is necessary and none appear redundant.

Completeness4/5

The surface covers the core lifecycle: discover endpoints/pricing, check a single token, batch-check up to 10, and pull live market data. Minor gaps exist (no way to list supported chains, no docs/examples for response schema, no single-token price batch), but agents can work around these.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues