Skip to main content
Glama

security_saml_decode

Read-only

SAML decoder + security audit — Decode and audit a SAML 2.0 message offline. saml= takes a SAMLResponse or SAMLRequest exactly as captured (HTTP-POST base64, HTTP-Redirect base64 + raw DEFLATE, URL-encoded or not) or raw XML, including IdP/SP metadata (EntityDescriptor). Returns type, binding, issuer, destination, status, NameID, subject confirmation, conditions/audience, authn context, attributes, signature algorithms and certificate SHA-256/SHA-1 fingerprints, plus issues: unsigned assertions, signature-wrapping patterns (reference not pointing at the signed ID, multiple or nested assertions), comments inside NameID (CVE-2017-11427 class), DOCTYPE/XXE, SHA-1 signatures, expired or missing conditions, missing audience/recipient, plain-HTTP endpoints, expired metadata. Verdict OK / REVIEW / REJECT. Structural checks only: signatures are not cryptographically verified. Nothing is stored. 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": {
      "saml": "<saml>"
    },
    "name": "security_saml_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
samlYesfVBNa8MwDP0rxvfmw4MdRBII7aXQXdpth12G5glqiGXPskd//pKMsRbGQBfp6b2np07QTxHGks98pI9CktXFTyywAr0uiSGgOAFGTwLZwml8OICpGogp5GDDpNV+1+tXbN+MvdPqmZK4wL2ed2ZIpNCeJSPnedSY+03bbox5bBtolnrRajfbOsa8ss45R4G6du+xogv6OFFlg69FglajCKVlbxtYiqd0ovTpLD0dD79MuSWiFT10Sx5Yj0lXCf8PiD9uevhbu6uvZIfv7vabwxc=

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnlyHint/destructiveHint/openWorldHint annotations, the description discloses that nothing is stored, that signatures are NOT cryptographically verified (structural checks only), that a verdict of OK/REVIEW/REJECT is produced, and that the call costs $0.005 USDC via x402. These are material behavioral facts an agent could not infer from structured fields, and they do not conflict with any annotation.

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 purpose and input formats are front-loaded, and the sentence-level content is dense but purposeful. The long enumeration of returned fields and issue classes is information-rich but borders on a data dump that could be tightened without losing guidance value.

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 fully compensates by listing return components (type, binding, issuer, destination, NameID, conditions, attributes, signature algorithms, certificate fingerprints, verdict) and the audit issue classes it detects. Payment, statelessness and the no-crypto-verification limitation are all covered, leaving nothing essential for a correct invocation unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single 'saml' parameter has schema coverage, but its schema 'description' is only a base64 sample, so the description carries real weight by explaining accepted encodings (POST base64, Redirect base64 + raw DEFLATE, URL-encoded or not) and raw XML/metadata input. That adds genuine meaning beyond the schema, though the expected string shape versus file input could be stated more explicitly.

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 audit a SAML 2.0 message offline') and scopes it to SAML 2.0, which cleanly separates it from sibling decoders such as security_jwt_decode, security_cert_decode and security_csr_decode. An agent can identify the tool's function 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?

The description clearly defines what inputs are accepted (HTTP-POST base64, HTTP-Redirect base64 + raw DEFLATE, URL-encoded or not, raw XML, metadata) and frames the operation as offline and structural, which tells the agent when the tool is appropriate. It stops short of explicitly naming an alternative sibling or stating a when-not-use case apart from the 'signatures are not cryptographically verified' caveat.

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