Skip to main content
Glama

asn1click (Beta)

Diagnose a UPER payload

diagnose
Read-only

Bit-level breakdown of a UPER payload: for every field, which bits encode it, the raw bits and the decoded value, plus the structural bits (extension markers, OPTIONAL presence bits, CHOICE indexes, length determinants). Use it to debug interoperability: a malformed or truncated payload still returns everything decoded up to the failure, the field being read and the bit where it broke. Returns JSON {message, ref, autoDetected, table}. Optional filter keeps only rows whose path contains it.

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>"
    },
    "name": "diagnose"
  }
}

Input Schema

NameRequiredDescriptionDefault
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
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
filterNoOptional: only rows whose field path contains this text
payloadYesThe UPER payload as hex (spaces, 0x and a 'uper:' prefix are ignored)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: partial results on failure, the offending field path and bit offset, and the shape of the JSON result. It does not discuss performance or output size limits, keeping it just short of a 5.

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 output description is front-loaded and every clause carries information, but the sentence is long and contains odd whitespace padding mid-phrase ('the decoded value'). It is dense rather than padded, though it could be split for faster scanning.

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, yet the description names the returned keys (message, ref, autoDetected, table) and the per-row contents, plus failure-time return values. For a four-parameter, read-only diagnostic tool this covers everything an agent needs to call it and interpret the result.

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 coverage is 100%, so ref, compat, filter and payload are already fully documented in the schema. The description only restates the filter semantics ('keeps only rows whose path contains it'), which duplicates the schema, and adds nothing about ref resolution or compat trade-offs. The 3 baseline is appropriate when the schema carries the parameter burden.

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?

The description names a specific operation on a specific artifact: a bit-level breakdown of a UPER payload, listing exactly what each field row contains (bits, raw bits, decoded value) plus structural bits. That verb-plus-resource specificity clearly separates it from validate, convert, or describe, which an agent can rule out without opening another 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?

'Use it to debug interoperability' gives an explicit usage context, and the truncated/malformed-payload behavior reinforces that this is the debugging entry point. It does not explicitly say when to prefer validate or convert instead, so an exclusion clause is missing, but the intended context is unambiguous.

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