Skip to main content
Glama

asn1click (Beta)

Validate a message

validate
Read-only

Checks that a message is valid for its type (it is encoded to UPER): returns JSON {valid, bytes (its size in UPER), message, ref, to, data (the same message, unchanged)}; if it is not valid, the error.

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

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
fromYesThe payload's format: UPER, WER, JER or XER
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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description usefully adds the success payload shape ({valid, bytes, message, ref, to, data}) plus the failure behavior (an error). That is real added value, but the meaning of the echoed fields—especially how 'message' differs from 'data (the same message, unchanged)'—remains opaque.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded and free of filler sentences, but it is one sprawling run-on with an inline JSON blob and stray internal whitespace that makes the return contract harder to scan than a short bulleted list would be.

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?

For a six-parameter tool with no output schema, the description does the important extra work of describing the return object and the error case. The remaining gap is clarifying the echoed fields (`ref`, `to`, `message` vs `data`), which is left to inference.

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 six parameters are already documented in detail (formats, compat modes, diagnose behavior). The description adds essentially nothing about parameters beyond restating that the input is UPER-encoded, so baseline 3 applies.

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?

"Checks that a message is valid for its type (it is encoded to UPER)" gives a specific verb and resource with the encoding precondition stated. It does not, however, distinguish itself from siblings like convert 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 Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance in the description. The only routing hint lives inside the ref parameter ('see list_message_versions') and the diagnose flag, neither of which tells the agent why to pick validate over convert or diagnose.

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