Skip to main content
Glama

Inspect a public key

crypto_inspect_key
Read-onlyIdempotent

Inspect and parse PEM certificates, public keys, or OpenPGP armored blocks to verify key contents and format before import or cryptographic use.

Instructions

Inspect and parse PEM certificate, public key, or OpenPGP armored block.

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": {
      "keyData": "<keyData>"
    },
    "name": "crypto_inspect_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyDataYesPEM or armored key string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.41

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, covering the safety profile. The description adds that it accepts PEM certificates, public keys, and OpenPGP armored blocks, but does not disclose return format, error behavior, or parsing limitations.

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?

A single, front-loaded sentence with no filler. Every word contributes to specifying the action and accepted input types.

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?

The tool is simple and read-only, and annotations cover safety. However, with no output schema, the description should ideally explain what inspection results are returned (e.g., key type, size, fingerprint), which it omits.

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 coverage is 100%, and the single keyData parameter is already documented as a 'PEM or armored key string.' The description expands on accepted formats (certificate, public key, OpenPGP) but does not add syntax or validation details beyond the schema.

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?

The description uses a specific verb phrase ('Inspect and parse') and names the resource types ('PEM certificate, public key, or OpenPGP armored block'). This clearly distinguishes it from siblings like crypto_key_import or crypto_key_list, though it does not explicitly name those alternatives.

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?

The description states what the tool does but provides no guidance on when to use it versus alternatives such as crypto_key_import or crypto_key_list. No conditions, exclusions, or prerequisites are mentioned.

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