Skip to main content
Glama

workflow_detect

Determine a project's product-delivery state and receive the immediate next step to proceed, covering setup, workflow initiation, status checks, and legacy migration.

Instructions

Detect the product-delivery state of a project.

Call this FIRST when entering a project. Returns the current state and what action to take next:

  • "not_setup": No product-delivery config. Call workflow_setup to add it.

  • "setup_no_workflow": Config exists but no workflow started. Call workflow_init.

  • "active_workflow": Workflow in progress. Call workflow_status to see where it is.

  • "legacy_migration": Has BUILD_PLAN.md or ROADMAP.md from old skills. Call workflow_init(from_migration=True).

Args: project_dir: Project directory to check. Defaults to working directory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_dirNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden. It discloses that the tool returns the current state plus the action to take next, enumerates all four possible states with their conditions, and identifies legacy migration triggers. This is rich, accurate behavioral disclosure.

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?

The description is front-loaded with the critical usage instruction and uses a structured, scannable list for states. Every sentence earns its place; there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with one optional parameter and an existing output schema, the description supplies invocation timing, parameter semantics, state enumeration, and follow-up actions. Nothing needed to call the tool correctly is missing.

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

Parameters5/5

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

The single parameter, project_dir, has 0% schema description coverage, but the description fully compensates: 'Project directory to check. Defaults to working directory.' This adds meaning beyond the raw schema.

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 and resource: 'Detect the product-delivery state of a project.' It clearly differentiates itself from siblings by marking itself as the entry point to call FIRST and by routing to tools like workflow_setup, workflow_init, and workflow_status based on detected state.

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

Usage Guidelines5/5

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

Explicitly tells the agent when to use it ('Call this FIRST when entering a project') and maps each possible return state to the appropriate alternative tool. This leaves no ambiguity about when to invoke this tool instead of a sibling.

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