Skip to main content
Glama

Validate workspace config

validate_workspace_config
Read-onlyIdempotent

Validates full workspace.toml text with live-reload parsing and semantic checks, returning errors or restart-required startup settings without writing files.

Instructions

Run the same parsing and semantic validation as a live reload on a full workspace.toml text. Writes nothing. Returns ok, or the list of errors; restartRequired lists startup-only settings the change touches.

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": {
      "toml": "<toml>"
    },
    "name": "validate_workspace_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
tomlYesFull workspace.toml text

Output Schema

NameRequiredDescriptionDefault
okYes
countsNo
errorsNo
restartRequiredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description adds genuine behavioral context beyond that by stating that validation mirrors live reload semantics exactly. It also explains the meaning of the returned 'errors' list and of restartRequired (startup-only settings the change touches), which is real interpretive value even though an output schema exists.

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 carrying distinct information: what validation runs, that nothing is written, and what comes back. The key constraint ('Writes nothing') and return summary are front-loaded with no filler.

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 one-parameter, read-only validator with an output schema and full annotation coverage, the description supplies what the structured fields cannot: the parity-with-live-reload contract and the semantics of restartRequired. The only gap is the absence of an explicit statement about when to prefer this over a real reload or a proposal.

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?

With a single parameter at 100% schema description coverage, the schema already documents 'toml' as the full workspace.toml text. The description's 'full workspace.toml text' merely echoes that, adding no format, size, or partial-file guidance, so the baseline 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 names a specific verb and resource ('parsing and semantic validation') applied to a specific input ('a full workspace.toml text'), and the 'same as a live reload' framing pins down exactly which validation rules apply. 'Writes nothing' implicitly separates it from the write/propose siblings, though no alternative tool is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: a read-only dry-run check is the natural pre-flight step before propose_workspace_change, and the readOnly/ non-destructive annotations reinforce that reading. There is no explicit 'use this before X' or 'do not use this to apply changes' instruction, so the agent must infer the routing.

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