Skip to main content
Attestix
Reference

API Reference

Complete reference for all 47 Attestix MCP tools organized by module.

API Reference

All 47 Attestix MCP tools organized by module.

Identity (8 tools)

create_agent_identity

Create a Unified Agent Identity Token (UAIT) from any identity source.

ParameterTypeRequiredDefaultDescription
display_namestringYes-Human-readable name for the agent
source_protocolstringNo"manual"Origin protocol: mcp_oauth, a2a, did, api_key, manual
identity_tokenstringNo""Original token/DID/URL to analyze
capabilitiesstringNo""Comma-separated capabilities (e.g., "data_analysis,reporting")
descriptionstringNo""What this agent does
issuer_namestringNo""Who issued this identity
expiry_daysintNo365Days until expiry

Returns: UAIT object with agent_id, signature, issuer.did, and all metadata.

resolve_identity

Auto-detect token type (JWT/DID/URL/API key) and create a UAIT.

ParameterTypeRequiredDescription
identity_tokenstringYesAny identity string to analyze and register

verify_identity

Check existence, revocation, expiry, and cryptographic signature.

ParameterTypeRequiredDescription
agent_idstringYesAttestix agent ID (e.g., attestix:abc123...)

Returns: { "valid": bool, "checks": { "exists", "not_revoked", "not_expired", "signature_valid" } }

translate_identity

Convert a UAIT to another identity format.

ParameterTypeRequiredDefaultDescription
agent_idstringYes-Agent ID to translate
target_formatstringNo"summary"One of: a2a_agent_card, did_document, oauth_claims, summary

list_identities

ParameterTypeRequiredDefaultDescription
source_protocolstringNo""Filter by protocol. Empty = all
include_revokedboolNofalseInclude revoked identities
limitintNo50Maximum results

get_identity

ParameterTypeRequiredDescription
agent_idstringYesAgent ID to retrieve

revoke_identity

ParameterTypeRequiredDefaultDescription
agent_idstringYes-Agent ID to revoke
reasonstringNo""Revocation reason

purge_agent_data

GDPR Article 17 right to erasure. Removes all data for an agent across all storage files (identities, credentials, compliance, provenance, audit logs, reputation, delegations).

ParameterTypeRequiredDescription
agent_idstringYesAgent ID to completely erase

Returns: Summary of purged records per store.


Agent Cards (3 tools)

parse_agent_card

Parse an A2A Agent Card JSON into normalized fields.

ParameterTypeRequiredDescription
agent_card_jsonstringYesJSON string of the agent card

generate_agent_card

Generate a valid A2A Agent Card (agent.json) for hosting.

ParameterTypeRequiredDefaultDescription
namestringYes-Agent display name
urlstringYes-Base URL where agent is hosted
descriptionstringNo""What the agent does
skills_jsonstringNo"[]"JSON array of skill objects
versionstringNo"1.0.0"Agent version

discover_agent

Fetch /.well-known/agent.json from a URL (HTTPS only, SSRF-protected).

