Skip to main content
Glama

ScorpTech x402 Tools

Saml Decode

saml_decode
Read-onlyIdempotent

Decode and inspect SAML 2.0 messages for SSO debugging: paste a SAMLResponse / SAMLRequest (base64 from an HTTP-POST form, deflated + URL-encoded from an HTTP-Redirect URL, the whole redirect URL, or raw XML) or IdP / SP metadata. Returns the message type, issuer, destination, status, every assertion (NameID and format, subject confirmation, conditions with NotBefore / NotOnOrAfter checked against now, audiences, AuthnContext, session index, attributes), signature placement and algorithms, embedded certificates (subject, expiry, SHA-256 fingerprint) and metadata endpoints. Flags unsigned responses, SHA-1, signature references that do not cover their parent (XML Signature Wrapping), multiple assertions, comments inside NameID, expired conditions and expired certificates. DTDs are rejected (XXE-safe); signatures are inspected, not cryptographically verified. Returns JSON with: type, samlVersion, binding, decoding, id, issueInstant, issuer, destination. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/saml-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": {
      "saml": "<saml>"
    },
    "name": "saml_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
nowNoUnix time used for validity checks (default: now)
samlYesSAMLResponse / SAMLRequest (base64, deflated base64, URL-encoded), a redirect URL, raw XML or metadata XML
includeXmlNoReturn the decoded, pretty-printed XML

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?

Goes well beyond the readOnly/idempotent/non-destructive annotations by disclosing that DTDs are rejected (XXE-safe), that signatures are inspected but NOT cryptographically verified, the exact security flags raised (unsigned responses, SHA-1, XML Signature Wrapping, multiple assertions, comments in NameID, expired conditions/certificates), and the per-call x402 price plus an HTTPS fallback endpoint. These are precisely the caveats an agent needs before trusting the output.

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 and inputs are front-loaded in the first sentence, with detection flags and safety caveats following in priority order. It is dense but long, and the trailing pricing/HTTPS-endpoint sentence is operational metadata that dilutes the core description, though it is genuinely relevant for an x402-paid tool.

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?

For a read-only inspection tool with no output schema, the description compensates by enumerating both the top-level JSON keys (type, samlVersion, binding, decoding, id, issueInstant, issuer, destination) and the assertion-level detail returned. Nothing an agent needs to call it correctly or interpret the result 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 description coverage is 100%, so all three parameters are already documented. The description restates the accepted saml input forms and explains that conditions are checked against 'now', which ties to the now parameter, but it never mentions includeXml and adds no syntax detail beyond the schema — baseline 3 applies.

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 ('Decode and inspect SAML 2.0 messages') plus the use case ('SSO debugging'), and the accepted input formats make it clearly distinct from the neighbouring jwt_decode and x509_decode tools. An agent can tell exactly what domain this operates in 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?

Gives clear context for when to reach for it (SSO debugging, inspecting SAMLResponse/SAMLRequest or IdP/SP metadata) and enumerates the concrete input shapes an agent will encounter, including the HTTP-Redirect deflated/URL-encoded case. It does not explicitly name an alternative tool or a when-not-to-use condition, which keeps it 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