Skip to main content
Glama

asn1click (Beta)

Generate a message

generate
Read-only

Creates a message: create = minimal (only mandatory fields), random (typical) or full (every field), then the APL commands set what the request asks (use describe's pathAlias and recipes). Returns JSON: {message, ref, autoDetected, to, data (the message in to), apl (rich APL of what the commands touched or show asked)}. The result is valid: no validate needed.

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": {
      "ref": "<ref>",
      "create": "<create>",
      "to": "<to>"
    },
    "name": "generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesOutput format: UPER, WER, JER (JSON) or XER (XML)
aplNoOptional. APL commands, one per item, applied in order: "<field>=<value>" (a pathAlias from describe, e.g. "speed=50 km/h", or an exact path, e.g. "cam.camParameters.basicContainer.stationType=passengerCar"), "<field> REMOVE". Physical values with their unit (latitude=41.3874 degree; a number without unit is the encoded integer); named values and bits by name (stationType=passengerCar, exteriorLights={lowBeamHeadlightsOn}). A path creates what it needs (optional parts, list items [n], the CHOICE alternative). Errors name every failing line at once, with the valid fields, values or units
refYesThe 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)
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
createYesminimal (the usual base for apl), random or full
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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, and the description is consistent with a non-destructive, in-memory generation. It adds genuinely useful behavior — the returned JSON shape, the autoDetected field, and the guarantee that output is already valid — but says nothing about size limits, cost, or whether generated messages are persisted or sendable.

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?

Three dense sentences with no filler; the create-mode explanation and return shape are front-loaded, and the closing 'no validate needed' is a high-value signal. Minor deductions for the run-on structure and stray internal whitespace in the first sentence.

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 no output schema, the description correctly carries the burden of describing the return payload (message, ref, autoDetected, to, data, apl), which is exactly what an agent needs. All seven parameters are documented in the schema, and the describe pointer covers the main pre-call dependency, leaving only edge cases such as failure behavior unaddressed.

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 the schema already documents ref, to, apl, show, compat, create, and comment in depth. The description adds only modest meaning beyond that: it restates the create modes and frames apl as the mechanism that 'sets what the request asks' via describe's pathAlias, without new syntax or unit details.

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 concrete verb and resource ('Creates a message') and immediately defines the three creation modes plus the role of APL commands in shaping the output. It also links to the sibling 'describe' for pathAlias/recipes, which helps separate it from the schema-inspection tools, though it never names 'validate' or 'convert' as the explicit alternatives.

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?

It gives actionable context: use describe's pathAlias and recipes to build APL, and explicitly states the result is valid so a separate validate call is unnecessary. It stops short of stating when a caller should prefer convert, modify, or read instead, so the exclusion set is only partly covered.

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