Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Get Ans Identity Certificates

get_ans_identity_certificates
Read-onlyIdempotent

Retrieve a registered agent's identity certificates, newest first, including the leaf certificate and ready-to-use x5c header so you can sign as that agent.

Instructions

EXPERIMENTAL. Get a registered agent's identity certificates, newest first, INCLUDING the certificate itself — this is what you need to sign something AS the agent. A signature carries the leaf certificate in its JWS x5c header; a verifier then hashes that certificate's DER and requires the result to appear in the transparency log's attested identity certificates (see verify_ans_host). x5c is returned ready to paste into a JWS header (base64 DER, no PEM armour, no line breaks) and signsWith names the JWS alg the key supports (ES256 for P-256, ES384 for P-384, RS256 for RSA), so you do not have to convert or infer either. certificatePEM, chainPEM and identityRootUrl are there for chain building — but chainPEM is a convenience, NOT a trust anchor: a verifier fetches the root from the log host itself or pins sha256(DER)=d914e2e37b5810362cb9575d54784ff3a95abe01ba3ec703d9bff826a280edcc. The issued certificate carries ONLY the URI SAN (ans://...); a DNS: SAN in the CSR is not carried over, so verify against the URI and never a DNS name. Several certificates is NORMAL, not an error: rotate_ans_identity adds one and the previous stays valid until its validTo, so newest: true marks the current one — and it is why a verifier must check WHICH certificate signed something rather than that one is listed. Porkbun never holds the private key: it stays with whoever generated the CSR and cannot be recovered. Nothing here is secret — the certificate is public once it is in the log. There is no certificate until the agent reaches ACTIVE (ANS_NO_CERTIFICATE); run advance_ans_agent first.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "get_ans_identity_certificates"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYesThe agentId from register_ans_agent or list_ans_agents.

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?

Annotations only cover the read-safe profile (readOnly, idempotent, non-destructive), and the description adds far more: multiple certificates is normal, newest:true marks the current one, nothing returned is secret, the private key is never held by Porkbun and cannot be recovered, and chainPEM is a convenience rather than a trust anchor. It even documents the failure mode ANS_NO_CERTIFICATE. This is substantive context beyond structured fields.

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 essential point — you get the certificate, ready to sign — is front-loaded in the first sentence, and the dense JWS/trust-anchor explanation earns most of its length by preventing a real misuse. It is still verbose and includes verification-side detail (root pinning, DER hashing) that arguably belongs in verify_ans_host, which keeps it from a 5.

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?

There is no output schema, so the description carries the return shape itself and does so thoroughly: x5c as base64 DER with no PEM armour, signsWith mapping algs to key types, certificatePEM/chainPEM/identityRootUrl, and the newest marker. It also states that the issued certificate carries only the URI SAN, which a caller cannot learn from the schema.

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?

There is a single required parameter at 100% schema description coverage, and the schema already explains that agent_id comes from register_ans_agent or list_ans_agents. The description implies that agent state affects the result but adds no syntax or format detail for agent_id itself, so this sits at the baseline for fully documented schemas.

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?

Names a specific verb and resource ('Get a registered agent's identity certificates') plus ordering ('newest first') and the crucial scope detail that the certificate itself is included, 'not just metadata'. It also distinguishes itself from verify_ans_host (verification) and rotate_ans_identity (rotation), so an agent can pick it without opening schemas.

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 ('this is what you need to sign something AS the agent'), a hard prerequisite ('There is no certificate until the agent reaches ACTIVE (ANS_NO_CERTIFICATE); run advance_ans_agent first'), and a related alternative (rotate_ans_identity adds one while the previous stays valid). Nothing about tool selection is left to inference.

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