Skip to main content
Glama

decode_asn1_data

Decodes hex or base64 encoded ASN.1 binary data into a decoded ASN.1 value string according to the provided schema definition, ASN.1 type name, and encoding rule (DER by default).

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": {
      "schemaContent": "<schemaContent>",
      "typeName": "<typeName>",
      "data": "<data>"
    },
    "name": "decode_asn1_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesHex or base64 encoded binary data string to be decoded.
codecNoThe ASN.1 encoding rule used to encode the data. Valid options include 'DER', 'BER', 'PER', 'UPER' or 'CUPER', 'OER' or 'COER', 'JER', 'XML or 'XER' or 'EXER'. Defaults to 'DER'.DER
userIdNoThe user's email address to look up the asn1.io user account. If unknown, pass an empty string.
fileNameNoThe name of the schema file. This should end in '.asn' (e.g., 'Rocket.asn'). If not provided, defaults to 'schema.asn'.schema.asn
typeNameYesThe ASN.1 type name (PDU) to decode into (e.g., 'Rocket').
dataFormatNoFormat of the input encoded data string: 'hex' or 'base64'. Defaults to 'hex'.hex
schemaContentYesPlain-text ASN.1 schema definition. This must be valid ASN.1 syntax, typically starting with the 'DEFINITIONS' keyword and concluding with 'END'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It usefully discloses the output type (a decoded value string, important since there is no output schema) and the DER default, but says nothing about failure modes on schema/type mismatch, invalid input encoding, authentication expectations, or whether decoding is side-effect free.

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?

A single front-loaded sentence with no filler, and the operation and output are stated first. It is densely packed, which slightly hurts scannability, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, annotation-free tool with no output schema, the description should ideally cover error behavior and prerequisites. It covers the purpose and the shape of the result adequately, but leaves behavioral gaps that the absent annotations cannot fill.

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 seven parameters are already documented, including codec options, dataFormat, fileName, and userId. The description adds a light touch by tying the operation to schema definition, type name, and encoding rule with DER as default, but contributes no syntax or format detail beyond the schema.

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?

States a concrete verb (decodes) plus the resource (hex/base64 encoded ASN.1 binary data) and the result (a decoded ASN.1 value string), and names the three inputs that shape the operation. It implicitly distinguishes itself from the encode/compile/validate siblings by framing the operation as the inverse of encoding, but never names them explicitly.

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 only implied: you bring encoded data plus a schema and get a decoded value. There is no explicit when-to-use vs. encode_asn1_data/validate_asn1_schema guidance, no prerequisite (e.g., that the schema must be valid or compiled), and no exclusions.

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