Skip to main content
Glama

cs_preflight

Validates a structured app spec, flags errors and warnings, and infers security tier and permissions before planning.

Instructions

Step 3 of the create workflow. Validates a structured app spec and infers security tier + permissions. Call after drafting spec, before cs_plan. Read cs://spec-schema before calling. Input: { spec: object } Output: { valid, errors, warnings, security_tier, inferred_permissions, needs_app_config }

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": {
      "spec": "<spec>"
    },
    "name": "cs_preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesStructured app specification object

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It usefully reveals the response shape (valid, errors, warnings, security_tier, inferred_permissions, needs_app_config), which signals this is an analysis step producing diagnostics rather than a mutation. It never explicitly states that nothing is created or persisted, nor mentions auth or rate constraints, leaving the agent to infer safety from 'validates'.

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?

Front-loaded with the workflow position, then behavior, then invocation conditions — an agent can scan it in one pass. The 'Input: { spec: object }' line largely duplicates the schema, but it is short and the compact Output line earns its space given there is no output schema.

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 validator with a nested spec object and no output schema, the definition covers purpose, prerequisites, sequencing, and the returned fields — enough to call it correctly. The remaining gap is the absence of any safety/permission statement, which matters only mildly for a validation step.

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?

Only one parameter, and schema description coverage is 100%, so the schema already documents 'Structured app specification object'. The description repeats this with no field-level detail, but the pointer to cs://spec-schema is genuinely useful guidance on where the required object shape is defined, lifting it slightly above the baseline.

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?

States a specific verb (validates) and resource (structured app spec), plus the secondary behavior of inferring security tier and permissions. Placing it as 'Step 3 of the create workflow' and naming cs_plan as the follow-up lets an agent place it among siblings like cs_plan, cs_analyze, and cs_verify without opening any schema.

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?

Gives explicit sequencing ('Call after drafting spec, before cs_plan') and a prerequisite ('Read cs://spec-schema before calling'), which is strong context for invocation. It stops short of stating when NOT to use it — e.g., for specs already validated or for existing apps that belong to cs_verify — so it is clear but not fully exclusive.

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