ParameterTypeRequiredDescription
urlstringYesBase URL of the agent (e.g., https://agent.example.com)

DID (3 tools)

create_did_key

Generate an ephemeral did:key with Ed25519 keypair. Private key stored locally in .keypairs.json.

No parameters required.

Returns: { "did": "did:key:z6Mk...", "did_document": {...}, "keypair_id": "keypair:...", "public_key_multibase": "z..." }

create_did_web

Generate a did:web DID Document for self-hosting.

ParameterTypeRequiredDefaultDescription
domainstringYes-Domain name (e.g., example.com)
pathstringNo""Optional path (e.g., agents/myagent)

resolve_did

Resolve any DID to its DID Document. Supports did:key (local), did:web (HTTPS), others via Universal Resolver.

ParameterTypeRequiredDescription
didstringYesDID to resolve (e.g., did:key:z6Mk...)

Delegation (4 tools)

create_delegation

Create a UCAN-style delegation JWT with EdDSA signature.

ParameterTypeRequiredDefaultDescription
issuer_agent_idstringYes-Agent granting capabilities
audience_agent_idstringYes-Agent receiving capabilities
capabilitiesstringYes-Comma-separated capabilities to delegate
expiry_hoursintNo24Hours until delegation expires
parent_tokenstringNo""Parent delegation token for chaining

verify_delegation

Verify a delegation JWT: signature, expiry, revocation, and structure.

ParameterTypeRequiredDescription
tokenstringYesJWT delegation token

list_delegations

ParameterTypeRequiredDefaultDescription
agent_idstringNo""Filter by agent ID
rolestringNo"any"issuer, audience, or any
include_expiredboolNofalseInclude expired delegations

revoke_delegation

Revoke a delegation token, immediately invalidating the delegated capabilities.

ParameterTypeRequiredDefaultDescription
delegation_idstringYes-Delegation ID to revoke
reasonstringNo""Revocation reason

Reputation (3 tools)

record_interaction

Record an interaction outcome and update trust score.

ParameterTypeRequiredDefaultDescription
agent_idstringYes-Agent being rated
counterparty_idstringYes-Agent on the other side of the interaction
outcomestringYes-success, failure, or partial
categorystringNo"general"Category (e.g., data_quality, response_time)
detailsstringNo""Additional context

get_reputation

Get reputation score with category breakdown.

ParameterTypeRequiredDescription
agent_idstringYesAgent ID to query

Returns: { "trust_score": 0.85, "total_interactions": 42, "category_breakdown": {...} }

query_reputation

Search agents by reputation criteria.

ParameterTypeRequiredDefaultDescription
min_scorefloatNo0.0Minimum reputation score
max_scorefloatNo1.0Maximum reputation score
categorystringNo""Filter by interaction category
min_interactionsintNo0Minimum number of interactions
limitintNo50Maximum results

Compliance (7 tools)

create_compliance_profile

Create an EU AI Act compliance profile with risk categorization.

ParameterTypeRequiredDefaultDescription
agent_idstringYes-Agent ID
risk_categorystringYes-minimal, limited, or high
provider_namestringYes-Company legal name
intended_purposestringNo""What the AI system does
transparency_obligationsstringNo""How transparency requirements are met
human_oversight_measuresstringNo""Human oversight mechanisms (required for high-risk)
provider_addressstringNo""Provider's registered address
authorised_representativestringNo""EU authorised representative

get_compliance_profile

ParameterTypeRequiredDescription
agent_idstringYesAgent ID

update_compliance_profile

Update an existing compliance profile's fields.

ParameterTypeRequiredDefaultDescription
agent_idstringYes-Agent ID
provider_namestringNo""Updated provider name
intended_purposestringNo""Updated intended purpose
transparency_obligationsstringNo""Updated transparency measures
human_oversight_measuresstringNo""Updated human oversight

get_compliance_status

Gap analysis showing completed vs missing requirements with completion percentage.

ParameterTypeRequiredDescription
agent_idstringYesAgent ID

record_conformity_assessment

Record a conformity assessment result (Article 43).

ParameterTypeRequiredDefaultDescription
agent_idstringYes-Agent ID
assessment_typestringYes-self or third_party
assessor_namestringYes-Assessor or notified body name
resultstringYes-pass, conditional, or fail
findingsstringNo""Detailed findings
ce_marking_eligibleboolNofalseCE marking eligibility

generate_declaration_of_conformity

Generate Annex V declaration + auto-issue W3C Verifiable Credential.

ParameterTypeRequiredDescription
agent_idstringYesAgent ID

list_compliance_profiles

ParameterTypeRequiredDefaultDescription
risk_categorystringNo""Filter by risk level
compliant_onlyboolNofalseOnly completed declarations
limitintNo50Maximum results

Credentials (8 tools)

issue_credential

Issue a W3C Verifiable Credential with Ed25519Signature2020 proof.

ParameterTypeRequiredDefaultDescription
subject_agent_idstringYes-Agent this credential is about
credential_typestringYes-Type (e.g., EUAIActComplianceCredential)
issuer_namestringYes-Issuing authority name
claims_jsonstringYes-JSON string of claims
expiry_daysintNo365Days until expiry

verify_credential

Check signature, expiry, and revocation status.

ParameterTypeRequiredDescription
credential_idstringYesCredential URN (e.g., urn:uuid:...)

revoke_credential

ParameterTypeRequiredDefaultDescription
credential_idstringYes-Credential URN to revoke
reasonstringNo""Revocation reason

get_credential

ParameterTypeRequiredDescription
credential_idstringYesCredential URN

list_credentials

ParameterTypeRequiredDefaultDescription
agent_idstringNo""Filter by subject
credential_typestringNo""Filter by type
valid_onlyboolNofalseExclude revoked/expired
limitintNo50Maximum results

create_verifiable_presentation

Bundle multiple VCs into a signed VP for a specific verifier.

ParameterTypeRequiredDefaultDescription
agent_idstringYes-Holder/presenter agent ID
credential_idsstringYes-Comma-separated credential URNs
audience_didstringNo""Verifier's DID
challengestringNo""Nonce from verifier for replay protection

verify_credential_external

Verify any W3C Verifiable Credential JSON from an external source (does not need to be in the local store).

ParameterTypeRequiredDescription
credential_jsonstringYesFull JSON string of the Verifiable Credential

Returns: { "valid": bool, "checks": { "structure_valid", "signature_valid", "not_expired" } }

verify_presentation

Verify a Verifiable Presentation including all embedded credentials.

ParameterTypeRequiredDescription
presentation_jsonstringYesFull JSON string of the Verifiable Presentation

Returns: { "valid": bool, "checks": { "structure_valid", "vp_signature_valid", "challenge_present", "domain_present", "credentials_valid", "holder_matches_subjects" } }


Provenance (5 tools)

record_training_data

Record a training data source (Article 10 compliance).

ParameterTypeRequiredDefaultDescription
agent_idstringYes-Agent ID
dataset_namestringYes-Dataset name
source_urlstringNo""Where the data came from
licensestringNo""Data license (e.g., CC-BY-4.0)
data_categoriesstringNo""Comma-separated categories
contains_personal_databoolNofalsePersonal data flag
data_governance_measuresstringNo""Quality, bias, cleaning measures

record_model_lineage

Record model lineage chain (Article 11 compliance).

ParameterTypeRequiredDefaultDescription
agent_idstringYes-Agent ID
base_modelstringYes-Foundation model name
base_model_providerstringNo""Model provider (e.g., Anthropic)
fine_tuning_methodstringNo""Adaptation method
evaluation_metrics_jsonstringNo"{}"JSON of metrics

log_action

Log an agent action for Article 12 audit trail.

ParameterTypeRequiredDefaultDescription
agent_idstringYes-Agent ID
action_typestringYes-inference, delegation, data_access, or external_call
input_summarystringNo""What was input
output_summarystringNo""What was output
decision_rationalestringNo""Why this decision
human_overrideboolNofalseWas there human intervention?

get_provenance

Get full provenance record (training data + model lineage + audit summary).

ParameterTypeRequiredDescription
agent_idstringYesAgent ID

get_audit_trail

Query audit trail with filters.

ParameterTypeRequiredDefaultDescription
agent_idstringYes-Agent ID
action_typestringNo""Filter by action type
start_datestringNo""ISO date filter (start)
end_datestringNo""ISO date filter (end)
limitintNo50Maximum results

Blockchain (6 tools)

anchor_identity

Anchor an identity hash to Base L2 via Ethereum Attestation Service.

ParameterTypeRequiredDescription
agent_idstringYesAgent ID to anchor

anchor_credential

Anchor a credential hash to Base L2 via EAS.

ParameterTypeRequiredDescription
credential_idstringYesCredential URN to anchor

anchor_audit_batch

Merkle batch anchor of audit log entries for an agent.

ParameterTypeRequiredDefaultDescription
agent_idstringYes-Agent ID
limitintNo100Maximum entries to include in batch

Returns: Merkle root hash, entry count, and transaction receipt.

verify_anchor

Verify an on-chain anchor against local data.

ParameterTypeRequiredDescription
artifact_idstringYesAgent ID or credential URN to verify

get_anchor_status

Get all anchoring records for an artifact.

ParameterTypeRequiredDescription
artifact_idstringYesAgent ID or credential URN

estimate_anchor_cost

Estimate gas cost for anchoring an artifact.

ParameterTypeRequiredDefaultDescription
artifact_typestringYes-identity, credential, or audit_batch