Skip to main content
Glama

Read a cmo-lua project

cmo_read_project
Read-onlyIdempotent

Loads a project's cmo-project.json and event Lua sources to inspect scenario scripts after extraction or when a project folder already exists.

Instructions

Read cmo-project.json and the Lua source of each event. Use this after cmo_extract_project or when the user already has a project folder.

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_read_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryYesProject folder containing cmo-project.json

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/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 closed-world scope, so safety is covered. The description adds useful substance by saying the result spans the manifest plus the Lua source of every event, implying potentially large output, but it says nothing about size, truncation, or failure when the manifest is missing.

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. The payload description comes first and the usage routing second, which is the right front-loading for an agent scanning tool options.

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 tool with full annotation coverage and no output schema, this is nearly complete: it states what files are read and what must precede it. The only gaps are failure behavior and output volume, which are minor for a simple file reader.

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 coverage is 100% and the single 'directory' parameter is already documented as 'Project folder containing cmo-project.json'. The description's phrase 'project folder' merely echoes the schema, adding no format, path-style, or validation detail beyond it; 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: it reads 'cmo-project.json and the Lua source of each event', which tells an agent exactly what data comes back. It is clearly distinct from a write or validate tool, though it does not explain how it differs from the sibling cmo_read_scenario, which reads a related artifact.

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?

It gives explicit triggering conditions: use it 'after cmo_extract_project' or 'when the user already has a project folder', which names the predecessor tool and the precondition. It stops short of stating when not to use it or which sibling to prefer for narrower reads.

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