Skip to main content
Glama

Validate a model

validate
Read-onlyIdempotent

Check SysML v2 text (or KerML, with language "kerml") against the MBEstudio profile: syntax, name resolution, typing, units, and evaluation errors. Call it after every change. Output: { valid, errors, roots, diagnostics: [{ severity, code, message, line, column, hint }] }.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe complete SysML v2 model text. The server keeps no state: pass the whole current text on every call, and after an edit use the text the edit returned.
languageNoThe notation of the text: "sysml" (default) or "kerml" for a KerML document (.kerml).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds behavior beyond that: the full output shape ({ valid, errors, roots, diagnostics } with per-diagnostic severity/code/message/line/column/hint), which matters because there is no output schema. It omits whether diagnostics are truncated or anything about cost on 2 MB inputs.

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 sentences, zero filler: purpose and check list first, the workflow trigger second, the return contract third. Everything is front-loaded and nothing is redundant.

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, spelling out the return shape is the right call, and the check list tells an agent what a failure means. Minor gaps remain (what 'roots' contains, whether diagnostics are capped in count), but nothing an agent needs to invoke it correctly is missing.

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 both parameters (text, language) are already fully documented, including the default and the stateless full-text requirement. The description only echoes the 'kerml' option and adds no format, size, or encoding detail beyond the schema; the baseline of 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?

The description gives a specific verb ('Check') plus the resource ('SysML v2 text, or KerML with language "kerml"') and enumerates exactly what is checked: syntax, name resolution, typing, units, and evaluation errors. That distinguishes it from siblings like edit or evaluate by scope, though it never names an alternative tool explicitly.

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?

'Call it after every change' gives a concrete trigger for when to use the tool, which is strong guidance for a validation step in an edit loop. It stops short of stating when not to use it (e.g. how it differs from the sibling 'evaluate'), so it falls short of a 5.

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