Skip to main content
Glama
pkistudio

PKI Studio MCP

Official
by pkistudio

Generate Key Pair

generate_key_pair

Generate an asymmetric key pair with specified algorithm, outputting private key in PKCS#8 DER and public key in SPKI DER format. Supports RSA, ECDSA, EdDSA, and Diffie-Hellman algorithms.

Instructions

Generate a key pair and return the private key as PKCS#8 DER and public key as SPKI DER.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
algorithmYesAlgorithm id from list_supported_key_algorithms, for example rsassa-pkcs1-v1_5-2048 or ecdsa-p-256.
labelNoOptional friendly label to include in the response.
encodingNoOutput encoding for DER or value bytes.hex
Behavior3/5

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

No annotations are provided, so the description carries full burden. It accurately states the output formats and that it generates a key pair, but does not disclose any side effects, security considerations, or limitations. Adequate but minimal.

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

Conciseness5/5

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

The description is a single sentence that directly states what the tool does. No unnecessary words or repetition; it is highly concise.

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?

Given no output schema, the description specifies the return format (private key as PKCS#8 DER, public key as SPKI DER). The parameter descriptions in the schema are clear. The description could mention output structure (e.g., separate or combined response) but overall is sufficient for a generation tool.

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?

Schema description coverage is 100% with clear descriptions for all three parameters (algorithm, label, encoding). The tool description adds no further semantic value beyond the schema, so a baseline score of 3 is appropriate.

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?

The description uses a specific verb ('Generate') and resource ('key pair') and clarifies the output formats (PKCS#8 DER and SPKI DER), which clearly distinguishes it from sibling tools like create_csr or verify_key_pair.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives (e.g., manual key generation, or calling list_supported_key_algorithms first). The description lacks context for usage decisions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pkistudio/pkistudiomcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server