Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Register Ans Agent

register_ans_agent

EXPERIMENTAL: ANS is a draft standard and Porkbun's registry is new, so behaviour, fields and records may change; tell the user before they depend on it.

Instructions

EXPERIMENTAL: ANS is a draft standard and Porkbun's registry is new, so behaviour, fields and records may change; tell the user before they depend on it. PUBLIC AND PERMANENT: a registered agent is listed in the public directory and sealed in the transparency log; there is no unlisted option and revoking does not erase the record, so tell the user and don't register agents they want kept private. Give an AI agent a verifiable name with the Agent Name Service (free): ans://v1.0.0.<host>, an identity certificate, DNS discovery records, a public entry in Porkbun's transparency log, and a listing in the agent directory. Needs: (0) the agent host to be a domain registered at Porkbun in this account, or a subdomain of one (ANS_DOMAIN_NOT_ELIGIBLE otherwise; external domains added to the account don't count); (1) the agent already serving HTTPS at endpoint_url with a publicly trusted certificate (Let's Encrypt is fine); its served chain is registered; (2) identity_csr_pem, a certificate request the USER makes on their own machine so the private key never leaves them: openssl ecparam -name prime256v1 -genkey -noout -out identity.key then openssl req -new -key identity.key -out identity.csr -subj "/CN=<host>" -addext "subjectAltName=DNS:<host>,URI:ans://v<version>.<host>" (P-256 is the curve ES256 signing needs; RSA 2048+ and P-384 also work, but Ed25519, P-521 and EC keys with EXPLICIT curve parameters are refused — the one-step -newkey ec -pkeyopt ec_paramgen_curve form produces the explicit kind on macOS, which is why this is two commands) (the version in the URI must match version). Never generate or ask for the private key yourself. Returns agentId and agentStatus: PENDING_VALIDATION (status is the SUCCESS/ERROR envelope), with dnsResults (records published for you when the domain is on Porkbun nameservers in this account; any with published=false must be added at the user's DNS host). Then call advance_ans_agent until agentStatus is ACTIVE. Fill capabilities with what the agent really does: it is what people search the directory by. Errors: ANS_SERVER_CERT_UNREACHABLE (endpoint not serving HTTPS yet), ANS_SERVER_CERT_INVALID, ANS_ALREADY_REGISTERED (register a higher version).

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": {
      "endpoint_url": "<endpoint_url>",
      "identity_csr_pem": "<identity_csr_pem>"
    },
    "name": "register_ans_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoCheck the request without registering anything or writing DNS.
versionNoMAJOR.MINOR.PATCH, default 1.0.0. Must match the version in the CSR's ans:// URI.
protocolNoGuessed from the path when omitted (/mcp -> MCP, agent-card.json or /a2a -> A2A).
agent_hostNoOverride the host taken from endpoint_url. The user must control its DNS.
descriptionNo
capabilitiesNoWhat the agent can do, e.g. [{name:"domain_search", tags:["domains","search"]}].
display_nameNoShown in the directory. Defaults to the host.
endpoint_urlYesThe https:// URL the agent listens on, e.g. https://myagent.example.com/mcp. Its host is the agent host.
metadata_urlNoCapability card URL, if the agent has one.
identity_csr_pemYesPEM CSR for the agent identity, made by the user (see description).
server_certificate_pemNoFull chain (leaf first). Usually omit: the chain the endpoint serves is used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.65.4

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnly/openWorld/idempotent flags; the description adds substantive context beyond them: the standard is experimental and may change, the record is public and sealed in a transparency log with no unlisted option, revocation does not erase it, DNS records may be published automatically or must be added by the user, and the call returns PENDING_VALIDATION rather than an active agent. The openWorldHint=true and non-idempotentHint are consistent with the described permanent public write. Minor gap: it doesn't say whether repeating a failed registration is safe given ALREADY_REGISTERED.

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 two warnings (experimental, public/permanent) before the mechanics, then uses a numbered prerequisite list and a returns/next-step sentence, so it scans well. It is long and heavily parenthesized — the openssl curve digression is dense — but nearly every clause carries operational information an agent would otherwise get wrong.

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 an 11-parameter, non-idempotent, open-world registration with no output schema, the description still covers prerequisites, side effects, return shape (agentId, agentStatus, dnsResults with published flags), the required follow-up call, and the main error codes. Nothing an agent needs in order to invoke it correctly appears to be 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 91%, so the baseline is 3, but the description goes further: it explains why `identity_csr_pem` must be user-generated and gives exact openssl commands and accepted/rejected curves, that the URI version must match `version`, that `endpoint_url` must be live HTTPS whose served chain is used, and that `capabilities` drives directory search. It adds little for `dry_run`, `protocol` or `display_name`, which the schema already documents.

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: register an AI agent with the Agent Name Service, producing `ans://v1.0.0.<host>`, an identity certificate, DNS discovery records, a transparency-log entry and a directory listing. This is clearly distinguishable from siblings like advance_ans_agent, revoke_ans_agent and search_ans_agents, which are named or implied by the workflow.

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 preconditions (domain must be registered at Porkbun in this account; endpoint must already serve HTTPS with a publicly trusted cert; CSR must be user-generated), an explicit follow-up step (call advance_ans_agent until agentStatus is ACTIVE), and explicit exclusions (don't register agents the user wants kept private, never generate the private key). It also maps specific error codes to the corrective action.

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