Skip to main content
Glama

validate_asn1_schema

Validates ASN.1 schema definitions syntax and semantics. Use this tool whenever a user asks to validate, check, or verify an ASN.1 schema without generating source code. The tool returns a list of messages (informational, warnings, and errors).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_asn1_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNameNoThe name of the schema file being validated. This should end in '.asn' (e.g., 'Rocket.asn'). If not provided, defaults to 'schema.asn'. It is used for errors to reference a specific location in the schema.schema.asn
schemaContentNoPlain-text ASN.1 schema definition. This must be valid ASN.1 syntax, typically starting with the 'DEFINITIONS' keyword and concluding with 'END'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the return behavior: a list of messages classified as informational, warnings, and errors. 'Validates' also implies a non-mutating operation. It stops short of stating that nothing is written to disk or how invalid input versus schema errors are surfaced, which keeps it from 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.

Conciseness5/5

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

Three short sentences, each doing distinct work: what it does, when to invoke it, and what comes back. The purpose is front-loaded and there is no redundant restatement of the name or title.

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 usefully compensates by naming the return value as a message list with severity levels. Both parameters are covered by the schema. The only gap is that the tool's failure mode and any size or performance limits on schemaContent go unmentioned.

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 both parameters are fully documented in the schema including the .asn naming convention and the DEFINITIONS/END requirement. The description adds no parameter-level detail beyond that, so the baseline of 3 applies.

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+resource ('Validates ASN.1 schema definitions') and adds the scope qualifier 'syntax and semantics'. The phrase 'without generating source code' implicitly separates it from the sibling compile_asn1_schema, so an agent can route between the two without opening either 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?

Gives explicit trigger language: 'whenever a user asks to validate, check, or verify an ASN.1 schema', plus the negative condition 'without generating source code'. It does not name compile_asn1_schema directly as the alternative, so the routing is inferred rather than spelled out, but the condition that selects the sibling is clear.

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