Skip to main content
Glama

Verify an edited file or range

verify_change
Read-only

Checks a changed file or line range for AI-code defects, hallucinated references, hard-coded secrets, and high/critical security bugs before merge.

Instructions

Verify a changed file/range for AI-code defects and security bugs.

Returns a narrow, versioned JSON verdict containing AI-code trust findings such as hallucinated references, unfinished generated code, stale references, disabled controls, and dependency hallucinations (checked by default; pass include_dependency_hallucinations=False to skip the registry lookups), plus high/critical security findings (category "security") and hard-coded secrets (category "secret", values redacted) in the selected file/range. Pass include_security_findings=False to skip the security and secret checks.

Requires SKYLOS_API_KEY: this tool returns an authentication error unless the MCP server is started with SKYLOS_API_KEY set. Without a key, analyze works (5 calls/day) and the local map tools (change_map and the graph_* tools) work with no limit. The local CLI needs no key: skylos verify <file> and skylos agent install-hooks.

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": "verify_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoFile inside `path` to check; omit to check `path`.
pathNoProject root, or a single file to check..
confidenceNoMinimum confidence (0-100) for dead-code findings. Higher values report fewer, surer candidates; 60 is the CLI default.
line_rangeNoLines to check in `file`, as "START:END" or "START-END" (e.g. "10:40"), or one line number.
contract_pathNoPath to a repo-specific AI-code contract file; omit to use the project's default contract if it has one.
exclude_foldersNoExtra folder names to skip, comma-separated (e.g. "migrations,scripts"). Added to the default excludes.
project_contextNoAlso load the rest of the project to resolve cross-file references (slower; may reduce unresolved-reference findings).
contract_enabledNoFalse disables contract discovery and checks. Omit contract_path when False; combining them is rejected.
include_security_findingsNoInclude high and critical security findings and hard-coded secrets in the verdict.
include_dependency_hallucinationsNoCheck imported packages against the package registries. False skips these network calls.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.49.0

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations by naming the auth prerequisite and its exact failure mode, disclosing that dependency checks hit package registries over the network (and how to skip them), stating that secret values are redacted, and describing the shape of the returned verdict. This is precisely the behavioral context readOnly/openWorld hints cannot convey.

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-loads purpose, then the returned content, then prerequisites — a sensible order. The long parenthetical about include_dependency_hallucinations and the dense final paragraph on API keys slightly bloat an otherwise efficient definition, but no sentence is filler.

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 10-parameter tool with an output schema, the definition covers what an agent most needs: prerequisites, network side effects, redaction, and how to disable costly checks. The only substantive gap is sibling disambiguation and any note on verdict severity/threshold semantics, which the schema handles for `confidence` but not for the overall pass/fail contract.

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, but the description adds real meaning: it names the two toggles and what skipping them avoids (registry lookups, security/secret checks), and clarifies the 'security' and 'secret' finding categories. The remaining eight parameters (file, path, line_range, confidence, contract_*, project_context, exclude_folders) are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Verify a changed file/range') plus the defect classes it targets (AI-code defects, security bugs, secrets, dependency hallucinations). It is clear on its own, but it does not differentiate itself from overlapping siblings such as validate_code_change, security_scan, or quality_check, leaving an agent to guess which verification entry point to pick.

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

Usage Guidelines3/5

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

Usage guidance is present but mostly operational rather than comparative: it explains that SKYLOS_API_KEY is required, that without a key `analyze` (5 calls/day) and the local map tools still work, and which flags skip which checks. What is missing is when to choose this over sibling verify_* / security_scan tools, so the agent gets availability rules but not selection rules.

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