Skip to main content
Glama

Audit Project Code

gt_audit
Read-onlyIdempotent

Scan project source files and notebook code cells for layout, performance, security, and accessibility issues, then attach fixes from official documentation with precise file:line locations.

Instructions

Scan project source files, incl. .ipynb code cells, for issues (file:line; notebooks file:cell_N:line_M) and attach fixes from official docs. Use categories ["all"] for broad requests. Best practices for its dependencies: gt_auto_scan.

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_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokensNo
maxFilesNo
categoriesNo
projectPathNoProject root (default: cwd)

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"
    • removedInput schema / properties / categories / description
      Removed value: -"Issue categories to audit. Use \"all\" for broad questions. Default: all. Available: layout, performance, accessibility, security, react, nextjs, typescript, node, python, vue, svelte, angular, testing, mobile, api, css, seo, i18n."
    • removedInput schema / properties / maxFiles / description
      Removed value: -"Max source files to scan"
    • changedInput schema / properties / projectPath / description
      Previous value: -"Project directory. Defaults to current working directory."New value: +"Project root (default: cwd)"
    • removedInput schema / properties / tokens / description
      Removed value: -"Max tokens per best-practice fetch"
  2. First observedv5.2.0

TDQS

B3/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. The description adds genuinely useful behavior beyond that: it reads source files including notebook cells and returns issue locations plus doc-sourced fixes. It says nothing about scan cost, runtime, or how 'openWorld' network/doc fetching works, which matters for a tool that pulls from official docs.

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?

Two dense sentences, front-loaded with the core action and the output format. The abbreviation 'incl.' and the dangling 'Best practices for its dependencies: gt_auto_scan' clause are terse to the point of unclarity, but there is no filler.

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?

With zero required parameters and no output schema, an agent can invoke this blind, and the description supplies the issue-location format it would otherwise lack. However, it leaves two of four parameters (tokens, maxFiles) with no meaning and gives no sense of scan scope, runtime, or result volume, which matters for a whole-project scan.

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

Parameters2/5

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

Schema description coverage is only 25% — projectPath is documented in-schema and nothing else is. The description only touches categories (use ["all"] for broad requests); tokens (a 1000-8000 budget) and maxFiles (1-200) are left completely unexplained in both schema and description. For a low-coverage schema this is a real gap, since an agent cannot tell what the token budget governs.

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: scan project source files (including .ipynb code cells) for issues and attach fixes from official docs. The output-location convention (file:line vs file:cell_N:line_M) further pins down what the tool produces. It stops short of a clean sibling differentiation, since the only reference to gt_auto_scan is the cryptic 'Best practices for its dependencies' line.

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

Usage Guidelines2/5

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

The only usage direction is 'Use categories ["all"] for broad requests', which is a parameter tip rather than when-to-use-this-vs-alternatives guidance. The trailing 'Best practices for its dependencies: gt_auto_scan' is ambiguous — it is unclear whether the agent should call gt_auto_scan first, or that gt_auto_scan covers dependency best practices. No exclusions or preconditions are given.

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