Skip to main content
Glama

Audit Local Codebase AI Readiness & ARD 1.0 Compliance

audit_local_codebase
Read-onlyIdempotent

Scan a local repository workspace read-only to detect package.json, robots.txt, llms.txt, and AI catalog manifests, then return a Markdown report with remediation links before deploying.

Instructions

Performs a strictly read-only structural scan of a local repository workspace (checking package.json, robots.txt, public/llms.txt, and public/.well-known/ai-catalog.json) without modifying or creating any files on disk. Returns a Markdown report with three sections: a 4-item workspace detection summary, an optional 6-line /llms.txt preview block, and 2-tier remediation links. Use this tool when inspecting a local project checkout before deployment. Do not use this tool to audit a live remote website over HTTP (use audit_ai_readiness instead) or to synthesize full manifest files from a live domain (use generate_ai_manifests instead). Requires no API key.

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": {
      "targetDir": "<targetDir>"
    },
    "name": "audit_local_codebase"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetDirYesRelative or absolute filesystem path to the local repository root (e.g., "./" or "/workspace/app"). Resolved relative to the server working directory; if a "public/" subdirectory exists inside targetDir, static discovery manifests are checked there first before falling back to targetDir.
includePreviewNoOptional flag controlling whether the response includes the 6-line /llms.txt preview block synthesized from package.json metadata (name, description, homepage). Defaults to true when omitted; never writes files to disk.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.8

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint=false, idempotentHint and destructiveHint=false, but the description adds real context: no files are modified or created on disk, no API key is required, and the response shape is summarized as three named sections. It stops short of covering edge behavior such as what happens when the checked files are absent, so it is strong but not exhaustive.

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?

Front-loaded with the read-only scope and the inspected file list, then the return shape, then routing guidance and the auth note. Every sentence carries distinct information; nothing is 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?

With no output schema, the description still tells the agent the report has three specific sections, which is enough to interpret the return value. Safety, auth requirements, scope, and alternatives are all present for a two-parameter local-scan tool.

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 description coverage is 100%, and the targetDir and includePreview descriptions already cover path resolution, the public/ fallback, the default value, and the no-write guarantee. The description's mention of an "optional 6-line /llms.txt preview block" ties loosely to includePreview but largely restates what the schema documents, so the baseline of 3 applies.

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 ("strictly read-only structural scan of a local repository workspace") and enumerates exactly what is inspected (package.json, robots.txt, public/llms.txt, public/.well-known/ai-catalog.json). It also contrasts itself against the two closest siblings by name, so an agent can distinguish it without opening the 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?

Explicitly names the when ("inspecting a local project checkout before deployment") and the when-not, with the correct alternative for each mis-case: audit_ai_readiness for live remote HTTP audits and generate_ai_manifests for synthesizing manifests from a live domain. Nothing is left to inference.

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