Skip to main content
Glama
ecp-mcp-server

ecp-mcp-server

by EpicLabs23

ecp_apps_detect

Inspect an app directory to detect app root, tech stack, web root, database needs, runtime, and suggested install/build/start commands before creating or deploying an app.

Instructions

Inspect an app directory and detect its app root, tech stack (deploy_type + framework_hint), web root, whether it needs a database, its runtime (asdf_key + version, or runtime_constraints when there's no exact pin - feed those to ecp_asdf_recommend), and suggested install/build/start commands. Read-only: it runs no commands and changes nothing, so it's safe to call before creating or deploying an app. app_dir is a folder name under ~/apps or an absolute path inside it. If root_ambiguous is true, pick one of root_candidates and call this again with it.

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": {
      "app_dir": "<app_dir>"
    },
    "name": "ecp_apps_detect"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_dirYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it declares read-only behavior ('runs no commands and changes nothing'), and describes the ambiguous-root recovery path (root_ambiguous → pick a root_candidate → call again). These are exactly the behavioral traits an agent needs before invoking it.

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 detection outcome, then safety, then parameter rules, then the ambiguity recovery — every clause carries information. It is a single dense paragraph, so a slight structural hit for readability, but no sentence is wasted.

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?

No output schema exists, so the description must convey return content, and it enumerates every field class including the runtime_constraints fallback. Combined with the safety statement and the ambiguity handling, an agent has everything needed to call and interpret this tool.

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?

Schema coverage is 0%, so the description must explain the single parameter, and it does precisely: app_dir is a folder name under ~/apps or an absolute path inside it. Without this an agent could not form a valid path.

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 (inspect) and resource (app directory) and enumerates exactly what is detected: app root, tech stack via deploy_type + framework_hint, web root, database need, runtime, and install/build/start commands. This is far more specific than any sibling's territory and cannot be confused with ecp_apps_get or ecp_apps_directory_tree.

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 a clear usage context ('safe to call before creating or deploying an app') and an explicit follow-up route ('feed those to ecp_asdf_recommend'). It does not name a tool it should be avoided in favor of, so it stops short of full exclusion guidance, but the when-to-use signal is strong.

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

Deploy Server

Other Tools