Skip to main content
Glama

Validate (parse + resolve + lint)

validate
Read-onlyIdempotent

Check an ArchLang plan in one pass (parse, resolve, lint) and get the first fix to make. Add strict, graph, intent, or profile checks to gate a plan before it ships.

Instructions

Check a plan in one pass without returning a drawing (parse, resolve and lint): the gate a plan passes before it ships. strict:true makes advisory warnings fail too. Optional graph checks the plan's interior-door adjacency against an intended room graph ({ room: [neighbours] }); a mismatch fails. Optional intent (a brief's expectations, shaped as the archlang://intent-schema resource describes) is checked against the plan: a missed gating assertion (room count, existence, area, total area, windows) fails, while adjacency and reachability are advisory and only score. profile lints under a named ruleset as well, and its warnings are the ones reported; taste scores the plan under a taste profile, which never fails it. next is the one item to fix first, chosen in a fixed order (an error, a compile warning, a validity warning, a drafting warning, the brief and the graph, a profile-only warning, then the lowest taste score), or null when nothing is left; a broken soft keep is not weighed here yet, so where the CLI's validate names it this returns a later item, or null. A malformed intent returns { ok:false, intentErrors } and an unknown profile { ok:false, error } as data, never an exception. Returns { ok, diagnostics, graph?, intent?, next }.

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

Input Schema

NameRequiredDescriptionDefault
graphNoIntended interior-door adjacency: { room: [neighbour rooms] }.
tasteNoTaste profile that ranks `next`'s taste tier (for example "generic"); it never fails the plan.
intentNoA brief's intent JSON (shape: the archlang://intent-schema resource); gating assertions fail.
sourceYesArchLang source.
strictNoAdvisory warnings fail too.
profileNoAdvisory lint ruleset to report under ("residential-basic", "accessibility-advisory", …); default: the built-in ruleset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.60.0
    • addedInput schema / properties / profile
      Added value: +{
      +  "description": "Advisory lint ruleset to report under (\"residential-basic\", \"accessibility-advisory\", …); default: the built-in ruleset.",
      +  "type": "string"
      +}
    • addedInput schema / properties / taste
      Added value: +{
      +  "description": "Taste profile that ranks `next`'s taste tier (for example \"generic\"); it never fails the plan.",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover the read-only, idempotent, non-destructive profile, and the description still adds real behavioral substance: which checks fail versus only score, that malformed intent and unknown profile return `{ok:false, ...}` as data rather than throwing, and that a broken `soft` keep is not yet weighed so results can diverge from the CLI.

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?

Purpose and the failure gate are front-loaded before parameter detail, and most sentences carry distinct information. It is dense with nested parentheses and the `next`-ordering sentence is a long run-on, and the `soft` keep caveat is a niche detail that adds bulk for a narrow case.

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 nested objects and no output schema, the description supplies the return shape `{ ok, diagnostics, graph?, intent?, next }` and defines `next`'s selection order and null case. The gap is that the main payload, `diagnostics`, is never characterized (severity, structure, or volume).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description earns more by explaining consequence rather than shape: graph mismatch fails, intent gating assertions (room count, existence, area, total area, windows) fail while adjacency and reachability are advisory, profile warnings are the ones reported, and taste never fails the plan.

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?

Opens with a specific verb and resource plus a scope constraint: 'Check a plan in one pass without returning a drawing (parse, resolve and lint)', and the title reinforces the three phases. The 'without returning a drawing' clause implicitly separates it from a compile tool, and 'the gate a plan passes before it ships' pins its role.

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?

Each optional parameter is given a use condition and effect: `strict:true` makes advisory warnings fail, `graph` checks adjacency against an intended room graph, `profile` lints under a named ruleset, `taste` only scores. It never states an explicit 'use lint/score/compile instead when X', so the routing to siblings is implied rather than spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.