Skip to main content
Glama

asn1click (Beta)

Convert a message

convert
Read-only

Converts a message between formats: UPER, WER (binary, hex) and JER, XER (text); e.g. a UPER payload to JSON. Returns JSON {message, ref, autoDetected (which definition the header chose), to, data}. If it does not decode, the error says where (failurePath, failureBit).

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": {
      "payload": "<payload>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesOutput format: UPER, WER, JER (JSON) or XER (XML)
refNoThe message: its type (CAM, DENM, CPM, MAPEM/MAP, SPATEM/SPAT, IVIM, SREM, SSEM, VAM) = its default version, or a message for a specific version (_Cam_v2, see list_message_versions). Optional: omitted, the payload's V2X header says which
fromYesThe payload's format: UPER, WER, JER or XER
showNoOptional: fields to get back in rich APL (pathAlias or paths), e.g. ["speed", "latitude"]; a container shows everything under it
compatNoOptional: 'asn1c' = encode/decode like asn1c-based stacks (Vanetza), which depart from X.691 in a few constraints (e.g. CPM container list, PathPredicted); 'standard' = X.691 (ObjSys, asn1tools). Default: standard
commentNoOptional: one short line saying what this call is for, in the user's language, e.g. 'Minimal CAM without the low-frequency container'. Shown next to the result; it does not change the operation
payloadYesThe message: UPER/WER as hex, JER (JSON) or XER (XML) as text
diagnoseNoOptional: true = if the payload does not decode, also the bit-level breakdown of what was read (where it failed comes always)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds genuine behavioral context beyond that: it specifies the return envelope ({message, ref, autoDetected, to, data}), explains that the header can select the definition, and states that decode failures report failurePath/failureBit. It stops short of describing pagination-style limits or how large payloads are handled, but for a pure transformation tool this is solid.

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 format matrix are front-loaded, followed by return shape and then failure behavior — a sensible ordering with no filler sentences. It is slightly dense in a single block and contains stray whitespace runs ("to JSON") that hurt readability, but every sentence carries information.

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

Completeness4/5

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

With 8 parameters and no output schema, the description carries the burden of explaining results, and it does so by enumerating the returned keys and the failure fields. The optional show/compat/comment/diagnose behaviors are left entirely to the schema, which is acceptable at 100% coverage, but a note on when autoDetected matters or what data contains would close the remaining gap.

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% and each of the 8 parameters carries its own explanatory text, including the enum-like values for from/to/compat, so the baseline is 3. The description reinforces the format vocabulary and the auto-detection behavior of ref, but adds no syntax or format details (e.g. hex prefixing, JSON shape for JER) that the schema does not already supply.

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 names a concrete verb and resource ("Converts a message between formats") and enumerates the format space (UPER, WER binary/hex; JER, XER text) with a worked example ("a UPER payload to JSON"). That is unambiguous about what the tool does, but it never explicitly separates it from siblings like validate or diagnose, so an agent must infer the boundary.

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: you call it when you need a payload in a different encoding, and the format list makes the relevant cases obvious. There is no explicit when-to-use/when-not guidance and no routing to alternatives such as validate (to check a payload without re-encoding) or diagnose (for bit-level failure analysis), which is a real gap given those siblings exist.

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