Skip to main content
Glama

util_asn1_decode

Read-only

ASN.1 DER decoder — Offline ASN.1 DER decoder (X.690). data= DER bytes as hex, base64/base64url or a PEM block (certificate, CSR, public key, PKCS#7, etc). Returns the full element tree (type, offset, length, INTEGERs as numbers or hex+decimal, OIDs with names for ~90 common algorithms/attributes/extensions, strings, UTC/Generalized times as ISO-8601, BIT/OCTET STRINGs with encapsulated DER parsed), a detected structure (X.509 certificate, PKCS#10 CSR, SubjectPublicKeyInfo, PKCS#8/PKCS#1/SEC1 private key, ContentInfo...) and the list of OIDs found. Private-key bytes are redacted with a warning. Invalid or truncated DER returns 422 with the byte offset. Price: $0.002 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": {
      "data": "<data>"
    },
    "name": "util_asn1_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes3059301306072a8648ce3d020106082a8648ce3d0301070342000483b38d917215174778735b521b8135b1957f14fc427582c1f14e1c02938662c1822cd3c7b0cb2d7a559afcd1f8d55023e693068b4ac671da2b1c2db84c27b8d7

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only cover read-only/non-destructive semantics and open-world access; the description adds substantially more: private-key bytes are redacted with a warning, invalid or truncated DER returns 422 with the byte offset, and the call costs $0.002 USDC via x402. Those are material behaviors (security handling, error contract, paid invocation) an agent cannot learn from 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?

Front-loaded with the verb and resource, then a dense but well-ordered run through input formats, return contents, error behavior, and price. It is a single long paragraph with heavy parenthetical enumeration, which is information-dense but slightly harder to scan than a bulleted structure 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 must describe return values, and it does thoroughly: element tree fields, OID name resolution, time and string formatting, encapsulated DER handling, detected structure, and OID list. Only one input parameter exists and it is fully covered, so nothing an agent needs to call this correctly is missing.

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?

Schema coverage is 100% and there is a single required parameter, but the schema only shows a bare example hex string. The description adds real meaning by naming the accepted encodings ('hex, base64/base64url or a PEM block') and the kinds of PEM blocks accepted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('ASN.1 DER decoder', X.690) and enumerates exactly what input forms and structures it handles, which clearly separates it from generic decoders. It does not name any sibling (e.g. security_cert_decode or security_csr_decode), so the differentiation is achieved by scope description rather than explicit contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied rather than stated: the agent can infer 'use this for offline ASN.1 DER buffers' from the format list, and the mention of certificate/CSR/public-key structures hints at overlap with dedicated sibling tools. There is no explicit when-to-use/when-not or named alternative, so the guidance requires inference.

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