Skip to main content
Glama
vibecode-checker
by Lex6won

scan_path

Scans a local file or folder against public-institution security criteria and checks dependencies for known vulnerabilities without sending source code to external APIs.

Instructions

파일 또는 폴더를 공공기관 보안 기준으로 점검(보안·검토·체크·검사)합니다.

사용자가 "이 폴더/프로젝트 보안 점검해줘", "이 파일 검토/체크해줘", "안전한지 검사해줘"처럼 로컬 경로를 가리키면 이 도구를 사용하세요. 메모리의 코드 조각이면 대신 scan_code 를 씁니다. "기존 코드베이스 감사" 흐름의 진입점입니다.

경로를 로컬에서 순회하며 빌드·vendor 디렉터리를 건너뛰고 바이너리는 무시하며, 소스 코드를 외부 API로 전혀 보내지 않습니다. 패키지(의존성) 검사도 기본으로 함께 수행합니다 — requirements*.txt·pyproject.toml·package.json·락파일을 찾아 로컬 위협정보 캐시(OSV·CISA KEV 등)와 대조하고 결과를 dependency_audit 에, 검사 모드·위협정보 상태를 dependency_check 에 넣습니다. 위협정보가 없으면 게이트는 '판정 불가', 오래됐으면 '조건부'가 됩니다('안전' 아님). 각 발견 사항에는 why_it_matters 와 safe_fix 가 포함됩니다. 검사 후 render_report 로 한국어 보고서를 만드세요.

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": {
      "path": "<path>"
    },
    "name": "scan_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
depsNo패키지(의존성) 검사 모드. local=로컬 위협정보 캐시로 취약·악성 대조, 네트워크 없음 / online=OSV.dev·공식 저장소까지 조회(패키지명·버전만 전송) / off=생략(생략 사실이 결과에 남음). **사용자가 요청하지 않았으면 비워 두세요** — 기관 기본값(GVSKB_DEPS_MODE, 없으면 local)이 적용됩니다
pathYes검사할 로컬 파일 또는 폴더의 절대·상대 경로. 원격 URL 불가(먼저 clone)
callerNo호출 주체 자율 신고 (예: 'harness:auto'). 감사 구분용
profileNo정책 프로파일 ID. 값: public-default-strict(기본·엄격) | civil-complaint-chatbot | internal-db-query | web-civil-servicepublic-default-strict
scenarioNo용도 힌트 — 해당 시나리오 룰을 우선 적용. 값: web-app | data-pipeline | llm-integration | agent
env_gradeNo실행환경 등급 — 신규 버전 쿨다운 기준일만 정합니다(취약점·악성 판정에는 영향 없음): E0(개인PC 일회성, 3일) | E1(개인PC 반복도구, 7일, 기본) | E2(내부서버 공용, 14일). **사용자가 배포 환경을 명시하지 않으면 비워 두세요** — 도구가 자동 판별하지 않으며, 넘긴 값이 보고서에 '검사 실행 시 지정'으로 그대로 기록됩니다.
max_filesNo최대 검사 파일 수 (기본 20,000). 초과분은 skipped_files에 사유와 함께 기록
max_file_bytesNo파일 하나의 크기 상한(바이트, 기본 8,000,000). 넘는 실행 소스는 coverage.oversized_source_files 에 남고 게이트는 승인을 내리지 않는다

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.1
    • addedInput schema / properties / deps
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "local",
      +        "online",
      +        "off"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "패키지(의존성) 검사 모드. local=로컬 위협정보 캐시로 취약·악성 대조, 네트워크 없음 / online=OSV.dev·공식 저장소까지 조회(패키지명·버전만 전송) / off=생략(생략 사실이 결과에 남음). **사용자가 요청하지 않았으면 비워 두세요** — 기관 기본값(GVSKB_DEPS_MODE, 없으면 local)이 적용됩니다"
      +}
    • addedInput schema / properties / env_grade
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "E0",
      +        "E1",
      +        "E2"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "실행환경 등급 — 신규 버전 쿨다운 기준일만 정합니다(취약점·악성 판정에는 영향 없음): E0(개인PC 일회성, 3일) | E1(개인PC 반복도구, 7일, 기본) | E2(내부서버 공용, 14일). **사용자가 배포 환경을 명시하지 않으면 비워 두세요** — 도구가 자동 판별하지 않으며, 넘긴 값이 보고서에 '검사 실행 시 지정'으로 그대로 기록됩니다."
      +}
  2. Changed7 schema fields changedv0.5.4
    • addedInput schema / properties / caller
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "호출 주체 자율 신고 (예: 'harness:auto'). 감사 구분용"
      +}
    • addedInput schema / properties / max_file_bytes
      Added value: +{
      +  "default": 8000000,
      +  "description": "파일 하나의 크기 상한(바이트, 기본 8,000,000). 넘는 실행 소스는 coverage.oversized_source_files 에 남고 게이트는 승인을 내리지 않는다",
      +  "type": "integer"
      +}
    • changedInput schema / properties / max_files / default
      Previous value: -500New value: +20000
    • addedInput schema / properties / max_files / description
      Added value: +"최대 검사 파일 수 (기본 20,000). 초과분은 skipped_files에 사유와 함께 기록"
    • addedInput schema / properties / path / description
      Added value: +"검사할 로컬 파일 또는 폴더의 절대·상대 경로. 원격 URL 불가(먼저 clone)"
    • addedInput schema / properties / profile / description
      Added value: +"정책 프로파일 ID. 값: public-default-strict(기본·엄격) | civil-complaint-chatbot | internal-db-query | web-civil-service"
    • addedInput schema / properties / scenario / description
      Added value: +"용도 힌트 — 해당 시나리오 룰을 우선 적용. 값: web-app | data-pipeline | llm-integration | agent"
  3. First observedv0.1.0

TDQS

A4.8/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 discloses traversal behavior (skips build/vendor dirs, ignores binaries), a privacy guarantee (source is never sent to an external API), the default-on dependency audit and the output fields it populates, and the non-obvious gate semantics where missing/stale threat intel yields '판정 불가'/'조건부' rather than '안전'. These are exactly the side effects and caveats an agent cannot infer from structured fields.

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?

Dense but front-loaded: routing triggers come first, then behavior, then the next step. The parenthetical keyword list '(보안·검토·체크·검사)' and the bolded dependency paragraph add length, though both serve selection and expectation-setting rather than pure padding.

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 an 8-parameter tool with no annotations, the description covers the gaps structured fields cannot: local-only execution, default dependency auditing, gate conditions under missing threat intel, key result fields, and the recommended follow-up call. With an output schema present, it does not need to enumerate return values and doesn't.

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 description coverage is 100%, so the baseline is 3; the description earns one extra point by explaining that dependency scanning happens by default even when no deps value is passed, and by naming the resulting fields (dependency_audit, dependency_check). It does not elaborate on profile, scenario, or env_grade, but those are already documented in the 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 ('파일 또는 폴더를 공공기관 보안 기준으로 점검') and immediately names the sibling it is not: in-memory code snippets use scan_code instead. It also positions itself as the entry point of the '기존 코드베이스 감사' flow, so an agent can pick it apart from scan_code, scan_dependencies, or detect_secrets_and_pii 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 Guidelines5/5

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

Gives concrete user phrasings that should route here ('이 폴더 보안 점검해줘', '안전한지 검사해줘' pointing at a local path) and an explicit exclusion rule (memory-resident code → scan_code). It also closes the loop with the follow-up step ('검사 후 render_report 로 한국어 보고서를 만드세요'), which is unusual and valuable.

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