Skip to main content
Glama

detect_project_stack

Read-onlyIdempotent

Detects your project's client, server, and runtime stack, including monorepos, and returns a plan to guide accurate payment code generation.

Instructions

๐Ÿ” ์‚ฌ์šฉ์ž ํ”„๋กœ์ ํŠธ์˜ ์Šคํƒ์„ ํŒ์ •ํ•ฉ๋‹ˆ๋‹ค. ๊ฒฐ์ œ ์—ฐ๋™ ์š”์ฒญ์„ ๋ฐ›์œผ๋ฉด generate_payment_code๋ณด๋‹ค ๋จผ์ € ํ˜ธ์ถœํ•˜์„ธ์š”.

๋ฌด์—‡์„ ํŒ์ •ํ•˜๋Š”๊ฐ€:

  • ํด๋ผ์ด์–ธํŠธ: web(React/Next/Nuxt/Vue/Svelte/Angular) / android / ios / flutter / react-native

  • ์„œ๋ฒ„: nodejs / python / php / java / go / ruby / dotnet ๊ณผ ํ”„๋ ˆ์ž„์›Œํฌ(RailsยทDjangoยทSpringยทLaravel ๋“ฑ)

  • ์‹คํ–‰ ํ™˜๊ฒฝ: ์ƒ์‹œ ์‹คํ–‰ ์„œ๋ฒ„์ธ์ง€ ์„œ๋ฒ„๋ฆฌ์Šค์ธ์ง€ (๊ตฌ๋… ๋ฐฐ์น˜์˜ scheduler ์ธ์ž๊ฐ€ ๊ฐˆ๋ฆฝ๋‹ˆ๋‹ค)

๐Ÿ“ฆ ๋ชจ๋…ธ๋ ˆํฌ ๋Œ€์‘ โ€” ํ•œ ์ €์žฅ์†Œ์— ์›น + Flutter + ์„œ๋ฒ„๊ฐ€ ์„ž์—ฌ ์žˆ์–ด๋„ ์•ฑ๋งˆ๋‹ค ๋”ฐ๋กœ ํŒ์ •ํ•˜๊ณ , "์„œ๋ฒ„ ์ฝ”๋“œ๋Š” 1ํšŒ, ํด๋ผ์ด์–ธํŠธ ์ฝ”๋“œ๋Š” ์•ฑ๋งˆ๋‹ค 1ํšŒ" ํ˜•ํƒœ์˜ ํ˜ธ์ถœ ๊ณ„ํš(plan)์„ ๋Œ๋ ค์ค๋‹ˆ๋‹ค. plan์„ ๊ทธ๋Œ€๋กœ ๋”ฐ๋ผ generate_payment_code๋ฅผ ํ˜ธ์ถœํ•˜์„ธ์š”.

์ž…๋ ฅ ๋ฐฉ๋ฒ• (๋‘˜ ์ค‘ ํ•˜๋‚˜):

  1. root_path โ€” ๋กœ์ปฌ(stdio) ์„ธ์…˜์ด๋ฉด ๊ฒฝ๋กœ๋งŒ ์ฃผ๋ฉด ์„œ๋ฒ„๊ฐ€ ์ง์ ‘ ํ›‘์Šต๋‹ˆ๋‹ค. ๊ฐ€์žฅ ๊ฐ„๋‹จํ•ฉ๋‹ˆ๋‹ค.

  2. files + file_contents โ€” ์›๊ฒฉ(HTTP) ์„ธ์…˜์ด๊ฑฐ๋‚˜ ๊ฒฝ๋กœ ์ ‘๊ทผ์ด ์•ˆ ๋  ๋•Œ. files: git ls-files ๋˜๋Š” ls -R ๊ฒฐ๊ณผ (node_modules ์ œ์™ธ) file_contents: package.json / pubspec.yaml / requirements.txt / composer.json / go.mod / Gemfile / pom.xml ๋‚ด์šฉ โ†’ file_contents๋ฅผ ์ฃผ์ง€ ์•Š์œผ๋ฉด ํ”„๋ ˆ์ž„์›Œํฌยท์„œ๋ฒ„ ์–ธ์–ด ํŒ์ •์ด low confidence๋กœ ๋–จ์–ด์ง‘๋‹ˆ๋‹ค.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "detect_project_stack"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNo์ €์žฅ์†Œ ํŒŒ์ผ ๊ฒฝ๋กœ ๋ชฉ๋ก(์ƒ๋Œ€๊ฒฝ๋กœ). git ls-files ๊ฒฐ๊ณผ ๊ถŒ์žฅ. node_modules ๋“ฑ์€ ์„œ๋ฒ„๊ฐ€ ์•Œ์•„์„œ ์ œ์™ธํ•ฉ๋‹ˆ๋‹ค.
root_pathNo์ €์žฅ์†Œ ๋ฃจํŠธ ์ ˆ๋Œ€๊ฒฝ๋กœ. ๋กœ์ปฌ(stdio) ์„ธ์…˜์—์„œ๋งŒ ๋™์ž‘ํ•˜๋ฉฐ, ์ฃผ๋ฉด files/file_contents๋ฅผ ์ƒ๋žตํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
file_contentsNo๋งค๋‹ˆํŽ˜์ŠคํŠธ ํŒŒ์ผ ๋‚ด์šฉ. ํ‚ค๋Š” files์™€ ๊ฐ™์€ ์ƒ๋Œ€๊ฒฝ๋กœ. package.json/pubspec.yaml/requirements.txt/composer.json/go.mod/Gemfile/pom.xml/build.gradle ์„ ๋„ฃ์œผ๋ฉด ํŒ์ •์ด ์ •ํ™•ํ•ด์ง‘๋‹ˆ๋‹ค.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.15.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world, non-destructive, so the safety profile is done. Beyond that, the description discloses non-obvious behavior: it returns a call plan ('server code once, client code once per app'), and detection confidence degrades to low if file_contents is omittedโ€”real predictive information about output quality. It stops short of describing failure modes (e.g., what happens with an unreadable root_path or an empty file list).

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 correctly: purpose, then the critical routing instruction, then the breakdown, then input modes. However, it is long and uses emoji, bold markers, and bullet scaffolding that add visual weight without information; the monorepo paragraph and the input-mode section repeat context that could be tightened.

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?

There is no output schema, and the description compensates by explaining the shape of the return value (a per-app plan plus confidence). For a three-parameter, zero-required, read-only analysis tool, an agent has everything needed to choose the input mode and act on the result.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description earns above baseline by adding operational meaning the schema does not: root_path works only in local stdio sessions and lets you omit the other inputs, files should come from git ls-files/ls -R excluding node_modules, and omitting file_contents specifically degrades framework/language confidence. That is selection guidance, not restatement.

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 pair (ํŒ์ • = detect/classify the user's project stack) and enumerates exactly what is classified: client platform, server language/framework, and execution environment (always-on vs serverless). It also explains monorepo handling, so an agent knows the output is per-app rather than a single flat verdict. No sibling tool overlaps this scope.

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 routes the agent: on a payment-integration request, call this before generate_payment_code, and follow the returned plan when calling generate_payment_code. It also gives selection criteria between input modes (root_path for local stdio sessions, files/file_contents for remote HTTP or when path access is unavailable), which is exactly the when-to-use guidance the dimension asks for.

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