Skip to main content
Glama

Publish work you already computed, and get it attested on-chain

tereno_publish

Free, no payment and no gas. Submit a contract bytecode fingerprint you computed yourself. Tereno recomputes it against chain state: a mismatch burns the submission, a match makes you the seeder and pays you the reuse dividend in non-transferable credits whenever another wallet's settled call reuses it. Supply an ERC-8004 agentId you own and the passing audit is also projected to the Reputation Registry on Base under tag tereno.audit. No agentId yet? This tool has no HTTP-only sibling here: pay POST /api/v1/agents/register once (small flat fee, covers the mint gas) to get one, then publish again with it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "wallet": "<wallet>",
      "address": "<address>",
      "bytecodeBytes": "<bytecodeBytes>",
      "computedAtBlock": "<computedAtBlock>"
    },
    "name": "tereno_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
nonceNoUnique alphanumeric nonce (8-128 chars) signed in the EIP-712 AgentAction message when HTTP x-agent-nonce header is not set.
walletYesYour Base wallet. Becomes the seeder and earns the reuse dividend.
addressYesBase contract address the fingerprint is for.
agentIdNoOptional ERC-8004 agentId you own, as a decimal string. Ownership is verified against ownerOf before anything is written on-chain; an unverifiable claim is skipped and changes nothing about the publication.
signatureNoEIP-712 AgentAction signature (action='artifact_publish') when HTTP x-agent-signature header is not set.
timestampNoUnix timestamp in milliseconds signed in the EIP-712 AgentAction message (within 5 minutes) when HTTP x-agent-timestamp header is not set.
bytecodeHashNoLowercase keccak256 of the deployed bytecode you read. Omit when bytecodeBytes is 0 (treated as null).
bytecodeBytesYesLength of the deployed bytecode in bytes (0 when address has no code).
computedAtBlockYesBlock number you read the bytecode at.
registerIfMissingNoExplicit consent to be attested via a Tereno-delegated identity you already paid POST /api/v1/agents/register for. Included in the signed EIP-712 JSON resource (see tereno_bounties fulfillmentGuide.freePublishPath.signingSpec).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / bytecodeBytes / description
      Previous value: -"Length of the deployed bytecode in bytes. Must be 0 exactly when bytecodeHash is omitted."New value: +"Length of the deployed bytecode in bytes (0 when address has no code)."
    • changedInput schema / properties / bytecodeHash / description
      Previous value: -"keccak256 of the deployed bytecode you read. Omit only for an address with no code."New value: +"Lowercase keccak256 of the deployed bytecode you read. Omit when bytecodeBytes is 0 (treated as null)."
    • changedInput schema / properties / nonce / description
      Previous value: -"Optional unique alphanumeric nonce (8-128 chars) signed in the EIP-712 AgentAction message when HTTP x-agent-nonce header is not set."New value: +"Unique alphanumeric nonce (8-128 chars) signed in the EIP-712 AgentAction message when HTTP x-agent-nonce header is not set."
    • changedInput schema / properties / registerIfMissing / description
      Previous value: -"Explicit consent to be attested via a Tereno-delegated identity you already paid POST /api/v1/agents/register for. Bind it by signing <contract-address>:erc8004-register as the resource. Does not itself trigger a mint — it only unlocks reuse of one you hold."New value: +"Explicit consent to be attested via a Tereno-delegated identity you already paid POST /api/v1/agents/register for. Included in the signed EIP-712 JSON resource (see tereno_bounties fulfillmentGuide.freePublishPath.signingSpec)."
    • changedInput schema / properties / signature / description
      Previous value: -"Optional EIP-712 AgentAction signature (action='artifact_publish') when HTTP x-agent-signature header is not set."New value: +"EIP-712 AgentAction signature (action='artifact_publish') when HTTP x-agent-signature header is not set."
    • changedInput schema / properties / timestamp / description
      Previous value: -"Optional Unix timestamp in ms signed in the EIP-712 AgentAction message (within 5 minutes) when HTTP x-agent-timestamp header is not set."New value: +"Unix timestamp in milliseconds signed in the EIP-712 AgentAction message (within 5 minutes) when HTTP x-agent-timestamp header is not set."
    • changedInput schema / required
      Previous value: -[
      -  "wallet",
      -  "address",
      -  "computedAtBlock"
      -]New value: +[
      +  "wallet",
      +  "address",
      +  "bytecodeBytes",
      +  "computedAtBlock"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / nonce
      Added value: +{
      +  "description": "Optional unique alphanumeric nonce (8-128 chars) signed in the EIP-712 AgentAction message when HTTP x-agent-nonce header is not set.",
      +  "maxLength": 128,
      +  "minLength": 8,
      +  "type": "string"
      +}
    • addedInput schema / properties / signature
      Added value: +{
      +  "description": "Optional EIP-712 AgentAction signature (action='artifact_publish') when HTTP x-agent-signature header is not set.",
      +  "pattern": "^0x[0-9a-fA-F]+$",
      +  "type": "string"
      +}
    • addedInput schema / properties / timestamp
      Added value: +{
      +  "description": "Optional Unix timestamp in ms signed in the EIP-712 AgentAction message (within 5 minutes) when HTTP x-agent-timestamp header is not set.",
      +  "type": "number"
      +}
  3. Added

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, the description discloses the crucial consequence that a hash mismatch burns the submission, that a match confers seeder status and a reuse dividend in non-transferable credits, and that the audit is projected to the Reputation Registry on Base under tag tereno.audit. It also explains that agentId ownership is verified against ownerOf before any on-chain write and that an unverifiable claim is silently skipped rather than failing the call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence front-loads the most decision-relevant fact (free, no gas), followed by the mechanics, the reward, the agentId option and the registration prerequisite in a logical order. Sentences are long and clause-dense, but no sentence is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter, non-idempotent, open-world mutation with no output schema, the description covers the main outcome branches (match pays, mismatch burns, agentId projects attestation) and the registration prerequisite. It could say more about what the caller receives back on a successful publish (e.g. the attestation receipt or dividend amount), but the core decision information is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all ten parameters including nonce, signature, timestamp and the bytecode hash/bytes pairing. The description adds context for agentId (that it must be one you own and how to obtain one) but nothing about the signing fields or block anchoring beyond what the schema states. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The definition states a specific verb and resource: submit a bytecode fingerprint you computed, have Tereno recompute it against chain state, and become the seeder if it matches. The title reinforces the outcome (attested on-chain). It does not explicitly differentiate from plausible siblings like contract_guard or chain_snapshot, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear usage context (free, no gas, submit a self-computed fingerprint) and a concrete prerequisite path for the agentId case: pay POST /api/v1/agents/register once, then publish again. It also clarifies there is no HTTP-only sibling tool to fall back on. It lacks explicit when-not-to-use guidance or comparison against the other publish/guard siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.