Agent-Native Protocol Layer

MCP Layer

TruthLinked brings Model Context Protocol objects into chain state. Agents, tools, resources, prompt templates, policy cells, and action logs are represented by deterministic cells and signed transaction intents. The chain records what exists, who registered it, which policy controls it, and which transaction executed it.

On-chain registry Agents Tools Resources Prompt templates Policy cells Action logs

01 Core Model

The MCP layer gives autonomous software a native execution surface on TruthLinked. A model client can discover tools, read resources, request prompt templates, and submit agent actions through an MCP-shaped transport. The authoritative records live in cells, storage slots, transaction hashes, and indexed events.

Registry

The MCP registry is the namespace for registered tools, resources, prompt templates, and registry counters.

Agent

An agent is a post-quantum account bound to a policy cell through the agent registry.

Policy

A policy cell defines status, permissions, spend limits, rate limits, and per-tool authority.

Execution

State-changing tool usage is submitted as a signed McpToolCall transaction.

02 Protocol Objects

ObjectStored AsRole
MCP RegistryGenesis cellStores counts and indexes for tools, resources, and prompt templates. It maps names and positions to cell IDs.
ToolAxiom cellA callable capability with name, schema hash, category, enabled flag, call count, owner, bytecode, manifest hash, and declared execution surface.
ResourceCell storageA readable protocol object with name, URI scheme, MIME type, content hash, update timestamp, read count, and optional data slots.
Prompt TemplateCell storageA named instruction template with template hash, argument definitions, approval timestamp, and use count.
AgentAgent registry cellA post-quantum actor account linked to policy. Agent actions are attributable by account ID and transaction history.
Policy CellAxiom cellThe authority boundary for an agent: status, read/write/admin allowances, per-tool permission, rate limits, spend ceilings, and review thresholds.
Action LogProtocol cellA durable activity trail for agent actions and tool-call provenance.

03 Execution Flow

register capability
->
tool, resource, or prompt cell enters the registry
register agent
->
agent ID is bound to a policy cell
discover through MCP
->
client lists tools, resources, and prompt templates
submit action
->
agent signs a tool-call transaction
validate and execute
->
validators enforce policy and record history

This flow gives agent systems a stable operational contract. Discovery, authority, execution, and inspection use the same chain-backed state model.

04 Transaction Intents

IntentFunction
RegisterMcpToolRegisters a tool with bytecode, schema JSON, category, declared reads, declared writes, commutative keys, oracle schema IDs, and registry ID.
RegisterMcpResourceRegisters a resource with name, URI scheme, MIME type, initial data, declared state surface, and registry ID.
RegisterMcpPromptRegisters a prompt template with name, template bytes, argument definitions, and registry ID.
RegisterAgentBinds an agent account ID to a policy cell in the agent registry.
SuspendAgentMarks an agent as suspended and records the suspension reason.
ReinstateAgentRestores an agent to active service after suspension.
McpToolCallExecutes a tool call with agent ID, tool ID, calldata, value, gas limit, policy cell ID, action log ID, and timestamp.

05 Policy Cell

The policy cell is the control plane for agent authority. It gives the owner a concrete place to define what an agent can read, write, administer, spend, and call.

FieldMeaning
StatusCurrent operating state for the agent policy path.
Allow ReadsPermission for read-category tools.
Allow WritesPermission for state-changing tools.
Allow AdminPermission for administrative capabilities.
Per-Tool PermissionExplicit permission bit for a tool cell ID.
Rate LimitMaximum action frequency within the policy window.
Spend Per TransactionMaximum value an agent can forward in one call.
Spend Per EpochMaximum value an agent can use across an epoch window.
Review ThresholdHuman-review threshold for higher-risk activity.

06 MCP Transport

TruthLinked exposes MCP-compatible HTTP endpoints through the public MCP node gateways. Use mcp1 as the primary endpoint, with mcp2 and mcp3 available as additional node endpoints. The node process also exposes MCP locally on the RPC port plus one.

EndpointStatus
https://mcp1.truthlinked.org/mcpPrimary public MCP endpoint.
https://mcp2.truthlinked.org/mcpAvailable public MCP endpoint.
https://mcp3.truthlinked.org/mcpAvailable public MCP endpoint.
MethodPurpose
initializeReturns server identity and declares tool, resource, and prompt capabilities.
auth/challengeIssues a nonce for the agent key.
auth/respondVerifies the ML-DSA agent signature and opens an authenticated session.
tools/listLists registered enabled tools. With an agent ID, results are filtered by policy.
tools/callCalls read tools or submits a signed agent tool-call transaction for write paths.
resources/listLists registered resource cells.
resources/readReads resource data from a trth:// URI.
prompts/listLists approved prompt templates from the registry.
prompts/getReturns a named prompt template reference and metadata.
MCP_URL="https://mcp1.truthlinked.org/mcp"

