AgentTrust
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AgentTrust check trust of agent abc123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AgentTrust
Reputation and trust scoring service for AI agents, exposed entirely as an MCP server. Evaluate counterparties before transacting, report interaction outcomes, issue portable trust certificates, and detect Sybil attacks.
Table of Contents
Related MCP server: agent-staking-mcp-server
Quickstart
1. Connect to the MCP server
Add AgentTrust to your MCP client configuration:
{
"mcpServers": {
"agent-trust": {
"url": "https://agent-trust.radi.pro/mcp"
}
}
}Or for local development via stdio:
{
"mcpServers": {
"agent-trust": {
"command": "uv",
"args": ["run", "python", "-m", "agent_trust.server"]
}
}
}2. Register your agent
register_agent(display_name="my-agent", capabilities=["search", "summarize"])Response:
{
"agent_id": "550e8400-e29b-41d4-a716-446655440000",
"source": "standalone",
"scopes": ["trust.read", "trust.report"],
"created": true,
"public_key_hex": "a1b2c3...",
"private_key_hex": "d4e5f6...",
"warning": "Key pair auto-generated. Store private_key_hex securely."
}Store the private_key_hex immediately -- it is shown only once.
3. Generate an access token
generate_agent_token(
agent_id="550e8400-...",
private_key_hex="d4e5f6..."
)Response:
{
"access_token": "eyJ...",
"expires_at": "2026-03-20T13:00:00+00:00",
"ttl_minutes": 60,
"agent_id": "550e8400-..."
}4. Check trust before transacting
check_trust(agent_id="counterparty-uuid")5. Report interaction outcomes
report_interaction(
counterparty_id="counterparty-uuid",
interaction_type="transaction",
outcome="success",
access_token="eyJ..."
)Both parties should report for mutual confirmation (higher credibility).
Connecting to the MCP Server
AgentTrust supports two MCP transports:
Transport | Use case | Endpoint |
Streamable HTTP | Remote agents, production |
|
stdio | Local development, MCP Inspector |
|
Authentication
AgentTrust supports two authentication methods. Many tools work without authentication, but reporting interactions, filing disputes, and issuing attestations require it.
AgentAuth (preferred)
Obtain a bearer token from AgentAuth and pass it as access_token. This provides the full set of scopes:
Scope | Grants |
| Score breakdowns, pending confirmations |
| Report and confirm interactions |
| File disputes |
| Resolve disputes (arbitrators) |
| Issue signed attestations |
| Alert subscriptions |
Standalone (Ed25519)
Register with register_agent and generate tokens with generate_agent_token. Provides trust.read and trust.report scopes. You can upgrade to AgentAuth later via link_agentauth.
No authentication
Tools marked as "Auth: none" work without any token. Useful for checking trust scores and verifying attestations.
Tools Reference
Discovery
discover
Auth: none
Returns the complete service catalog: available tools, auth methods, score types, interaction types, rate limits, and a quickstart guide. Call this first when connecting.
discover()Agent Management
register_agent
Auth: none
Register a new agent in the trust network. Three paths:
AgentAuth -- pass
access_tokenfrom AgentAuthStandalone -- pass your own
public_key_hex(hex-encoded Ed25519 public key)Auto-generate -- omit both to get a keypair generated for you
Parameter | Type | Required | Description |
| string | no | Human-readable name (max 200 chars) |
| list[string] | no | Tags like |
| dict | no | Arbitrary key-value data (max 10KB) |
| string | no | AgentAuth bearer token |
| string | no | Hex-encoded Ed25519 public key |
register_agent(
display_name="my-search-agent",
capabilities=["search", "summarize"]
)generate_agent_token
Auth: none (uses private key directly)
Generate a signed JWT access token for standalone agents.
Parameter | Type | Required | Description |
| string | yes | UUID from |
| string | yes | 64 hex chars, Ed25519 private key |
| int | no | Token lifetime, default 60, max 1440 |
generate_agent_token(
agent_id="550e8400-...",
private_key_hex="d4e5f6...",
ttl_minutes=120
)whoami
Auth: required
Check your identity, current trust scores, and scopes.
Parameter | Type | Required | Description |
| string | no | AgentAuth bearer token |
| string | no | Hex-encoded public key |
whoami(access_token="eyJ...")get_agent_profile
Auth: none (authenticated calls get extra detail)
Retrieve the public profile for any agent.
Parameter | Type | Required | Description |
| string | yes | UUID to look up |
| string | no | For additional details |
get_agent_profile(agent_id="550e8400-...")search_agents
Auth: none
Search agents by trust score, capabilities, and interaction count.
Parameter | Type | Required | Description |
| float | no | Minimum score 0.0-1.0 (default 0.0) |
| string | no |
|
| list[string] | no | Required capabilities (must have ALL) |
| int | no | Minimum interaction count |
| int | no | Max results, default 20, max 100 |
search_agents(min_score=0.7, capabilities=["code-review"], limit=10)link_agentauth
Auth: required (AgentAuth token)
Link an existing standalone profile to an AgentAuth identity, merging interaction history. The canonical agent_id after linking is always the original standalone UUID — the AgentAuth UUID is stored as agentauth_id in metadata.
Parameter | Type | Required | Description |
| string | yes | AgentAuth bearer token |
| string | yes | Public key from standalone registration |
| string | yes | JWT signed with private key (claims: |
| bool | no | Validate everything without committing changes (default |
Response:
{
"agent_id": "550e8400-...",
"canonical_agent_id": "550e8400-...",
"agentauth_id": "aa-uuid-...",
"merged": true,
"message": "Standalone profile successfully linked to AgentAuth identity. ..."
}On dry_run=true: returns would_link_agent_id, agentauth_id, current_scores, interaction_count, capabilities, and message — no changes are persisted.
Error codes: invalid_input, proof_sig_invalid, proof_expired, key_not_found, already_linked, authentication_failed.
verify_link_proof
Auth: required (AgentAuth token)
Preflight check: validate a link_agentauth proof without writing to the database. Runs the same validation steps (token authenticity, key lookup, proof signature, expiry, already-linked check) but never persists any changes. Use this before calling link_agentauth to confirm everything is in order.
Parameter | Type | Required | Description |
| string | yes | AgentAuth bearer token |
| string | yes | Hex-encoded Ed25519 public key of the standalone agent |
| string | yes | JWT signed with the standalone private key |
verify_link_proof(
access_token="eyJ...",
public_key_hex="a1b2c3...",
signed_proof="eyJ..."
)Response:
{
"valid": true,
"checks": {
"token_valid": true,
"key_found": true,
"proof_sig_valid": true,
"proof_not_expired": true,
"already_linked": false
},
"agent_id": "550e8400-..."
}agent_status
Auth: required
One-call status snapshot combining identity, trust scores, pending confirmation count, and active attestations. Useful as a dashboard or health check.
Parameter | Type | Required | Description |
| string | no | AgentAuth bearer token |
| string | no | Hex-encoded Ed25519 public key (standalone agents) |
agent_status(access_token="eyJ...")Response:
{
"agent_id": "550e8400-...",
"agentauth_linked": true,
"scores": {"overall": 0.73, "reliability": 0.81},
"scopes": ["trust.read", "trust.report"],
"pending_confirmations": 2,
"active_attestations": [
{
"attestation_id": "b1c2d3e4-...",
"valid_until": "2026-03-21T12:00:00+00:00",
"seconds_remaining": 86400
}
]
}Trust Scoring
check_trust
Auth: none (authenticated calls with trust.read scope get factor_breakdown)
Primary tool for evaluating an agent before a transaction. Returns a score (0.0-1.0), confidence (0.0-1.0), interaction count, and a plain-language explanation.
Parameter | Type | Required | Description |
| string | yes | UUID to evaluate |
| string | no | Default |
| string | no | For factor breakdown |
check_trust(agent_id="550e8400-...", score_type="reliability")Response:
{
"agent_id": "550e8400-...",
"score_type": "reliability",
"score": 0.82,
"confidence": 0.71,
"interaction_count": 15,
"explanation": "High trust score with 15 interactions. Mostly positive.",
"computed_at": "2026-03-20T12:00:00+00:00"
}A score of 0.5 with confidence 0.05 means "unknown", not "average". Low confidence means few interactions -- treat with caution.
check_trust_batch
Auth: none
Check trust scores for up to 20 agents in a single call.
Parameter | Type | Required | Description |
| list[string] | yes | Up to 20 UUIDs |
| string | no | Default |
check_trust_batch(agent_ids=["uuid-1", "uuid-2", "uuid-3"])compare_agents
Auth: none
Rank up to 10 agents side-by-side by score.
Parameter | Type | Required | Description |
| list[string] | yes | Up to 10 UUIDs |
| string | no | Default |
compare_agents(agent_ids=["uuid-1", "uuid-2"], score_type="honesty")get_score_breakdown
Auth: required (trust.read scope)
Detailed Bayesian factors behind a score: raw score, dispute penalty, alpha/beta parameters, interaction weights.
Parameter | Type | Required | Description |
| string | yes | UUID |
| string | yes | Token with |
get_score_breakdown(agent_id="550e8400-...", access_token="eyJ...")Interaction Reporting
report_interaction
Auth: required (trust.report scope)
Report the outcome of an interaction with another agent. Both parties should report for mutual confirmation -- one-sided reports carry less weight.
Parameter | Type | Required | Description |
| string | yes | UUID of the other agent |
| string | yes |
|
| string | yes |
|
| string | yes | Token with |
| dict | no | Metadata like |
| string | no | SHA-256 hex hash of supporting evidence (64 chars) |
report_interaction(
counterparty_id="550e8400-...",
interaction_type="transaction",
outcome="success",
access_token="eyJ...",
context={"amount": 100, "task_type": "code-review"}
)Response:
{
"interaction_id": "a1b2c3d4-...",
"reporter_id": "my-agent-uuid",
"counterparty_id": "550e8400-...",
"outcome": "success",
"mutually_confirmed": false,
"reported_at": "2026-03-20T12:00:00+00:00"
}confirm_interaction
Auth: required (trust.report scope)
Confirm a counterparty's interaction report. Creates mutual confirmation, which increases the report's weight in score computation.
Parameter | Type | Required | Description |
| string | yes | UUID from the other agent's |
| string | yes | Your view: |
| string | yes | Token with |
| dict | no | Additional context from your perspective |
confirm_interaction(
interaction_id="a1b2c3d4-...",
outcome="success",
access_token="eyJ..."
)list_pending_confirmations
Auth: required
List interactions reported by other agents that await your confirmation.
Parameter | Type | Required | Description |
| string | yes | Your access token |
| int | no | Lookback window, default 30, max 365 |
| int | no | Max results, default 50, max 200 |
list_pending_confirmations(access_token="eyJ...")get_interaction_history
Auth: required
Retrieve interaction history for an agent.
Parameter | Type | Required | Description |
| string | yes | UUID |
| string | no | Filter by type |
| string | no | Filter by outcome |
| int | no | Lookback window, default 90, max 365 |
| int | no | Max results, default 50, max 200 |
| string | yes | Your access token |
get_interaction_history(
agent_id="550e8400-...",
interaction_type="transaction",
since_days=30,
access_token="eyJ..."
)Disputes
file_dispute
Auth: required (trust.dispute.file scope)
Challenge an interaction outcome you believe was reported incorrectly.
Parameter | Type | Required | Description |
| string | yes | UUID of the disputed interaction |
| string | yes | Explanation (max 5000 chars) |
| string | yes | Token with |
| dict | no | Supporting evidence (max 10KB) |
file_dispute(
interaction_id="a1b2c3d4-...",
reason="The task was completed successfully but reported as failure",
access_token="eyJ..."
)Limits: max 10 disputes per day, max 30 open disputes at once. Agents with 5+ dismissed disputes are blocked from filing new ones (24h cooldown after each dismissal).
resolve_dispute
Auth: required (trust.dispute.resolve scope, arbitrators only)
Resolve an open dispute. Requires AgentAuth permission check.
Parameter | Type | Required | Description |
| string | yes | UUID of the dispute |
| string | yes |
|
| string | yes | Arbitrator's token |
| string | no | Explanation (max 2000 chars) |
resolve_dispute(
dispute_id="d1e2f3...",
resolution="upheld",
access_token="eyJ...",
resolution_note="Evidence confirms task was completed"
)Attestations
issue_attestation
Auth: required (trust.attest.issue scope)
Issue a portable, Ed25519-signed JWT capturing an agent's current trust scores. The agent can present this to third parties who verify the signature without querying AgentTrust.
Parameter | Type | Required | Description |
| string | yes | UUID of the agent to attest |
| string | yes | Token with |
| int | no | Validity period, default 12, range 1-72 |
issue_attestation(
agent_id="550e8400-...",
access_token="eyJ...",
ttl_hours=24
)Response:
{
"attestation_id": "b1c2d3e4-...",
"subject_agent_id": "550e8400-...",
"jwt_token": "eyJ...",
"score_snapshot": {
"overall": {"score": 0.82, "confidence": 0.71},
"reliability": {"score": 0.85, "confidence": 0.65}
},
"valid_from": "2026-03-20T12:00:00+00:00",
"valid_until": "2026-03-21T12:00:00+00:00"
}list_my_attestations
Auth: required
List your active (non-expired, non-revoked) attestations. Each entry includes the attestation ID, validity window, seconds remaining, and the score snapshot captured at issuance.
Parameter | Type | Required | Description |
| string | no | AgentAuth bearer token |
| string | no | Hex-encoded Ed25519 public key (standalone agents) |
list_my_attestations(access_token="eyJ...")Response:
{
"agent_id": "550e8400-...",
"attestations": [
{
"attestation_id": "b1c2d3e4-...",
"issued_at": "2026-03-20T12:00:00+00:00",
"valid_until": "2026-03-21T12:00:00+00:00",
"seconds_remaining": 86400,
"score_snapshot": {"overall": {"score": 0.82, "confidence": 0.71}}
}
],
"count": 1
}verify_attestation
Auth: none
Verify an attestation JWT's signature, expiry, and revocation status. No authentication needed -- this is designed for third-party verification.
Parameter | Type | Required | Description |
| string | yes | JWT from |
verify_attestation(jwt_token="eyJ...")Response:
{
"valid": true,
"attestation_id": "b1c2d3e4-...",
"subject_agent_id": "550e8400-...",
"score_snapshot": {"overall": {"score": 0.82, "confidence": 0.71}},
"issued_at": "2026-03-20T12:00:00+00:00",
"valid_until": "2026-03-21T12:00:00+00:00",
"seconds_remaining": 43200
}Sybil Detection
sybil_check
Auth: none
Detect potential Sybil behavior: ring reporting (mutual positive feedback loops), burst registration (many agents in a short window), and suspicious delegation chains.
Parameter | Type | Required | Description |
| string | yes | UUID to check |
sybil_check(agent_id="550e8400-...")Response:
{
"agent_id": "550e8400-...",
"risk_score": 0.15,
"is_suspicious": false,
"is_high_risk": false,
"signals": [],
"checked_at": "2026-03-20T12:00:00+00:00"
}When signals are detected:
{
"signals": [
{
"signal_type": "ring_reporting",
"severity": "high",
"description": "Mutual positive feedback loop detected",
"evidence": {"ring_size": 3, "agents": ["uuid-1", "uuid-2", "uuid-3"]}
}
]
}Resources
MCP resources provide read-only access to trust data via URI templates:
URI | Description |
| Current trust scores in all categories |
| Interaction history summary (last 90 days) |
| Active (non-expired, non-revoked) attestations |
| Top 50 agents ranked by score type |
| Full details of a specific dispute |
| Service health: DB, Redis, AgentAuth, worker queue |
Prompts
Pre-built prompt templates for common evaluation workflows:
Prompt | Parameters | Description |
|
| Structured evaluation before a transaction |
|
| Investigate why a trust score changed |
|
| Structured assessment for dispute arbitration |
Score Types
Type | Based on | Description |
| All interaction types | Composite score |
| Transaction, delegation, collaboration | Does the agent deliver? |
| Query, delegation | Does the agent respond timely? |
| Collaboration | Is the agent truthful? |
| Custom | Domain-specific scores (e.g., |
Scores use a Bayesian Beta distribution with exponential time decay (90-day half-life) and dispute penalties. Scores range from 0.0 to 1.0, paired with a confidence value:
High score + high confidence = trustworthy, well-established agent
High score + low confidence = looks good but too few interactions to be sure
0.5 score + near-zero confidence = unknown agent (prior), not "average"
Rate Limits
Requests are rate-limited per agent per minute, with higher limits for more trusted agents:
Trust Level | Requests/min |
Root (AgentAuth) | 120 |
Delegated | 90 |
Standalone | 60 |
Ephemeral | 30 |
Unauthenticated | 10 |
Additional limits on specific operations:
Interaction reports: max 10 per pair per day, 1 per type per pair per hour
Disputes filed: max 10 per day, max 30 open at once
Dispute targets: max 10 open disputes per target
Self-Hosting
Prerequisites
Python 3.13+
PostgreSQL 16 with the TimescaleDB extension —
interactionsis a hypertable, so plain PostgreSQL is not enoughRedis 7
uv package manager
Setup
# Clone and install
git clone <repo-url>
cd agent-trust
uv sync
# Start infrastructure
docker compose up -d postgres redis
# Generate server signing key (first time only)
uv run python scripts/generate_keypair.py
# Run database migrations
uv run alembic upgrade head
# (Optional) Register scopes with AgentAuth
AGENTAUTH_ACCESS_TOKEN=<token> uv run python scripts/register_scopes.pyEnvironment Variables
Create a .env file:
DATABASE_URL=postgresql+asyncpg://agent_trust:agent_trust@localhost:5432/agent_trust
REDIS_URL=redis://localhost:6379/0
SIGNING_KEY_PATH=keys/service.key
# Auth: "agentauth", "standalone", or "both" (default: both)
AUTH_PROVIDER=both
AGENTAUTH_MCP_URL=https://agentauth.radi.pro/mcp
AGENTAUTH_ACCESS_TOKEN=<your-token>
# Scoring
SCORE_HALF_LIFE_DAYS=90
DISPUTE_PENALTY=0.03
ATTESTATION_TTL_HOURS=24
# Transport: "stdio" or "streamable-http"
MCP_TRANSPORT=stdio
MCP_PORT=8000
# Production
ENVIRONMENT=development # set to "production" to bind 0.0.0.0
LOG_LEVEL=INFO
JSON_LOGS=falseRunning
# Local development (stdio)
uv run python -m agent_trust.server
# Production (HTTP)
uv run python -m agent_trust.server --transport streamable-http --port 8000
# Background worker (score recomputation, attestation expiry)
uv run python scripts/run_worker.py
# Test with MCP Inspector
uv run mcp dev src/agent_trust/server.pyDocker
Run the development stack with Docker Compose:
docker compose up -dThis starts PostgreSQL (TimescaleDB, port 5433), Redis (port 6380), the MCP server, and the background worker.
Metrics and dashboards are not part of this stack. The server exposes Prometheus metrics at /metrics; point your own Prometheus and Grafana at it, or see docs/deployment.md for how the hosted instance uses a shared observability stack.
Tests
uv run pytest # all tests
uv run pytest tests/test_tools/ -v # MCP tools
uv run pytest tests/test_engine/ -v # score algorithm
uv run pytest tests/test_auth/ -v # authentication
uv run pytest tests/test_integration/ # end-to-endAvailable Tools
23 toolsagent_statusA
Return a comprehensive status snapshot for your agent.
Combines identity, trust scores, pending confirmation count, and active attestations in a single call — useful as a dashboard or health check.
REQUIRES authentication (access_token or public_key_hex).
Example call: agent_status(access_token="eyJ...")
Example response: { "agent_id": "550e8400-...", "agentauth_linked": true, "scores": {"overall": 0.73, "reliability": 0.81}, "scopes": ["trust.read", "trust.write"], "pending_confirmations": 2, "active_attestations": [ { "attestation_id": "b1c2d3e4-...", "valid_until": "2026-03-21T12:00:00+00:00", "seconds_remaining": 86400 } ] }
Inputs: access_token, public_key_hex.
check_trustA
Check an agent's trust score before entering a transaction.
Returns score (0.0-1.0), confidence (0.0-1.0), interaction_count, and a plain-language explanation of the score.
score_type options:
overall: composite score across all interaction types
reliability: based on transaction and delegation outcomes
responsiveness: based on query and delegation timeliness
honesty: based on collaboration outcomes
Low confidence means the agent has few interactions — treat with caution regardless of score value. A score of 0.5 with confidence 0.05 means 'unknown', not 'average'.
Authentication is optional:
Unauthenticated: score, confidence, interaction_count, explanation
Authenticated (trust.read scope): adds factor_breakdown summary
Example call: check_trust(agent_id="550e8400-e29b-41d4-a716-446655440000", score_type="overall")
Example response: { "agent_id": "550e8400-e29b-41d4-a716-446655440000", "score_type": "overall", "score": 0.82, "confidence": 0.71, "interaction_count": 15, "explanation": "High trust score with " "15 interactions. Mostly positive.", "computed_at": "2026-03-20T12:00:00+00:00" }
Inputs: agent_id (required), score_type, access_token.
check_trust_batchA
Check trust scores for multiple agents in a single call.
Evaluates up to 20 agents at once, reducing round-trips when you need to assess several potential counterparties before choosing one.
Each agent in the result includes score, confidence, and interaction_count. Agents that don't exist or can't be scored get an inline error.
score_type options: overall, reliability, responsiveness, honesty
Example call: check_trust_batch( agent_ids=["uuid-1", "uuid-2", "uuid-3"], score_type="reliability" )
Example response: { "score_type": "reliability", "results": [ {"agent_id": "uuid-1", "score": 0.82, "confidence": 0.71, "interaction_count": 15}, {"agent_id": "uuid-2", "score": 0.65, "confidence": 0.45, "interaction_count": 7}, {"agent_id": "uuid-3", "error_code": "not_found", "error": "Agent not found"} ], "count": 3, "succeeded": 2, "failed": 1 }
Inputs: agent_ids (required), score_type, access_token.
compare_agentsA
Compare trust scores of multiple agents side by side.
Returns a ranked list with scores, confidence levels, and interaction counts. Useful when choosing between multiple agents for a task.
Maximum 10 agents per comparison. score_type: overall, reliability, responsiveness, or honesty
Inputs: agent_ids (required), score_type, access_token.
confirm_interactionA
Confirm a counterparty's interaction report by filing your side.
When another agent reports an interaction involving you, call this to confirm it. This creates your matching report and sets both reports' mutually_confirmed flags to true, increasing credibility weighting.
You can agree with the counterparty's outcome or report a different one. If you report a different outcome, the interaction is still marked as mutually confirmed (both parties reported), but the outcomes are recorded independently.
REQUIRES authentication (access_token with trust.report scope).
Example call: confirm_interaction( interaction_id="a1b2c3d4-...", outcome="success", access_token="eyJ..." )
Example response: { "confirmed": true, "interaction_id": "a1b2c3d4-...", "your_report_id": "e5f6a7b8-...", "mutually_confirmed": true, "outcome_match": true }
Inputs: interaction_id (required), outcome (required), access_token (required), context.
discoverA
Discover AgentTrust capabilities, tools, auth methods, and rate limits.
Call this first when connecting to AgentTrust to understand what's available and how to authenticate. No authentication required.
Returns a complete catalog of:
Available tools with descriptions and required scopes
Supported authentication methods
Rate limit tiers by trust level
Score types and their meanings
Interaction types and outcome options
Example response (abbreviated): { "service": "AgentTrust", "version": "1.0.0", "auth_methods": [...], "tools": [...], "score_types": {...}, "rate_limits": {...} }
Inputs: no named parameters.
file_disputeA
File a dispute against an interaction outcome.
Provide the interaction_id from a previously reported interaction and a clear reason explaining why you believe the outcome was incorrectly reported.
REQUIRES authentication (access_token) and trust.dispute.file scope.
Filing frivolous disputes damages your own trust score — dismissed disputes apply a small penalty to the filer.
Returns dispute_id and status ('open').
Example call: file_dispute( interaction_id="a1b2c3d4-...", reason="Counterparty did not deliver the agreed code review within SLA", access_token="eyJ..." )
Example response: { "dispute_id": "d5e6f7a8-...", "interaction_id": "a1b2c3d4-...", "filed_against": "550e8400-...", "status": "open", "created_at": "2026-03-20T12:00:00+00:00" }
Inputs: interaction_id (required), reason (required), access_token (required), evidence.
generate_agent_tokenA
Generate a signed access token for a standalone agent.
Standalone agents authenticate by signing short-lived JWTs with their Ed25519 private key. Call this tool to obtain an access_token that can be passed directly to report_interaction, file_dispute, issue_attestation, get_score_breakdown, and any other tool requiring authentication.
The token is signed using your private key — no key material is stored server-side. When your token expires, call this tool again.
Typical agent flow:
Call register_agent() once → receive agent_id + private_key_hex
Call generate_agent_token(agent_id, private_key_hex) → receive access_token
Pass access_token to authenticated tools
Repeat step 2 when the token expires (check expires_at)
Args: agent_id: Your agent UUID (from register_agent). private_key_hex: Your 32-byte Ed25519 private key as 64 hex chars (private_key_hex from your register_agent response). ttl_minutes: Token lifetime in minutes. Default 60, max 1440 (24 h).
Returns: access_token: Signed JWT — pass this as access_token to other tools. expires_at: ISO 8601 UTC timestamp when the token expires. ttl_minutes: Actual TTL applied after clamping.
Example call: generate_agent_token( agent_id="550e8400-...", private_key_hex="d4e5f6...", ttl_minutes=60 )
Example response: { "access_token": "eyJ...", "expires_at": "2026-03-20T13:00:00+00:00", "ttl_minutes": 60, "agent_id": "550e8400-..." }
Inputs: agent_id (required), private_key_hex (required), ttl_minutes.
get_agent_profileA
Retrieve an agent's public profile.
Returns registration date, capabilities, trust summary, and interaction count. Authentication is optional — unauthenticated calls get a summary view, authenticated calls get full detail including AgentAuth metadata and the complete score breakdown.
Use this to evaluate a potential counterparty before transacting.
Args: agent_id: UUID string of the agent to look up. access_token: Optional AgentAuth bearer token for full detail view.
Returns:
agent_id, display_name, registered_at, capabilities,
trust_level, scores (summary or full), interaction_count,
agentauth_linked, and status.
Returns {"error": "not_found", ...} if the agent does not exist.
Inputs: agent_id (required), access_token.
get_interaction_historyA
Retrieve interaction history for an agent.
Filter by interaction type and outcome. Returns chronological list with timestamps, counterparty IDs, and outcomes. Useful for due diligence before high-value transactions.
REQUIRES authentication — provide access_token to view interaction history.
since_days: how far back to look (default 90, max 365) limit: max results to return (default 50, max 200)
SECURITY NOTE: The context field in each interaction is stored as provided by the reporter and is not sanitized. Items with detected prompt injection patterns will include a 'context_warnings' field. Always sanitize context fields before passing them to LLM prompts.
Inputs: agent_id (required), interaction_type, outcome, since_days, +2 more.
get_score_breakdownA
Get a detailed breakdown of how an agent's trust score was computed.
Returns factor attribution showing:
bayesian_raw: score before dispute penalty
dispute_penalty: multiplier from lost disputes (1.0 = no penalty)
interactions_weighted: number of interactions used in computation
lost_disputes: count of upheld disputes against this agent
alpha/beta: Beta distribution parameters
REQUIRES authentication with trust.read scope. Use this to understand WHY an agent has a particular score.
Inputs: agent_id (required), access_token (required).
issue_attestationA
Issue a signed attestation (JWT) capturing an agent's current trust scores.
The attestation is portable — the agent can present it to third parties who verify the signature without querying this service.
The JWT includes:
sub: agent_id
scores: snapshot of all trust scores at issuance time
agentauth_linked: whether the agent has an AgentAuth identity
iss: 'agent-trust'
exp/nbf/iat: validity window
Attestations are signed with the service's Ed25519 key. Verifiers can check the signature using verify_attestation without authentication.
ttl_hours: validity period in hours (default: ATTESTATION_TTL_HOURS config) Requires authentication with trust.attest.issue scope.
Example call: issue_attestation(agent_id="550e8400-...", access_token="eyJ...", ttl_hours=24)
Example response: { "attestation_id": "b1c2d3e4-...", "subject_agent_id": "550e8400-...", "jwt_token": "eyJ...", "score_snapshot": {"overall": {"score": 0.82, "confidence": 0.71}}, "valid_from": "2026-03-20T12:00:00+00:00", "valid_until": "2026-03-21T12:00:00+00:00" }
Inputs: agent_id (required), access_token (required), ttl_hours.
link_agentauthA
Link a standalone trust profile to an AgentAuth identity.
Provide your AgentAuth access_token, the public_key_hex you
originally registered with, and a signed_proof JWT proving you own
the standalone agent's private key. Your interaction history and scores
transfer to the AgentAuth identity. The standalone profile is updated to
reflect the AgentAuth source. This is a one-time, irreversible operation.
After linking, authenticate exclusively with your AgentAuth token — the public key will no longer be usable for authentication.
Canonical agent ID contract: after a successful link the canonical
agent_id is always the original standalone UUID. The AgentAuth UUID
is stored as agentauth_id in the profile's metadata and is also
returned in the response as agentauth_id. All historical scores and
interactions remain attached to the canonical standalone UUID.
The signed_proof JWT must be signed with the standalone agent's
Ed25519 private key (algorithm EdDSA) and contain the following
claims:
sub: yourpublic_key_hex(hex-encoded 32-byte public key)action: the literal string"link_agentauth"iat: issued-at Unix timestamp (must be within 300 seconds of now)
Example (Python)::
import jwt, time
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
private_key = Ed25519PrivateKey.from_private_bytes(bytes.fromhex(private_key_hex))
signed_proof = jwt.encode(
{"sub": public_key_hex, "action": "link_agentauth", "iat": int(time.time())},
private_key,
algorithm="EdDSA",
)Args:
access_token: Valid AgentAuth bearer token identifying the target identity.
public_key_hex: Hex-encoded Ed25519 public key used during standalone registration.
signed_proof: JWT signed by the standalone agent's Ed25519 private key,
proving ownership of the key. Must contain sub, action, and
iat claims as described above.
dry_run: When True, validate everything but do not commit any
changes. Returns a preview of what would happen including current
scores. Defaults to False.
Returns:
On success: agent_id (canonical standalone UUID), canonical_agent_id
(same as agent_id), agentauth_id (AgentAuth UUID stored in
metadata), merged (bool), and a confirmation message.
On ``dry_run=True``: ``dry_run`` (``true``), ``would_link_agent_id``,
``agentauth_id``, ``current_scores``, ``interaction_count``,
``capabilities``, and ``message``.Error codes:
- invalid_input: malformed public_key_hex.
- proof_sig_invalid: JWT signature or content check failed.
- proof_expired: JWT iat is outside the 300-second window.
- key_not_found: no standalone agent registered with that public key.
- already_linked: the standalone profile is already linked to AgentAuth.
- authentication_failed: AgentAuth token invalid or expired.
Inputs: access_token (required), public_key_hex (required), signed_proof (required), dry_run.
list_my_attestationsA
List your active (non-expired, non-revoked) attestations.
Returns all attestations issued for your agent identity that are still valid. Each entry includes the attestation ID, validity window, seconds remaining, and the score snapshot captured at issuance.
REQUIRES authentication (access_token or public_key_hex).
Example call: list_my_attestations(access_token="eyJ...")
Example response: { "agent_id": "550e8400-...", "attestations": [ { "attestation_id": "b1c2d3e4-...", "issued_at": "2026-03-20T12:00:00+00:00", "valid_until": "2026-03-21T12:00:00+00:00", "seconds_remaining": 86400, "score_snapshot": {"overall": {"score": 0.82, "confidence": 0.71}} } ], "count": 1 }
Inputs: access_token, public_key_hex.
list_pending_confirmationsA
List interactions reported by counterparties that await your confirmation.
When another agent reports an interaction involving you, it starts as unconfirmed. Use confirm_interaction to confirm their report, which boosts the mutual_confirmed flag and increases credibility weighting.
REQUIRES authentication (access_token with trust.read scope).
since_days: how far back to look (default 30, max 365) limit: max results (default 50, max 200)
Example call: list_pending_confirmations(access_token="eyJ...")
Example response: { "agent_id": "my-uuid", "pending": [ { "interaction_id": "a1b2c3d4-...", "reported_by": "counterparty-uuid", "interaction_type": "transaction", "outcome": "success", "reported_at": "2026-03-20T12:00:00+00:00" } ], "count": 1 }
Inputs: access_token (required), since_days, limit.
register_agentA
Register a new agent in the trust network.
Three registration paths:
AgentAuth (preferred): Provide your AgentAuth
access_token. Your identity is verified via token introspection and your AgentAuthagent_idbecomes your trust profile ID. Zero additional config needed.Standalone: Provide an Ed25519
public_key_hex(hex-encoded 32-byte public key). You get a local trust profile with limited scopes (trust.read+trust.report). You can link to AgentAuth later via thelink_agentauthtool.Auto-generated keys: Omit both
access_tokenandpublic_key_hex(standalone mode only). An Ed25519 key pair is generated for you and returned in the response aspublic_key_hexandprivate_key_hex. Store the private key immediately — it is shown only once.
If the agent profile already exists, returns the existing profile without error (idempotent).
Args:
display_name: Human-readable name for this agent (optional).
capabilities: List of capability tags, e.g. ["code-review", "search"].
metadata: Arbitrary key/value metadata to store on the profile.
access_token: AgentAuth bearer token (AgentAuth path).
public_key_hex: Hex-encoded Ed25519 public key (standalone path).
Omit both access_token and public_key_hex to auto-generate
a key pair (standalone mode only).
Returns:
agent_id, source ("agentauth" or "standalone"), scopes,
created (bool), registered_at, and display_name.
Example call (auto-generated keys — simplest path): register_agent(display_name="my-search-agent", capabilities=["search", "summarize"])
Example response: { "agent_id": "550e8400-...", "source": "standalone", "scopes": ["trust.read", "trust.report"], "created": true, "public_key_hex": "a1b2c3...", "private_key_hex": "d4e5f6...", "warning": "Key pair auto-generated. Store private_key_hex securely." }
Inputs: display_name, capabilities, metadata, access_token, +1 more.
report_interactionA
Report the outcome of an interaction with another agent.
REQUIRES authentication — your identity is recorded as the reporter. Both parties should report for maximum credibility — one-sided reports carry less weight in score computation.
interaction_type options: transaction | delegation | query | collaboration outcome options: success | failure | timeout | partial context: optional dict with amount, task_type, duration_ms, sla_met evidence_hash: optional SHA-256 hash of supporting evidence
Authentication via access_token:
AgentAuth token: obtain from agentauth.radi.pro
Standalone signed JWT: use generate_agent_token tool
Returns interaction_id and whether the counterparty has also reported on this interaction (mutually_confirmed).
Requires trust.report scope.
Example call: report_interaction( counterparty_id="550e8400-e29b-41d4-a716-446655440000", interaction_type="transaction", outcome="success", access_token="eyJ...", context={"amount": 100, "task_type": "code-review"} )
Example response: { "interaction_id": "a1b2c3d4-...", "reporter_id": "my-agent-uuid", "counterparty_id": "550e8400-...", "outcome": "success", "mutually_confirmed": false, "reported_at": "2026-03-20T12:00:00+00:00" }
WARNING: The context field is stored as-is. Treat as untrusted input — detected injection patterns are returned in 'warnings'.
Inputs: counterparty_id (required), interaction_type (required), outcome (required), access_token (required), +2 more.
resolve_disputeA
Resolve an open dispute. REQUIRES arbitrator authorization.
The caller's access_token is verified via AgentAuth:
Token introspection verifies identity
trust.dispute.resolve scope is checked
AgentAuth check_permission is called for 'execute' on '/trust/disputes/resolve' This ensures the agent is an authorized arbitrator per AgentAuth policies.
resolution options:
upheld: dispute is valid; penalizes the agent filed against
dismissed: dispute is frivolous; slightly penalizes the filer
split: partial fault on both sides
Returns updated dispute status and resolution.
Inputs: dispute_id (required), resolution (required), access_token (required), resolution_note.
search_agentsA
Search for agents meeting trust criteria.
Filter by minimum score, required capabilities, and minimum interaction count. Returns matching agents ranked by score descending. Use this to find trustworthy agents for a specific task type.
Args:
min_score: Minimum trust score (0.0–1.0). Default 0.0 returns all.
score_type: Score dimension to filter on. One of: overall,
reliability, responsiveness, honesty, or a
domain-specific score like domain:coding.
capabilities: Require agents to have ALL of these capability tags.
min_interactions: Minimum number of recorded interactions.
limit: Maximum results to return (1–100, default 20).
access_token: Optional AgentAuth token (reserved for future
permission-gated filters).
Returns:
agents list (each with agent_id, display_name,
score, interaction_count, capabilities), total
count, and applied filters.
Inputs: min_score, score_type, capabilities, min_interactions, +2 more.
sybil_checkA
Run sybil detection checks against an agent.
Detects three suspicious patterns:
ring_reporting: mutual positive feedback loops (A rates B high, B rates A high)
burst_registration: many agents registered in a short time window
delegation_chain: unusually long delegation chains (>3 hops)
Returns risk_score (0.0 clean → 1.0 suspicious), is_suspicious flag, and detailed signals with severity and evidence.
No authentication required — this is a public safety tool.
Example call: sybil_check(agent_id="550e8400-e29b-41d4-a716-446655440000")
Example response: { "agent_id": "550e8400-...", "risk_score": 0.0, "is_suspicious": false, "is_high_risk": false, "signals": [], "checked_at": "2026-03-20T12:00:00+00:00" }
Inputs: agent_id (required).
verify_attestationA
Verify an attestation's signature, check expiry, and confirm it hasn't been revoked.
Returns validity status, the embedded score snapshot, subject agent_id, and time remaining until expiry.
No authentication required — attestations are designed to be portable and verifiable by any party without querying this service. This is by design: third parties can verify trust claims offline.
Inputs: jwt_token (required).
verify_link_proofA
Preflight check: validate a link_agentauth proof without writing to the DB.
Runs all the same validation steps as link_agentauth — token
authenticity, key lookup, proof signature, expiry, and whether the
agent is already linked — but never persists any changes. Use this
before calling link_agentauth to confirm everything is in order.
Args:
access_token: AgentAuth bearer token to validate.
public_key_hex: Hex-encoded Ed25519 public key of the standalone agent.
signed_proof: JWT signed by the standalone private key (same format
required by link_agentauth).
Returns: A dict with:
- ``valid`` (bool): ``True`` only when all checks pass.
- ``checks``: individual check results:
- ``token_valid`` — AgentAuth token successfully authenticated.
- ``key_found`` — standalone agent exists with this public key.
- ``proof_sig_valid`` — JWT signature, ``sub``, and ``action`` OK.
- ``proof_not_expired`` — ``iat`` within 300 seconds of now.
- ``already_linked`` — the agent is already linked (blocks linking).
- ``agent_id``: standalone UUID if the key was found, else omitted.
- ``error``: description of the first failing check, if ``valid=False``.
Inputs: access_token (required), public_key_hex (required), signed_proof (required).
whoamiA
Check your identity as AgentTrust sees it.
Returns your agent_id, registration source (agentauth or
standalone), trust scores summary, interaction count, active scopes,
and registration date. Useful for verifying your auth is working correctly
before making other calls.
Canonical agent ID contract: for agents that have linked a standalone
profile to AgentAuth via link_agentauth, the agent_id returned
here is always the original standalone UUID. The AgentAuth UUID is stored
as agentauth_id in the profile's metadata_ field. Use the
standalone UUID (canonical ID) as the stable identifier in all API calls.
Args: access_token: AgentAuth bearer token. public_key_hex: Hex-encoded Ed25519 public key (standalone agents).
Returns:
agent_id (canonical standalone UUID), source, trust_level,
scopes, registered_at, display_name, capabilities,
agentauth_linked, and scores (dict of score_type → score).
Inputs: access_token, public_key_hex.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Every tool has a clearly distinct purpose, from registration and authentication to trust checking, interaction reporting, disputes, attestations, linking, and sybil detection. No two tools overlap in functionality.
Most tools follow a verb_noun pattern (e.g., check_trust, report_interaction, issue_attestation). However, a few deviate (e.g., agent_status, whoami, discover), preventing a perfect score.
23 tools is slightly above the typical 3-15 range for a well-scoped server, but the comprehensive nature of a trust network service justifies the count. It is not excessive or thin.
The tool surface covers the full lifecycle of trust management: registration, authentication, trust querying, interaction reporting, confirmation, disputes, attestations, linking, search, and sybil detection. Only minor gaps like attestation revocation are missing.
Maintenance
Related MCP Connectors
Free trust records for AI agents and MCP servers: trust checks, sybil signals, signed attestations.
Trust infrastructure for AI agents. Portable reputation (JTS 0-5), agent discovery, vouching.
Agent reputation registry: check, register, and endorse AI agents
MCP-native Trust Infrastructure for AI Agents. Persistent encrypted memory with Trust Quotient.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides AI agents with trust scoring and reputation management capabilities for secure interactions. Enables agents to check trust scores, rate interactions, and manage disputes before transacting with other agents.-
- AlicenseAqualityDmaintenanceMCP server for agent reputation staking — trust through skin-in-the-game. Agents deposit stakes as trust collateral, with slashing for bad behavior and reputation building over time.720 PyPIMIT
- AlicenseAqualityDmaintenanceMCP server for AI agent trust verification, enabling agents to verify identities, check trust scores, and build reputation across multiple blockchain and web platforms.1215 npm1MIT
- AlicenseAqualityDmaintenanceMCP server that enables AI agents to verify each other's trust scores, register, submit reviews, and find trusted agents before transacting.4MIT