Skip to main content
Glama

Auto-Scan Project Dependencies

gt_auto_scan
Read-onlyIdempotent

Detect project dependencies and fetch topic-specific best practices for each library to support dependency-aware auditing.

Instructions

Detect the project's dependencies (package.json, pyproject.toml, requirements.txt, Cargo.toml, go.mod, root .ipynb, ...) and fetch best practices for each. Issues in the project's own code: gt_audit.

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

Input Schema

NameRequiredDescriptionDefault
topicNoWhat to look up per dependency, e.g. 'security'
projectPathNoProject root (default: cwd)
tokensPerLibNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv8.1.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / projectPath / description
      Previous value: -"Absolute path to the project directory. Defaults to current working directory. The tool will read package.json, requirements.txt, Cargo.toml, go.mod, etc."New value: +"Project root (default: cwd)"
    • changedInput schema / properties / tokensPerLib / default
      Previous value: -1500New value: +500
    • removedInput schema / properties / tokensPerLib / description
      Removed value: -"Max tokens per library (default: 1500). Lower = more libraries covered."
    • changedInput schema / properties / topic / description
      Previous value: -"What to look up for each detected dependency. Examples: 'latest best practices', 'security', 'performance', 'migration'. Leave empty for general best practices."New value: +"What to look up per dependency, e.g. 'security'"
  2. First observedv5.2.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered without the description. The description adds the useful fact that a single call both discovers manifests and issues per-dependency best-practice fetches, but says nothing about result size, ordering, behavior when no manifest is found, or how the token budget affects the response.

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?

Two compact sentences: the detection scope is front-loaded with a concrete file list, and the sibling redirect is placed last as a short pointer. There is no filler or restatement of the title.

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

Completeness3/5

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

For a read-only aggregate tool this is reasonably complete on inputs, and annotations cover safety. However, with no output schema, the description should hint at what comes back — one result per dependency, grouped by manifest, or a merged report — since an agent must know how to consume the response.

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

Parameters3/5

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

Schema coverage is 67%: topic and projectPath carry their own descriptions, while tokensPerLib is documented only through default/min/max constraints. The description offers no parameter-level meaning at all — notably it never explains the 'topic' scoping concept or what a per-library token budget controls — leaving the schema to do all the work.

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?

Concrete verbs ('Detect', 'fetch') plus a specific resource ('the project's dependencies'), backed by an enumerated manifest list (package.json, pyproject.toml, requirements.txt, Cargo.toml, go.mod, root .ipynb) that makes the scan scope unambiguous. It also explicitly separates itself from gt_audit by scope: dependencies here vs. issues in the project's own code.

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?

The description gives one explicit exclusion with a redirect ('Issues in the project's own code: gt_audit'), which resolves the most likely mis-selection. It does not say when to prefer per-library lookups such as gt_best_practices or gt_resolve_library, so the boundary with the overlapping best-practices siblings is left implicit.

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