Skip to main content
Glama

security_cert_decode

Read-only

X.509 certificate decoder — Decode a PEM certificate or chain offline (pem= URL-encoded, or url= of a .pem/.crt file): subject, issuer, serial, validity and days remaining, key type and size (RSA/EC curve/Ed25519), signature algorithm, SANs, CA flag, key usage, extended key usage, DV/OV/EV policy, OCSP/CA-issuer/CRL URLs, embedded SCT count, key IDs, SHA-256 and SHA-1 fingerprints, chain link check. Flags EXPIRED, NOT_YET_VALID, WEAK_RSA_KEY, WEAK_SIGNATURE_HASH, SELF_SIGNED, LEAF_VALIDITY_OVER_398_DAYS, WILDCARD, NO_EMBEDDED_SCTS; verdict OK/REVIEW/BAD. Refuses private keys. Price: $0.004 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": {
      "pem": "<pem>"
    },
    "name": "security_cert_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
pemYes-----BEGIN CERTIFICATE----- MIIC... -----END CERTIFICATE-----

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 already declare read-only, non-destructive, open-world, but the description adds substantial context beyond them: no key material accepted, a full enumeration of what is extracted and flagged, an OK/REVIEW/BAD verdict, and the paid-call requirement ($0.004 USDC via x402 on Base). The cost disclosure is exactly the kind of behavioral detail annotations cannot convey.

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?

Purpose is front-loaded in the first clause, and the long output enumeration is dense but each item is genuinely useful for deciding whether to call. The single run-on sentence with a heavy comma list is harder to scan than a short structured version would be.

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?

There is no output schema, so the description carries the burden of explaining returns — and it does, listing every extracted field, every flag, and the verdict scale. Inputs, refusals, pricing, and result shape are all covered for this complexity level.

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% for the single required 'pem' parameter, so baseline is 3. The description adds that the value may be URL-encoded, but it also advertises a 'url=' input that does not exist in the schema — a documented parameter the caller cannot actually supply — which tempers the added value.

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 ('X.509 certificate decoder — Decode a PEM certificate or chain') plus the operating mode ('offline'). An agent can immediately distinguish this from siblings such as security_jwt_decode or security_ssh_key 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 Guidelines4/5

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

Gives clear context: offline decoding, accepts PEM text or a .pem/.crt URL source, and explicitly states it 'Refuses private keys', which prevents a common misuse. It does not explicitly name when to prefer a sibling (e.g. jwt/ssh-key tools), so it stops short of 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