Skip to main content
Glama

ScorpTech x402 Tools

X509 Decode

x509_decode
Read-onlyIdempotent

Decode PEM/DER X.509 certificates, chains and CSRs offline: subject/issuer DN, serial, validity and days left, SANs, key type/size/curve, signature algorithm, key usage / EKU / basic constraints, AKI/SKI, OCSP / CA-issuer / CRL URLs, policies and embedded SCT count, SHA-1/SHA-256 fingerprints and SPKI pin; verifies each chain link signature and order, flags self-signed, expired / expiring, weak keys, SHA-1 signatures and over-long lifetimes, and checks hostname coverage (RFC 6125 wildcards). Private keys are refused. Returns JSON with: certificateCount, certificates. Price: $0.003 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/x509-decode

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": "x509_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
pemYesOne or more PEM certificates (leaf first) and/or a CSR, or base64 DER
hostnameNoOptional hostname / IP to check against the leaf SANs

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 readOnly/idempotent/non-destructive, and the description goes well beyond them: it discloses the verification logic (chain link signatures and order), the specific warnings raised (self-signed, expired, weak keys, SHA-1, over-long lifetimes), the RFC 6125 hostname rule, and the refusal of private keys. It also surfaces the payment requirement (x402, $0.003 USDC) and an alternate HTTPS transport, which are material to invocation and invisible in the annotations.

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?

The definition is front-loaded with the core action and organized as decode-scope, then verification behavior, then exclusions and pricing. It is dense and reads as a long run-on sentence, but nearly every clause carries distinct information, so little is wasted.

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?

With no output schema, the description compensates by naming the return shape (certificateCount, certificates) and by covering the behaviors an agent must anticipate: chain verification, warning flags, and private-key refusal. For a decode tool with two simple parameters, nothing needed to call it correctly is missing.

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%, so both parameters are already documented, and the description mostly restates the pem/hostname semantics the schema provides. The one genuine addition is the RFC 6125 wildcard rule for hostname matching, which is minor against an otherwise fully-documented schema, so the baseline 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 opens with a specific verb and resource ('Decode PEM/DER X.509 certificates, chains and CSRs') and enumerates exactly what is extracted, which cleanly separates it from sibling decoders such as jwt_decode or saml_decode. An agent knows precisely what this tool consumes and produces without opening the 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?

It establishes context ('offline') and one explicit exclusion ('Private keys are refused'), plus a hostname-checking mode, which tells the agent when the tool is and isn't applicable. It stops short of naming an alternative tool or stating when to prefer the HTTPS endpoint over this one, so it falls just short of a 5.

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