Skip to main content
Glama

json_to_asn1_schema

Converts a JSON message (data sample/instance) or a JSON Schema into an ASN.1 schema definition. Use this tool whenever a user asks to generate or convert JSON or JSON Schema into ASN.1.

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": {
      "jsonContent": "<jsonContent>",
      "inputType": "<inputType>"
    },
    "name": "json_to_asn1_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
userIdNoThe user's email address to look up the asn1.io user account. If unknown, pass an empty string.
inputTypeYesSpecifies whether jsonContent is a JSON data message or a JSON Schema. Must be either 'message' (for a JSON data instance/sample) or 'schema' (for a JSON Schema).
jsonContentYesThe JSON content to convert (either a JSON message/data instance or a JSON Schema document).
makeExtensibleNoMake generated ASN.1 objects extensible (adds ASN.1 extension marker '...' to SEQUENCE/CHOICE for 'message', or allows extensibility instead of forcing additionalProperties:false for 'schema'). Defaults to false.
generateDefaultsNoGenerate DEFAULT values for primitive types in the ASN.1 schema (applicable when inputType is 'message'). Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing about the conversion service itself: no mention that a valid asn1.io account is needed (hinted only by the userId parameter), no output/return behavior, and no failure modes for malformed JSON. It states what is produced ('an ASN.1 schema definition') but not how or under what constraints.

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?

Two front-loaded sentences with the core capability stated first and the usage trigger second. There is mild redundancy between the two sentences ('JSON or JSON Schema into ASN.1' appears in both), but nothing is wasted or buried.

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?

With no annotations and no output schema, the agent must rely on the description, which covers the conversion but not the surrounding context—such as the account lookup implied by userId or whether the resulting ASN.1 is returned inline. Adequate to select the tool, incomplete for invoking it confidently.

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 every parameter including inputType, makeExtensible, and generateDefaults is already documented in the schema. The description's parenthetical 'data sample/instance' merely echoes the inputType semantics rather than adding syntax, format, or edge-case guidance beyond it.

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?

States a specific verb ('Converts') and both source and target resources ('JSON message ... or JSON Schema' into 'an ASN.1 schema definition'). This is clearly distinguishable from the compile/validate/decode/encode siblings, which operate on already-existing ASN.1 artifacts.

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?

Explicitly says to use it 'whenever a user asks to generate or convert JSON or JSON Schema into ASN.1', which covers the primary trigger condition. It stops short of saying when NOT to use it (e.g., when the user already has ASN.1 and wants it validated or compiled), leaving that inference to the agent.

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