curl -s "$MCP_URL" \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'

07 Native Tools

TruthLinked deploys native MCP tools at genesis so agents and clients can inspect the network immediately. These tools provide chain information, balances, validators, staking state, transactions, account history, cells, oracle results, SDK retrieval, faucet guidance, and transaction submission.

ToolUse
get_chain_infoCurrent height, finalized height, genesis hash, and session information.
get_balanceTRTH balance for a 32-byte account ID.
get_validatorsValidator list, active stake, and jail state.
get_cell_infoCell owner, token flag, immutability flag, and cell metadata.
get_transactionTransaction detail lookup by hash.
get_account_historyRecent transaction history for an account.
submit_transactionSubmission path for pre-signed MCP tool-call transactions.
http_fetchAccord-backed HTTP fetch path for oracle workflows.
MCP_URL="https://mcp1.truthlinked.org/mcp"

curl -s "$MCP_URL" \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_chain_info","arguments":{}}}'

08 CLI Usage

The Axiom CLI exposes MCP commands for the registry and execution path. Builders can register agents, resources, prompt templates, and submit agent tool calls from the same operational toolchain used for cells and transactions.

Register an agent

axiom mcp register-agent \
  --from ./owner.keys.json \
  --agent-keyfile ./agent.keys.json \
  --policy-cell-id <policy_cell_id>

Register a resource

axiom mcp register-resource \
  --from ./owner.keys.json \
  --resource-id <resource_cell_id> \
  --name market-feed \
  --uri-scheme trth \
  --mime-type application/json \
  --initial-data-json ./resource-data.json

Register a prompt template

axiom mcp register-prompt \
  --from ./owner.keys.json \
  --prompt-id <prompt_cell_id> \
  --name inspect-cell-risk \
  --template-file ./inspect-cell-risk.prompt.txt \
  --arg cell_id:"Cell ID to inspect":required \
  --arg risk_level:"Low, medium, or high":false

Call a tool as an agent

axiom mcp tool-call \
  --from ./agent.keys.json \
  --tool-id <tool_cell_id> \
  --policy-cell-id <policy_cell_id> \
  --calldata-hex <hex_payload> \
  --gas-limit 500000

09 Prompt Templates

A prompt template is a reusable instruction object with a stable name, argument schema, template hash, and prompt cell ID. It gives agent systems a registry-backed way to reference approved instruction patterns.

Name

The registry name used by MCP clients through prompts/list and prompts/get.

Template Hash

The content fingerprint for the registered instruction template.

Arguments

Named fields expected by the template, including required flags.

Use Count

A counter for prompt usage in agent workflows.

MCP_URL="https://mcp1.truthlinked.org/mcp"

curl -s "$MCP_URL" \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":3,"method":"prompts/list","params":{}}'

curl -s "$MCP_URL" \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":4,"method":"prompts/get","params":{"name":"inspect-cell-risk"}}'

A prompt count of zero means the registry currently has zero approved prompt templates visible to the MCP layer and explorer indexer.

10 Explorer Visibility

The explorer exposes MCP activity as a first-class chain surface. Operators can inspect registered agents, tool calls, policy links, resource registrations, prompt templates, and transaction references from the MCP Agents page, transaction pages, address pages, and cell pages.

SurfaceData
Agents pageAgent count, tool count, resource count, prompt-template count, tool-call count, and recent MCP activity.
Transaction pageIntent-specific fields for MCP registrations and tool calls.
Address pageMCP activity associated with an agent, owner, or actor address.
Cell pageTool, resource, policy, registry, and action-log cells with storage and event context.
Indexer APIGET /mcp/events and GET /address/{id}/mcp.

11 Operating Guidance

  • Use tools for callable capabilities with a schema and an authority boundary.
  • Use resources for durable data that agents can read and cite.
  • Use prompt templates for reusable instruction patterns that need provenance.
  • Use policy cells to keep agent authority narrow and reviewable.
  • Use action logs and explorer pages to inspect agent behavior after execution.
  • Use per-tool permissions for every capability that mutates state or forwards value.