Skip to main content
Glama

RSA key pair generator

generate_rsa_key_pair
Read-only

Generate an RSA key pair in PEM format—PKCS#8 private key and SPKI public key—with selectable 1024–4096-bit length for cryptographic use.

Instructions

Generate an RSA key pair as PEM (PKCS#8 private key, SPKI public key). (Same as IT-Tools /rsa-key-pair-generator.)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_rsa_key_pair"
  }
}

Input Schema

NameRequiredDescriptionDefault
bitsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and idempotentHint=false, so the safety profile is carried for the description. The description adds the concrete output format, which is real value, but omits what actually matters for key generation: whether the private key is displayed, stored, or discarded, and that each invocation produces a fresh non-reproducible key (consistent with idempotentHint=false but worth stating).

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?

Two tight sentences, output format front-loaded, no filler. The trailing IT-Tools parity note is marginally useful as a provenance cue but is the one element that does not help an agent call the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-optional-parameter generator with no output schema, the description covers what is produced but not how it behaves: nothing about the returned structure beyond the encoding names, nothing about key-size implications, and nothing about handling of the sensitive private key. Adequate to invoke, thin for correct use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter `bits` is never mentioned in the description, and schema description coverage is 0%. The schema's const enum (1024/2048/3072/4096) and default of 2048 make the field largely self-explanatory, but the description does nothing to explain key-size tradeoffs or which size to prefer, so it fails to compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Generate an RSA key pair") and pins down the exact output encodings (PEM, PKCS#8 private, SPKI public). That is enough to separate it from generate_token, generate_uuid and the other generators without opening the schema, though it never names an alternative explicitly.

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?

There is no when-to-use or when-not guidance. The only contextual hint is the parenthetical "Same as IT-Tools /rsa-key-pair-generator", which is a parity note, not a selection rule. An agent gets no help deciding between this and encrypt_text or generate_token.

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