Skip to main content
Glama

Validate a cmo-lua project

cmo_validate_project
Read-onlyIdempotent

Validates cmo-project.json and its Lua files, reporting missing files, invalid probabilities, and Command function names outside the official catalog.

Instructions

Check cmo-project.json and its Lua files. Reports missing files, bad probabilities, and Command function names that are not in the official catalog.

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": {
      "directory": "<directory>"
    },
    "name": "cmo_validate_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryYesProject folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is covered. The description adds real value by naming the specific validation categories performed, but says nothing about whether validation halts at the first error, how diagnostics are shaped, or whether the Lua files are parsed/executed.

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?

Two short sentences, zero filler, with the target artifacts front-loaded before the enumerated checks. Every clause carries information.

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 read-only validator with no output schema, the description gives an adequate sketch of what the report contains (missing files, bad probabilities, non-catalog Command names). Only the shape of that report and the failure mode (exception vs. diagnostic list) remain unstated, a minor gap for a tool this simple.

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?

There is a single required parameter with 100% schema description coverage ('Project folder'), so the schema already carries its meaning. The description adds nothing about path format (absolute vs relative, project root vs cwd), which is the one detail an agent might still need.

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?

States a specific verb ('Check') and resource ('cmo-project.json and its Lua files') and enumerates the three defect classes it detects, which clearly separates it from siblings like cmo_read_project, cmo_extract_project, and cmo_compile_loader. It stops short of naming an alternative, so it is clear but not maximally differentiated.

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 only implied: an agent can infer this is a pre-flight/pre-compile check, but the description never says when to run it versus reading or compiling the project, nor whether it should be run first. No explicit exclusions or prerequisites are given.

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