Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Build Agent Manifest

build_agent_manifest
Read-onlyIdempotent

Builds a signed agent manifest for a site that records published data files and the AI agent that produced them, so other agents can consume and verify the claim.

Instructions

EXPERIMENTAL, opt-in. Step 1 of 2: build a signed 'agent manifest' for a site — a machine-readable statement of what the site publishes and which AI agent produced it, so other agents can consume the data instead of scraping the page AND can verify the claim. Offer this only if the user asks for it; it is not part of a normal deploy. Requires an ACTIVE agent registered for that EXACT domain in the account (APM_NO_AGENT otherwise — register one first with register_ans_agent) whose identity key is ECDSA P-256 (APM_KEY_NOT_SIGNING_CAPABLE for RSA; rotate_ans_identity fixes that without changing the agent's name). Deploy the data files FIRST: this reads each artifact as actually deployed and records its real sha256, and a path that is not there is an error rather than a silent omission. If the site already has a manifest, read it first with read_hosting_file on .well-known/apm.json (or just fetch https:///.well-known/apm.json) and pass its entity/policy/endpoints/notes and each collection's descriptive fields back in - publishing REPLACES the file, and anything you leave out is dropped. This call writes no MANIFEST — but with mark_artifacts it DOES modify the artifact files themselves, because the marker has to be in the bytes before they are hashed. The response's markedArtifacts lists what changed, unmarkedArtifacts says why anything was skipped, and its note explains what an abandoned build leaves behind (a marker pointing at a manifest that does not list the file, which verifies as unclaimed). It returns signingInput (the exact bytes to sign) and manifestId (names those bytes, valid 30 minutes). YOU ALMOST CERTAINLY CANNOT SIGN THIS YOURSELF: the agent's private key belongs to the user and Porkbun never has it. Unless you are running somewhere that holds the key, give the user the signingInput and ask them to sign it with their identity key (ES256, ECDSA P-256 + SHA-256) and hand back the 64-byte r||s signature base64url-encoded. NEVER ask the user to paste a private key, and never accept one.

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": {
      "domain": "<domain>",
      "artifacts": "<artifacts>"
    },
    "name": "build_agent_manifest"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
domainYesFully qualified domain name in the account, e.g. `example.com`
entityNoWho publishes the site (name, location, links).
policyNoHow the data may be used, e.g. {training: 'disallow', quote: 'allow', attribution: 'required'}.
artifactsYesThe files the manifest should vouch for.
endpointsNo
mark_artifactsNoWrite an `agent-provenance` line into each file before hashing it, so the document itself points to its manifest and how to verify it. Survives copying and excerpting, which an HTTP header does not. THIS MODIFIES THE LIVE FILES, before anything is signed — it has to, or the recorded hashes would not match, so it needs the `hosting` permission just like publishing (a build WITHOUT this flag only reads, and works with a read-only key). Skipped for formats that cannot carry a comment safely: JSON, images, and CSV (a leading # line would be read as the header row).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.65.17

TDQS

A3.9/5.0
Behavior1/5

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

The annotations declare readOnlyHint=true and destructiveHint=false, but the description states that with `mark_artifacts` the call 'DOES modify the artifact files themselves' and 'THIS MODIFIES THE LIVE FILES'. That is a direct contradiction of the read-only annotation on a call whose whole purpose is producing verifiable hashes of live bytes. The rich disclosure of error codes and abandoned-build consequences is genuinely useful, but it cannot offset a safety-hint conflict of this severity.

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

Conciseness3/5

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

Front-loaded with the experimental status and the 'Step 1 of 2' framing, and nearly every sentence carries operational information. However, it is delivered as one dense wall of text with capitalized interjections ('ACTUALLY', 'ALMOST CERTAINLY', 'NEVER') where a short prerequisite/effect/next-step structure would have scanned faster for the single most consequential fact — that mark_artifacts writes to live files.

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

Completeness5/5

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

For a seven-parameter tool with nested objects and no output schema, the description covers the error cases (APM_NO_AGENT, APM_KEY_NOT_SIGNING_CAPABLE), the response contract (signingInput, manifestId with its 30-minute validity, markedArtifacts, unmarkedArtifacts, note), the key-custody boundary, and the exact follow-up the user must perform. Nothing an agent needs in order to call it correctly is absent.

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

Parameters4/5

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

Schema coverage is 71%, and the description still adds real meaning on top: entity/policy/endpoints/notes must be carried forward from an existing manifest because publishing REPLACES and silently drops omitted fields, artifact paths must reference already-deployed files, and mark_artifacts is inherently skipped for JSON, images, and CSV. It does not restate parameter types, so the value is semantic rather than duplicative.

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

Purpose5/5

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

States a specific verb and resource ('build a signed agent manifest for a site') and defines the artifact in one clause: a machine-readable statement of what the site publishes and which agent produced it, so consumers can verify rather than scrape. It also positions itself as 'Step 1 of 2', which separates it from the publish sibling without needing to name it.

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

Usage Guidelines5/5

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

Gives explicit when-to-use ('Offer this only if the user asks for it; it is not part of a normal deploy') and when-not, plus ordering constraints ('Deploy the data files FIRST') and named alternatives for prerequisites and prior state (register_ans_agent, read_hosting_file on .well-known/apm.json, rotate_ans_identity). An agent has everything needed to decide whether to call this at all.

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

Deploy Server

Other Tools