Skip to main content
Glama

security_csr_decode

Read-only

Decode and lint a certificate signing request (CSR) — Decode a PEM PKCS#10 CSR offline and check it before you send it to a CA. text= (PEM CSR, URL-encoded) or url= (.csr/.pem file). Returns subject, SANs (DNS/IP/email/URI), key type/size/curve, SPKI SHA-256 pin, signature algorithm and whether the self-signature verifies, requested key usage/EKU/basicConstraints. Flags what CAs reject: RSA under 2048, SHA-1/MD5 signatures, broken signatures, missing SAN, CN not in SAN, internal names and private IPs, CA:TRUE, unsupported curves, Ed25519 for public TLS, challengePassword, bad country code. Verdict READY / REVIEW / FIX BEFORE SUBMITTING. Private keys are refused and never echoed. 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": {
      "text": "<text>"
    },
    "name": "security_csr_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes-----BEGIN CERTIFICATE REQUEST----- MIIBdjCB/gIBADAmMRgwFgYDVQQDDA9hcGkuZXhhbXBsZS5uZXQxCjAIBgNVBAoM AVgwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAARhWyOcgYn9Y/yVkS66MHjtso6rV3I8 MWVoWRx0pu2rRTaLwJeUl5moUr5eaITjZH1V5Bm/+b8fhTICtVCrs0xgrrLkfiXv JD8jFljY1Dfmr5EBYsZ2Zmq36rdojsL3CR6gWTBXBgkqhkiG9w0BCQ4xSjBIMBoG A1UdEQQTMBGCD2FwaS5leGFtcGxlLm5ldDAdBgNVHSUEFjAUBggrBgEFBQcDAQYI KwYBBQUHAwIwCwYDVR0PBAQDAgeAMAoGCCqGSM49BAMCA2cAMGQCMB+/bBA8MRIF qF3b1VgkaCwgGFhya+BGb7y1irE9VXf7gk/pwSfX+UxKBvtmOwUWMwIwW0u3uiVQ 6TVPW3L3Yy/JbCDuluvLrfxTuc0b6pq3cRf0OsLttpUIU+51++l17WX4 -----END CERTIFICATE REQUEST-----

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/destructive/openWorld, and the description goes well beyond them: offline processing, private keys refused and never echoed, the READY/REVIEW/FIX verdict scheme, and the $0.004 USDC x402 payment requirement. That payment and refusal behavior is exactly the non-obvious context an agent needs. Minor gap: it does not say what happens on malformed input or how the verdict thresholds are applied.

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, format, and input mechanism, and the long flag enumeration genuinely informs what the verdict means. Slight waste in the near-restatement between "Decode and lint a CSR" and the following clause, and the flag list is a dense run-on.

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 carries the return-value burden and does so thoroughly: subject, SANs by type, key type/size/curve, SPKI pin, signature algorithm and verification status, key usage/EKU/basicConstraints, plus the verdict enum. An agent knows both what it gets back and how to interpret it.

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 baseline is 3, and the description does add the useful detail that text must be URL-encoded PEM. However it advertises a "url= (.csr/.pem file)" input that does not exist in the schema (only text is defined, and it is required), which risks misdirecting invocation. Net value above schema is roughly neutral.

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 pair and resource ("Decode and lint a certificate signing request (CSR)") plus the concrete format (PEM PKCS#10) and the offline scope. It is clearly distinguishable from security_cert_decode, which handles issued certificates rather than signing requests.

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 a clear usage context — "check it before you send it to a CA" — and the action it enables (pre-submission validation). It stops short of explicit when-not guidance or naming a sibling alternative, so it is strong but not a full routing statement.

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