Skip to main content
Glama

jev_audit_code

Audit code or local git diffs for security, GSAP, and architecture violations, then extract remediation rules from installed skills to guide fixes.

Instructions

Skill-Backed Security, Animation & Architecture Auditor. Scores code or local git diff against 10+ security/GSAP/architecture vectors and automatically extracts remediation rules from your installed skills (security-best-practices, gsap-performance, codebase-design) when violations are detected.

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

Input Schema

NameRequiredDescriptionDefault
codeNoCode snippet or diff to audit. If omitted, automatically audits current local `git diff`
stackNoExplicit stack override
file_pathNoFile path to help auto-detect framework stack
working_directoryNoWorkspace directory if auditing local git diff
violation_thresholdNoProbability threshold (0-1) to trigger local skill reference extraction (default 0.55)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses the scoring vectors and that remediation rules are extracted from installed skills on violations, which is useful. But it never states whether the operation is read-only, whether skill extraction writes anything persistent, or what permissions are needed – all material for a tool that reads a workspace and consults installed skills.

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 sentences, front-loaded with the tool's identity and followed by concrete mechanics. The opening epithet ('Skill-Backed Security, Animation & Architecture Auditor') is slightly branding-heavy but still conveys scope efficiently.

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 five-parameter, zero-required audit tool with no output schema and no annotations, the definition omits the return shape (scores? per-vector findings? extracted rules?) and any safety profile. What is present is accurate, but an agent cannot predict what it will get back or whether the call mutates anything.

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%, so every parameter (including the git-diff fallback, stack enum, working_directory, and violation_threshold) is already documented in the schema. The description repeats the code-or-diff behavior without adding format or interaction detail beyond the schema, so the baseline of 3 applies.

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?

The description names a specific verb (scores) and resource (code or local git diff) and lists the audit domains (security/GSAP/architecture). It is clear what the tool does, though it never contrasts itself with the similarly scoped sibling jev_verify_diff, leaving the agent to infer the difference.

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 is only implied: the agent learns it can audit an explicit snippet or fall back to the local diff, and that skills are consulted when violations are detected. There is no explicit when-to-use/when-not guidance or routing to alternatives such as jev_verify_diff for plain diff checks.

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