๐Ÿ›ก๏ธ The Trust Layer for Agentic Commerce

The Trust Layer
for AI Agents

Before your agent acts, it checks TrustGrade. Bayesian trust scores for DeFi protocols, stablecoins, and smart contracts โ€” built for the age of autonomous transactions.

agent ยท trust check
$ # Agent received task: swap 1000 USDC
$ Checking TrustGrade before execution...
"entity": "Uniswap",
"type": "defi_protocol",
"score": 100,
"grade": "A+",
"confidence": 0.88
โœ… APPROVED โ€” executing transaction
TX: 0x7f3a...e8b2 confirmedโ–Š
45 Entities Scored
8 Entity Types
50ms Avg Response
A+โ†’F Grade Scale
7 MCP Tools
How it works

Three steps to safe autonomous transactions

01

Agent receives task

Your AI agent gets an instruction: swap tokens, provide liquidity, interact with a protocol.

02

Agent calls TrustGrade

Before executing, the agent queries TrustGrade via API or MCP to check the trust score of the target entity.

03

Agent executes or aborts

If the trust score passes the threshold, the agent proceeds. If not, it aborts and logs the reason.

Developer-first

Integrate in under 60 seconds

One API call. One MCP tool. Zero excuses for untrusted agent transactions.

python agent.py โ€” Python SDK
from trustgrade import TrustGrade

client = TrustGrade(api_key="tg_live_xxx")

# Check a DeFi protocol before your agent interacts
result = client.score("defi_protocol", "Uniswap")

print(f"Grade: {result.grade}  Score: {result.score}/100")
print(f"Confidence: {result.confidence:.0%}")
print(result.summary)

# Agent decision logic
if result.score >= 80:
    agent.execute_transaction()
else:
    agent.abort("TrustGrade score below threshold")
javascript agent.ts โ€” JavaScript SDK
import { TrustGrade } from '@trustgrade/sdk';

const tg = new TrustGrade({ apiKey: process.env.TRUSTGRADE_KEY });

// Pre-transaction trust check
const score = await tg.score('stablecoin', 'USDC');

if (score.grade === 'A+' || score.grade === 'A') {
  await agent.swap(tokenIn, tokenOut, amount);
  console.log('\u2705 Transaction executed โ€” trust verified');
} else {
  console.log(`\U0001F6AB Aborted: ${score.grade} grade too low`);
  console.log(score.summary);
}
MCP-Native

Built into the tools your agents already use

TrustGrade ships as an MCP server. Your agents can check trust scores directly from Claude Desktop, Cursor, or any MCP-compatible client. No wrapper code needed.

  • โœ… 7 MCP tools โ€” check_trust, verify_transaction, verify_agent, and more
  • โœ… One-line install โ€” npx @trustgrade/mcp-server
  • โœ… Works with โ€” Claude Desktop, Cursor, Windsurf, and any MCP client
Read MCP Docs โ†’
json claude_desktop_config.json
{
  "mcpServers": {
    "trustgrade": {
      "command": "npx",
      "args": ["-y", "@trustgrade/mcp-server"],
      "env": {
        "TRUSTGRADE_API": "https://api.trustgrade.ai",
        "TRUSTGRADE_API_KEY": "tg_live_xxx"
      }
    }
  }
}
Why agents need trust

Autonomous transactions require autonomous verification

โšก

Speed without recklessness

Agents act in milliseconds. TrustGrade returns cached scores in under 50ms โ€” fast enough for real-time decisions.

๐ŸŽฏ

Mathematically defensible

Every score is backed by Wilson confidence intervals and Bayesian posteriors. Not vibes โ€” statistics.

๐Ÿ”’

Pre-transaction verification

Block bad transactions before they hit the chain. Agents check trust, then act. Not the other way around.

๐Ÿ“Š

Institutional grade

Built for protocols, market makers, and custodians who need audit-ready trust signals for compliance.

๐Ÿ”Œ

Universal integration

REST API, MCP server, SDK embeds. Drop trust scoring into any agent framework โ€” Eliza, Autogen, CrewAI, or custom.

๐ŸŒ

Open registry

45+ entities scored and growing. Anyone can query, verify, or embed trust badges for free.

Start scoring in minutes

Free tier: 100 API calls/day. No credit card. No lock-in.