Skip to main content
Glama

security_pgp_key_check

Read-only

PGP key check — Decode and audit an OpenPGP (GPG) public key: fingerprint, key ID, algorithm/bits/curve, user IDs and emails, subkeys, usage flags, expiry, revocation, cipher/hash preferences. Self-signatures and subkey bindings are cryptographically verified (RSA, Ed25519, ECDSA). Flags RSA<2048, DSA, v3 keys, SHA-1 self-signatures, expired/revoked/expiring keys, no encryption subkey, no expiry, tampered blocks (bad signature or armor CRC). Verdict OK/REVIEW/WEAK/EXPIRED/REVOKED. pubkey= ASCII-armored key (URL-encode it), or url= (e.g. https://github.com/USER.gpg or https://keys.openpgp.org/vks/v1/by-email/EMAIL). Private keys are refused. Price: $0.005 USDC (Base, via x402).

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": {
      "pubkey": "<pubkey>"
    },
    "name": "security_pgp_key_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
pubkeyYes-----BEGIN PGP PUBLIC KEY BLOCK----- mDMEawLm5RYJKwYBBAHaRw8BAQdAZHzAHSjYTq6wDk2KSo5oLzMDHc+zlYHl6rx2 7tb3U2y0HkFsaWNlIFRlc3QgPGFsaWNlQGV4YW1wbGUuY29tPoiZBBMWCgBBFiEE LjmAMrvaGRWLclp6rnRa6IqJMZEFAmsC5uUCGwMFCQPCZwAFCwkIBwICIgIGFQoJ CAsCBBYCAwECHgcCF4AACgkQrnRa6IqJMZH7ZQD/TeoGxQ1hY7rwgm+rzUQGQImb ov+B15JOrMxR1FMbTYkA/2fdYShf1poxGPSED5WEzj1m19cXs8XkZXSNlHyIl0AH uDgEawLm5RIKKwYBBAGXVQEFAQEHQC/972AxJvtEiR5ugeErjOltq8Qnn6vl/WGK GY1EOz5DAwEIB4h+BBgWCgAmFiEELjmAMrvaGRWLclp6rnRa6IqJMZEFAmsC5uUC GwwFCQHhM4AACgkQrnRa6IqJMZGudAEAhBPIXXykI6w3lZ9nBhzYaq2y3HhoP4xP nnAhG5Wi4LYA/jybPpTTJbML+wlN3WRZ7VAcm/Hsn1lQKvD6Mqm79YUD =q8gq -----END PGP PUBLIC KEY BLOCK-----

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only establish readOnly/non-destructive/open-world; the description adds substantial behavioral detail beyond them: cryptographic verification of self-signatures and subkey bindings (RSA, Ed25519, ECDSA), the specific weakness flags raised, the verdict scale returned, rejection of private keys, and even cost ($0.005 USDC via x402 on Base). For a tool with no output schema, disclosing the return verdict taxonomy is exactly the right compensation.

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-loaded with the verb and audit scope, then the verification method, then the flag list, then the verdict, then invocation mechanics and price — a sensible priority order. The flag enumeration is dense but every item earns its place; a slightly tighter grouping would make it easier to scan.

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?

No output schema exists, and the description compensates by naming the verdict values and the conditions that trigger each flag, so an agent can interpret results without further documentation. It also covers input encoding, the private-key refusal, and the x402 pricing model — everything needed to call it correctly; the only blemish is the phantom url parameter.

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 pubkey property already carries a full armored-key example, so the baseline is 3. The description does add one genuinely useful note not in the schema — 'URL-encode it' for the armor block — but it also advertises a 'url=' alternative input that does not exist in the schema's single property, which could lead an agent to pass a nonexistent argument.

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?

Opens with a specific verb+resource ('Decode and audit an OpenPGP (GPG) public key') and enumerates the exact audit surface: fingerprint, key ID, algorithm/bits/curve, user IDs, subkeys, usage flags, expiry, revocation. This clearly separates it from siblings like security_ssh_key, which audits a different key format, without needing to name them.

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

Usage Guidelines4/5

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

Gives concrete invocation contexts (auditing a key's strength, verifying self-signatures, checking expiry/revocation) and a clear exclusion: 'Private keys are refused.' It stops short of explicitly routing the agent away from sibling tools or stating prerequisites for key acquisition, so it is clear context rather than full when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources