Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Rotate Ans Identity

rotate_ans_identity

EXPERIMENTAL. Issue a NEW identity certificate for a registered agent, keeping the same agent and the same version — so its ans:// name does not change.

Instructions

EXPERIMENTAL. Issue a NEW identity certificate for a registered agent, keeping the same agent and the same version — so its ans:// name does not change. Registering the same version again returns ANS_ALREADY_REGISTERED, so this is the way to change an agent's identity key without burning a version number. The usual reason: the agent was registered with an RSA key and now needs ECDSA P-256 so it can sign things with ES256. The user makes the new key and CSR themselves, exactly as for registration, so the private key never leaves them — NEVER ask for or accept a private key: openssl ecparam -name prime256v1 -genkey -noout -out identity.key then openssl req -new -key identity.key -out identity.csr -subj "/CN=<host>" -addext "subjectAltName=URI:ans://v<version>.<host>", where the URI SAN must be the agent's EXISTING ANS name (same version). The agent must be ACTIVE. IMPORTANT, and tell the user: the previous certificate stays valid until it expires and stays listed in the transparency log, so this is NOT a way to deal with a key that leaked — revoke the agent for that. It also means anything verifying a signature must check WHICH certificate signed it (the x5c in the signature), not merely that a certificate is listed. Use dry_run first to check the CSR without issuing anything.

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>",
      "identity_csr_pem": "<identity_csr_pem>"
    },
    "name": "rotate_ans_identity"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoCheck the CSR and the agent without issuing a certificate.
agent_idYesThe agentId from register_ans_agent or list_ans_agents.
identity_csr_pemYesPEM CSR for the NEW key, made by the user. URI SAN must equal the agent's existing ANS name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.65.7

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly=false, idempotent=false, destructive=false) by disclosing that the previous certificate stays valid until expiry and stays in the transparency log, that verification must check the x5c signer rather than mere log presence, that the agent must be ACTIVE, and that the private key must never be transmitted. These are exactly the non-obvious consequences an agent needs before invoking a mutation.

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 marker and the core effect, then layers rationale, procedure, and caveats in a sensible order. It is dense rather than padded, though the inline openssl invocations make the middle section heavy and could have been split for scanability.

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 non-idempotent mutation with three parameters and no output schema, the description covers preconditions, key handling, safety caveats, and the dry-run path. The only meaningful gap is that it does not indicate what a successful call returns (e.g., the new certificate chain), which matters since no output schema exists.

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 is 3; the description adds real value on top by spelling out the CSR construction requirements (URI SAN must equal the agent's EXISTING ans://v<version>.<host> name) with concrete openssl commands, and by framing dry_run as a pre-flight check. It stops short of describing the response payload, but the parameter meaning is genuinely enriched.

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 — issuing a NEW identity certificate for an already-registered agent while keeping the same agent and version — and explicitly contrasts it with re-registering the same version (which returns ANS_ALREADY_REGISTERED). An agent can distinguish this from register_ans_agent and revoke_ans_agent without opening any schema.

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 ('the agent was registered with an RSA key and now needs ECDSA P-256 so it can sign with ES256'), an explicit when-NOT-to-use ('this is NOT a way to deal with a key that leaked — revoke the agent for that'), a named alternative for that case, and a prescribed workflow ('Use dry_run first').

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