Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Publish Agent Manifest

publish_agent_manifest
Idempotent

Publish a signed agent manifest to /.well-known/apm.json so anyone can verify your site's files without an API key. Validates the signature and re-hashes artifacts before writing.

Instructions

EXPERIMENTAL. Step 2 of 2: publish the signed agent manifest to the site, using the manifestId from build_agent_manifest and the signature the user produced over its signingInput. signature must be the 64-byte r||s pair base64url-encoded — NOT the DER/ASN.1 blob openssl dgst -sign writes, which has to be converted first. If the user hands you DER output, say so rather than sending it. Porkbun verifies the signature exactly as an outside party would BEFORE writing anything: if it does not verify, nothing is published and the failing check is named (APM_SIGNATURE_INVALID). The artifacts are re-hashed too, so if the site changed since the manifest was built you get APM_ARTIFACTS_CHANGED and should build again. On success the manifest is written to /.well-known/apm.json and the response includes manifestSha256 and a verifyUrl anyone can check with no API key. SERVING CAN LAG THE WRITE by up to a couple of minutes, so if you verify immediately and the response's manifestSha256 does not match the one you just published, you are reading the previous file - wait and check again rather than reporting a failure. The manifest_id is single-use once a publish succeeds (a failed one can be retried); re-using a spent one returns APM_MANIFEST_ALREADY_PUBLISHED, which is not the same as APM_MANIFEST_EXPIRED. Tell the user they must re-publish whenever a listed file changes, because the manifest records hashes and an edited file stops matching until they do. Use dry_run to confirm the signature is good without writing.

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>",
      "manifest_id": "<manifest_id>",
      "signature": "<signature>"
    },
    "name": "publish_agent_manifest"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesFully qualified domain name in the account, e.g. `example.com`
dry_runNoVerify and report what would be published, without writing.
signatureYesES256 signature over signingInput: 64-byte r||s, base64url.
manifest_idYesFrom build_agent_manifest. Guarantees the bytes verified are the bytes signed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.65.17

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that verification happens before any write, names the specific failure codes (APM_SIGNATURE_INVALID, APM_ARTIFACTS_CHANGED, APM_MANIFEST_ALREADY_PUBLISHED vs APM_MANIFEST_EXPIRED), and warns that serving can lag the write so an immediate mismatch is not a failure. It also explains the single-use semantics of manifest_id and the post-publish obligation to re-publish when files change.

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?

Front-loads the EXPERIMENTAL flag and 'Step 2 of 2', and every sentence carries operational information. It is dense and long, but the density is justified by the number of distinct failure modes and recovery steps an agent must know.

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 mutation tool with no output schema, the description covers verification timing, error identifiers, eventual-consistency behavior, retry/single-use rules, and the verifyUrl it returns. Nothing needed to call it correctly or interpret a failure is missing.

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 100%, so the baseline would be 3, but the description genuinely adds meaning: it warns the signature must be the 64-byte r||s base64url pair rather than the DER/ASN.1 blob openssl dgst -sign emits, and explains manifest_id's single-use and byte-guarantee role beyond the schema's one-liner.

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 ('publish the signed agent manifest to the site') and explicitly positions itself as 'Step 2 of 2' relative to build_agent_manifest, so an agent can distinguish it from the build and verify siblings without opening a schema.

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?

Gives clear when-to-use context (after build_agent_manifest, with the user's signature over signingInput) and a when-to-use-alternatively clause for dry_run. It does not explicitly say when not to publish at all, but the preconditions and error paths effectively cover that.

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