tzero-mcp
T-Zero MCP server enables AI coding assistants to compress code context and run local codebase intelligence/automation workflows.
Build multi-tier AST project context or compact repo maps with token budgets.
Prune in-memory code snippets, schemas, and diffs into signatures.
Search codebases and analyze dependencies, call chains, dead code, PageRank, and change impact.
Manage/enforce architectural rules and generate architecture blueprints/Mermaid diagrams.
Audit code quality, detect smells/duplication/hallucinations, and scan/install zero-leak security hooks.
Estimate token costs/ROI and export agent rule files.
Query/manage persistent semantic memory and causal knowledge graphs.
Orchestrate multi-agent swarms, consensus voting, and self-healing patch workflows.
Integrates with Git repositories to provide recency-based token budgeting and incremental diff context extraction for PR reviews.
Integrates with Google Gemini as an AI provider, supporting secure API key storage and cost estimation for Gemini models.
Integrates with NVIDIA as an AI provider, supporting secure API key storage and outbound routing to NVIDIA endpoints.
Integrates with local Ollama instances as a zero-cost AI provider, supporting local model cost estimation and offline AI features.
Integrates with OpenAI as an AI provider, supporting secure API key storage and cost estimation for OpenAI models.
T-Zero
High-performance AST context pruner & MCP server for AI coding assistants.
Reduces codebase prompt tokens by up to 94.9% while preserving complete class contracts, typed signatures, and cross-file dependencies.
Why T-Zero • Quickstart • Benchmarks • Tools Reference • Architecture • Türkçe
Why T-Zero?
When an AI coding assistant (Cursor, Claude Code, Antigravity IDE, Windsurf, Cline) reads your codebase, feeding full source files wastes 80% to 95% of your context window on internal loop bodies, routine calculations, and local variables. The model needs to know what your modules expose and call, not 100 lines of boilerplate implementation inside each method.
T-Zero acts like an on-the-fly .pyi / .d.ts declaration generator for your AI context window:
┌─────────────────────────────────┐
│ Full Source Codebase │ (166,996 raw tokens — $0.50/query, 18s latency)
└────────────────┬────────────────┘
│
▼ [ T-Zero Native AST Parser ]
│ Strips routine bodies, preserves signatures, types & docs
▼
┌─────────────────────────────────┐
│ T-Zero AST Skeleton Tree │ (8,465 tokens — $0.025/query, 2.1s latency)
└─────────────────────────────────┘Before vs. After AST Pruning
# BEFORE: Raw source file (1,240 tokens)
class PaymentGateway:
def __init__(self, api_key: str, timeout: int = 30):
# 30 lines of connection pooling, socket configuration, SSL contexts...
self.session = requests.Session()
self.timeout = timeout
...
def process_charge(self, user_id: str, amount_cents: int, currency: str = "USD") -> TransactionResult:
"""Charges a customer card with automated retry and idempotency."""
# 60 lines of payload hashing, error handling, database locking, telemetry...
if not user_id:
raise ValueError("user_id required")
...
# AFTER: T-Zero AST Skeleton (64 tokens — 94.8% reduction)
class PaymentGateway:
def __init__(self, api_key: str, timeout: int = 30): ...
def process_charge(self, user_id: str, amount_cents: int, currency: str = "USD") -> TransactionResult:
"""Charges a customer card with automated retry and idempotency."""
...The AI assistant retains full access to class names, typed parameters, docstrings, and return types — with zero semantic loss, at a fraction of the token cost, and with drastically faster Time-To-First-Token (TTFT).
Related MCP server: mcp-code-context
Quickstart
1. Instant Run via uvx (Zero Installation)
uvx tzero-mcp2. Install via pip
pip install tzero-mcp3. Connect to Cursor / Claude Desktop / Antigravity / Windsurf
Add the following to your claude_desktop_config.json or Cursor Settings (Features → MCP):
{
"mcpServers": {
"tzero": {
"command": "uvx",
"args": ["tzero-mcp"]
}
}
}Or using local python:
{
"mcpServers": {
"tzero": {
"command": "python",
"args": ["-m", "tzero_mcp"]
}
}
}4. Claude Code CLI Integration
claude mcp add --scope user tzero uvx tzero-mcp5. Launch Local Web Dashboard
tzero --dashboardOpens the local browser dashboard on http://localhost:8421 featuring interactive dependency graphs and the live AST pruner sandbox.
6. 🛡️ Pre-Commit Hook (Auto Zero-Leak & Token Guard)
Prevent accidental credential leaks and token bloat before code ever leaves developer machines. Add to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/toprakahmetaydogmus/TZeroAlgorithm
rev: v7.3.4
hooks:
- id: tzero-guard
- id: tzero-audit7. ⚡ GitHub Actions CI/CD Integration
Automatically audit repositories for zero hardcoded secrets and generate token optimization summaries on every commit and PR:
# .github/workflows/tzero.yml
name: T-Zero Codebase Guard
on: [push, pull_request]
jobs:
tzero-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: toprakahmetaydogmus/TZeroAlgorithm@main
with:
workspace-dir: '.'
audit-level: 'strict'Reproducible Benchmarks
Analysis Target | Raw Codebase Tokens | T-Zero AST Payload | Token Savings | Cost per Query (Claude 3.5) | Latency (TTFT) |
Full Repository Scan (38K LOC) |
|
| -94.9% | $0.501 → $0.025 | 18.4s → 2.1s |
Large Backend Service |
|
| -94.3% | $0.126 → $0.007 | 6.2s → 0.9s |
Git PR Diff Stream |
|
| -93.9% | $0.055 → $0.003 | 2.8s → 0.4s |
Verify locally on your machine with zero cloud cost:
python tzero.py --savings
Core Capabilities
1. AST Skeleton Pruning
Strips internal routine execution bodies while preserving every class definition, typed signature, docstring, and return type. Zero heuristic line cutting — 100% deterministic language parsing.
2. Polyglot Language Support
Zero external compiler dependencies. Supports:
Python (via native
astparser)TypeScript & JavaScript (interfaces, exports, type annotations)
Go, Rust, Java, C#, C++, PHP, and Ruby (structural signature extractors)
3. Change Blast Radius Analysis
Before refactoring a class or function, T-Zero calculates its exact downstream dependency impact (0–100 score), identifying every file, import, and symbol that could break.
4. Zero-Leak Security Guard
Guaranteed 100% offline execution. Includes pre-commit hooks and real-time scanners that block .env secrets, private tokens, and credentials from ever being sent to LLM APIs.
5. Embedded Superdesign Engine
Natively integrates the Superdesign UI methodology into Claude Code and Cursor with 5 tools to generate design systems, component specifications, and interactive browser preview galleries.
MCP Tools Reference
🚀 Flagship Omni-Tool: execute_codebase_workflow
Execute any codebase workflow, multi-stage audit, or specific T-Zero engine in a single unified MCP command:
// Full autonomous pipeline: Security Audit + Architecture Blueprint + Token ROI + Code Quality
{
"name": "execute_codebase_workflow",
"arguments": {
"action": "auto",
"target": "."
}
}Or execute targeted operations on demand:
"action": "security"— 100% Zero-Leak secret scan across workspace"action": "context"— Hierarchical AST context tree generation"action": "blueprint"— Mermaid system architecture & component topologies"action": "impact"— Change blast radius analysis for a class or function"action": "heal"— Automated AST diagnostic diagnosis & self-healing patch"action": "search"— Local BM25 hybrid semantic search
Tool Architecture: By default, T-Zero exposes the 15 TDQS-certified Canonical & Omni Tools to prevent context bloat and ensure 5/5 tool coherence. The full 48-tool suite is available on-demand via
tzero-mcp --allorTZERO_MCP_TOOL_MODE=all(and all 48 tools remain dynamically callable viacall_tool()in both modes).
T-Zero tools grouped by functional category:
get_project_context_tree: Multi-tier hierarchical AST context tree (T-1 to T-4).prune_code_snippet: Strips implementation bodies from in-memory snippets or diff streams.prune_schema_definition: Compresses database schemas, OpenAPI specs, and protobuf definitions.get_smart_skeleton_context: Focus-file implementation with 1st-degree caller/callee skeletons.get_incremental_diff_context: Git diff context pruned with AST signatures.generate_zero_waste_prompt_context: Token-optimized prompt preamble for coding agents.
query_module_dependencies: Analyzes import/export graphs across 10+ programming languages.analyze_code_dependencies: Deep dependency mapping, call chains, PageRank, and dead code.analyze_change_impact: Calculates change blast radius (0-100) and downstream dependents.rank_repository_pagerank: Identifies architectural backbone files by network centrality.trace_symbol_call_chain: Traces cross-file execution flow from caller to callee.find_dead_code: Detects unreferenced, unreachable, or orphaned functions.
verify_security_guard: 100% Zero-Leak scan for hardcoded credentials and secrets.verify_zero_leak_security: Validates that files adhere to the Zero-Leak security policy.install_git_security_guard: Installs pre-commit hooks preventing credential leaks.audit_code_quality: Static AST analysis, cyclomatic complexity, and code smell audits.audit_codebase_quality: Static code audit across workspace files.verify_hallucination_guard: Ground-truth verifier detecting hallucinated imports and types.
superdesign_generate: Structured specifications for UI, wireframe, component, logo, and icon creation.superdesign_iterate: Surgical iteration instructions to refine existing design files with feedback.superdesign_extract_system: Extracts structured design token JSON schemas.superdesign_list: Enumerates all design iterations and systems in workspace.superdesign_gallery: Builds interactive HTML gallery with live previews and modal zoom.
query_architecture_boundaries: Inspects active T-4 architectural layer constraints.enforce_architecture_boundaries: Validates import boundaries defined intzero.rules.json.generate_architecture_blueprint: Synthesizes complete system specification with live Mermaid diagrams.generate_repo_map: Ultra-compact AST symbol token map for chat context windows.export_agent_rules: Exports AI rule specifications (.cursorrules,.clinerules,.cursor/rules/*.mdc).
query_memory_store: Queries semantic triples, causal graphs, and MinHash entity clusters.manage_memory_store: Consolidates, exports, lists, resets, or compresses memory stores.jarvis_query_knowledge_graph: Graph query engine for entity-relationship triples.jarvis_consolidate_memory: Consolidates short-term episodic memory into long-term memory.jarvis_compress_semantic_memory: Compresses text into semantic triples.jarvis_decompress_semantic_memory: Reconstitutes compressed triples into coherent context.jarvis_compress_document: Compresses long documents while preserving critical facts.jarvis_export_memory_store: Exports agent knowledge stores to JSON or HTML visualizations.
orchestrate_agent_swarm: Coordinates multi-agent workflows, PBFT consensus, and self-healing.jarvis_orchestrate_goal: Decomposes high-level objectives into phased execution plans.jarvis_swarm_orchestrate: Coordinates collaborative multi-agent execution.jarvis_bft_swarm_consensus: Byzantine fault-tolerant voting with 3f+1 quorum.jarvis_self_healing_execute: Runs shell commands with automated AST failure healing.generate_smart_micro_patch: Generates surgical git-compatible diff patches.
estimate_token_cost: Real-time cost comparisons across OpenAI, Anthropic, Gemini, and DeepSeek.get_token_savings_metrics: Quantitative token compression metrics and monthly ROI savings.compress_stream_tokens: Compresses live text streams using localized codebooks.search_codebase: Local BM25 hybrid semantic and lexical code search.search_codebase_semantic: 100% private semantic search without cloud embedding APIs.
Architecture
flowchart TD
subgraph Input ["Input Layer"]
REPO["Source Code Repository"]
end
subgraph Parser ["AST Engine"]
AST["Language AST Visitor"]
SIG["Signature & Type Extractor"]
DEP["Import & Call Graph Analyzer"]
end
subgraph Core ["T-Zero Engine"]
PRUNER["AST Skeleton Pruner (-94.9% Tokens)"]
GUARD["100% Zero-Leak Security Guard"]
SUPER["Superdesign UI Engine"]
end
subgraph Delivery ["MCP Delivery"]
MCP["tzero_mcp.py (Stdio Server)"]
DASH["tzero --dashboard (localhost:8421)"]
end
subgraph Clients ["AI Clients"]
CURSOR["Cursor IDE"]
CLAUDE["Claude Code / Desktop"]
AGY["Antigravity IDE"]
WINDSURF["Windsurf / Cline"]
end
REPO --> AST
AST --> SIG
AST --> DEP
SIG --> PRUNER
DEP --> PRUNER
PRUNER --> GUARD
GUARD --> MCP
SUPER --> MCP
PRUNER --> DASH
MCP --> CURSOR
MCP --> CLAUDE
MCP --> AGY
MCP --> WINDSURFSecurity Architecture
100% Zero-Leak Guarantee: T-Zero contains ZERO hardcoded, personal, or public API keys. All AST parsing, BM25 indexing, and blast radius calculations run 100% locally on your machine with zero external network telemetry.
🇹🇷 Türkçe Dokümantasyon
T-Zero, yapay zeka kodlama ajanları (Cursor, Claude Code, Antigravity IDE, Windsurf, Cline) için geliştirilmiş, kod tabanı bağlamını yapısal olarak koruyarak token tüketimini %94.9'a kadar azaltan açık kaynaklı bir bağlam motoru ve Model Context Protocol (MCP) sunucusudur.
Neden T-Zero?
Bir AI asistanına binlerce satırlık ham kod dosyaları verildiğinde, fonksiyonların içindeki döngüler ve rutin işlemler bağlam penceresini gereksiz yere doldurur. T-Zero, kod tabanını derleyici seviyesinde AST ile ayrıştırarak fonksiyon gövdelerini çıkarır; yalnızca sınıf yapılarını, tip imzalarını, docstring'leri ve bağımlılıkları korur.
Hızlı Kurulum
# Kurulum yapmadan doğrudan çalıştırmak için (uvx):
uvx tzero-mcp
# veya pip ile kurun:
pip install tzero-mcp
# Yerel görsel paneli açın:
tzero --dashboardLicense & Author
Author: Toprak Ahmet Aydoğmuş
LinkedIn: Toprak Ahmet Aydoğmuş
Bio & Hub: hopp.bio/siberegitim
License: MIT License
Available Tools
15 toolsanalyze_change_impactARead-onlyIdempotent
Calculates change blast radius score (0-100) and identifies downstream dependents before modifying or deleting a target function, class, or module, distinguishing from 'analyze_code_dependencies' and 'audit_code_quality' by calculating targeted refactoring risk scores rather than mapping overall import graphs or profiling code complexity.
Parameters:
target_symbol(str, required): Name of the function, class, or method being modified or refactored.project_root(str, optional, default='.'): Root directory of the repository (default: current directory).file_path(str, optional, default=''): Optional file path where the target symbol is defined.
Behavior:
Read-only: Scans workspace AST and dependency graphs; does not alter files.
Idempotent: Deterministic blast radius scoring for identical repository states.
100% Offline: Local AST caller/callee traversal without remote API calls.
Auth & Rate Limits: Zero authentication or API keys required; completes in <300ms.
Error Handling: Returns 0 blast radius and not-found notice if the target symbol does not exist in AST index.
Usage Guidelines:
When to use: Run prior to editing a core interface, signature, or shared utility to gauge how many downstream files and tests will be impacted.
When NOT to use: Do not use for general whole-repository dependency mapping or PageRank centrality (use 'analyze_code_dependencies' instead); do not use for auditing static code complexity and code smells (use 'audit_code_quality' instead).
Returns: Markdown report with quantitative blast radius score (0-100), risk tier (LOW/MEDIUM/HIGH/CRITICAL), affected downstream modules, and test recommendations.
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Optional file path where the target symbol is defined. | |
| project_root | No | Root directory of the repository (default: current directory). | . |
| target_symbol | Yes | Name of the function, class, or method being modified or refactored. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the read-only and idempotent bullets largely restate structured data. However the description adds genuine context beyond them: sub-300ms latency, zero auth/API keys, AST-based local traversal, and the specific failure behavior (0 blast radius plus not-found notice when the symbol is absent).
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The opening sentence front-loads purpose, output, and sibling differentiation, and the Behavior/Usage sections are scannable. The only waste is the Parameters block, which duplicates the schema verbatim and could be dropped, and a Returns section that partially overlaps the output schema.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a read-only analysis tool with full annotation coverage, complete schema, and an output schema, the description covers trigger conditions, failure mode, and performance envelope. Nothing required for correct invocation is missing; the only shortfall is that specific return-shape detail is redundant given the output schema already exists.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already fully documents all three parameters. The description's parameter list reproduces the same wording verbatim and adds no syntax, format, or resolution-order guidance (e.g. how file_path disambiguates duplicate symbol names). Baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource (calculates blast radius score, identifies downstream dependents) with an explicit scope (0-100, targeted symbol). It also names the two nearest siblings and explains the differentiating mechanism — targeted refactoring risk scoring versus import-graph mapping or complexity profiling.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Contains an explicit 'When to use' (prior to editing a core interface, signature, or shared utility) and a 'When NOT to use' that routes to both named alternatives with the reason each is preferred. An agent can select among analyze_code_dependencies, audit_code_quality, and this tool without further inference.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
analyze_code_dependenciesARead-onlyIdempotent
Analyzes module imports, symbol call chains, graph centrality (PageRank), and unreferenced dead code across polyglot source files, distinguishing from 'analyze_change_impact' and 'enforce_architecture_rules' by performing global dependency structure and dead-code analysis rather than calculating change blast radius or verifying layer boundaries.
Parameters:
analysis_type(str, optional, default='dependencies'): Type of structural analysis: 'dependencies' for module import/export graph, 'call_chain' for deep caller/callee execution trace, 'pagerank' for architectural backbone centrality, 'dead_code' for unreferenced symbols.project_root(str, optional, default='.'): Root directory of the repository to scan (default: current directory).target_symbol(str, optional, default=''): Target class or function name when analysis_type is 'call_chain'.file_path(str, optional, default=''): Optional path to a specific file to analyze.
Behavior:
Read-only: Inspects source syntax trees without modifying or moving files.
Idempotent: Deterministic dependency mapping for any scanned repository.
100% Offline: Local AST and regex parsers; zero external network requests.
Auth & Rate Limits: Zero authentication or cloud credentials required; runs in <1s.
Error Handling: Emits clean notices if the target symbol or file is not found in the AST index.
Usage Guidelines:
When to use: Run before refactoring, moving, or removing a module to inspect inbound dependents, outbound imports, deep symbol call chains, or unreferenced functions.
When NOT to use: Do not use for estimating the blast radius score of modifying a specific function or class (use 'analyze_change_impact' instead); do not use for validating whether imports violate architectural layer rules (use 'enforce_architecture_rules' instead).
Returns: Markdown report detailing import graphs, call chains, centrality rankings, or detected dead code.
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Optional path to a specific file to analyze. | |
| project_root | No | Root directory of the repository to scan (default: current directory). | . |
| analysis_type | No | Type of structural analysis: 'dependencies' for module import/export graph, 'call_chain' for deep caller/callee execution trace, 'pagerank' for architectural backbone centrality, 'dead_code' for unreferenced symbols. | dependencies |
| target_symbol | No | Target class or function name when analysis_type is 'call_chain'. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false, and destructiveHint=false, but the description adds useful operational context: zero auth/cloud credentials, sub-second execution, offline AST parsing, and clean error handling for missing symbols or files. Some statements repeat annotation semantics, which keeps it from a 5.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Well structured and front-loaded, with the differentiation statement early and clear sections for behavior and usage. It is somewhat over-formatted and repeats parameter details already present in the schema, but the length is justified by the tool's complexity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Covers purpose, sibling routing, read-only behavior, offline execution, auth requirements, performance, and error handling. An output schema exists and the description briefly notes the Markdown report format, so return-value explanation is not required in depth.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, and the description largely restates the same parameter meanings rather than adding syntax, constraints, or conditional rules beyond the schema. Baseline 3 is appropriate when the schema already documents all parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States the specific analyses performed (imports, call chains, PageRank, dead code) and explicitly distinguishes itself from analyze_change_impact and enforce_architecture_rules. An agent can identify the tool's scope and sibling boundaries 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.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Includes explicit 'When to use' and 'When NOT to use' sections, naming both alternatives and the exact conditions that should route the agent elsewhere. This is about as clear as usage guidance gets.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
audit_code_qualityARead-onlyIdempotent
Performs AST static code smell analysis, cyclomatic complexity profiling, duplicate code block detection, and AI coding hallucination validation, distinguishing from 'verify_security_guard' and 'analyze_code_dependencies' by scanning code maintainability and complexity rather than checking for credential leaks or analyzing module dependencies.
Parameters:
project_root(str, optional, default='.'): Root directory of the repository to audit (default: current directory).check_type(str, optional, default='all'): Audit scope: 'all' for complete check, 'smells' for code complexity/smells, 'duplicity' for copy-paste blocks, 'hallucinations' for invalid imports/signatures.file_path(str, optional, default=''): Optional path to a single file to audit.
Behavior:
Read-only: Inspects source syntax trees; does not modify or delete files.
Idempotent: Consistent diagnostic findings for the same code state.
100% Offline: Pure AST inspection without network calls.
Auth & Rate Limits: Zero credentials or external linters required; completes in <500ms.
Error Handling: Gracefully skips unparseable binary files and continues scanning source trees.
Usage Guidelines:
When to use: Run before submitting PRs or executing refactors to catch long methods (>30 lines), excessive arguments (>5), missing docstrings, copy-pasted blocks (6+ lines), or hallucinated imports.
When NOT to use: Do not use for scanning hardcoded secrets or installing git pre-commit security guards (use 'verify_security_guard' instead); do not use for analyzing module import dependencies (use 'analyze_code_dependencies' instead).
Returns: Comprehensive diagnostic report with severity ratings (T-001 to T-004), exact file line references, and remediation guidance.
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Optional path to a single file to audit. | |
| check_type | No | Audit scope: 'all' for complete check, 'smells' for code complexity/smells, 'duplicity' for copy-paste blocks, 'hallucinations' for invalid imports/signatures. | all |
| project_root | No | Root directory of the repository to audit (default: current directory). | . |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond the annotations, the description discloses that the tool is fully offline, requires no credentials or external linters, completes quickly, skips unparseable binary files gracefully, and returns severity-rated diagnostics with line references. These are useful operational details that the annotations alone do not provide.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well organized and front-loads the purpose, then separates parameters, behavior, usage, and returns. However, some content duplicates the input schema and annotations rather than adding new value, so it is slightly longer than necessary.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given a complex multi-mode audit tool with rich annotations, full schema descriptions, and an output schema, the description provides enough context for correct invocation. It covers scope, alternatives, safety profile, error handling, and expected diagnostics without needing to fully restate return structures.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents project_root, check_type, and file_path including defaults and enum-like values. The description repeats the same parameter meanings without adding substantial semantics beyond the structured schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: audit_code_quality performs AST static code smell analysis, complexity profiling, duplicate detection, and hallucination validation. It also explicitly distinguishes itself from sibling tools 'verify_security_guard' and 'analyze_code_dependencies' by contrasting maintainability/complexity scanning with credential-leak checks and dependency analysis.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It gives explicit when-to-use guidance, including concrete examples such as long methods, excessive arguments, missing docstrings, copy-pasted blocks, and hallucinated imports. It also gives explicit when-not-to-use guidance and names the correct alternatives for security checks and dependency analysis.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
build_project_contextARead-onlyIdempotent
Scans the target repository file system and constructs a token-optimized AST context payload for LLM prompts across multiple hierarchy tiers (T-1 to T-4), distinguishing from 'prune_code_snippet' and 'search_codebase' by constructing multi-tier repository architecture trees rather than pruning individual in-memory snippets or executing keyword searches.
Parameters:
project_root(str, optional, default='.'): Target repository root path to scan.context_type(str, optional, default='tree'): Context generation mode: 'tree' for hierarchical multi-tier AST tree, 'repo_map' for compact symbol index, 'skeleton' for focus-file implementation with 1st-degree caller/callee skeletons, 'zero_waste_prompt' for agent prompt prefix with pruned AST, 'incremental_diff' for git diff context.focus_file(str, optional, default=''): Optional path to a focus file when context_type is 'skeleton' or 'incremental_diff'.reduction_mode(str, optional, default='ultra'): AST reduction depth level ('ultra' for 80-95% compression with signatures and docstrings, 'balanced' for signatures + control structures, 'none' for verbatim source code).max_tokens(int, optional, default=64000): Upper token budget threshold for returned context.include_file_contents(bool, optional, default=True): If True, includes AST-reduced file bodies; if False, emits directory hierarchy only.
Behavior:
Read-only: Scans workspace files and parses AST signatures without modifying disk state.
Idempotent: Generates deterministic context representations for identical workspace revisions.
100% Offline: Operates entirely locally with zero telemetry, remote embedding APIs, or cloud billing.
Auth & Rate Limits: Zero authentication or cloud credentials required; completes in <2s for 1,000 files.
Error Handling: Returns clean Markdown warning notices if no analyzable files exist in the specified path.
Usage Guidelines:
When to use: Ingest repository architecture, module indexes, focus file skeletons, or zero-waste prompts at the beginning of an agent coding session or major refactor (80-95% token savings).
When NOT to use: Do not use for stripping implementation bodies from a single in-memory code string or diff patch (use 'prune_code_snippet' instead); do not use for querying specific code symbols or text without building a full context tree (use 'search_codebase' instead).
Returns: Structured Markdown document featuring '# Repository Architecture (T-1)', '# Module Dependencies (T-2)', '# AST Signatures (T-3)', '# Architectural Rules (T-4)', and token compression metrics.
| Name | Required | Description | Default |
|---|---|---|---|
| focus_file | No | Optional path to a focus file when context_type is 'skeleton' or 'incremental_diff'. | |
| max_tokens | No | Upper token budget threshold for returned context. | |
| context_type | No | Context generation mode: 'tree' for hierarchical multi-tier AST tree, 'repo_map' for compact symbol index, 'skeleton' for focus-file implementation with 1st-degree caller/callee skeletons, 'zero_waste_prompt' for agent prompt prefix with pruned AST, 'incremental_diff' for git diff context. | tree |
| project_root | No | Target repository root path to scan (default: current working directory). | . |
| reduction_mode | No | AST reduction level: 'ultra' for signatures & docstrings (80-95% reduction), 'balanced' for signatures + control headers, 'none' for verbatim source. | ultra |
| include_file_contents | No | When True, includes AST-reduced file bodies; when False, emits directory hierarchy only. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already cover read-only, idempotent, closed-world and non-destructive, but the description goes beyond them with offline/zero-telemetry operation, no-auth requirement, a concrete performance bound (<2s for 1,000 files), and defined error behavior (Markdown warning notices when no analyzable files exist). That is real added context for a tool that walks a filesystem.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The leading purpose sentence plus labeled Behavior/Usage Guidelines/Returns sections are front-loaded and scannable. It loses a point for re-listing all six parameters verbatim when the schema already documents them, which is filler rather than value.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given six optional params, full schema coverage, an output schema, and rich annotations, the description leaves nothing material unexplained — it covers modes, token budget, error paths, and the shape of the returned Markdown tiers.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% and the parameter block in the description is essentially verbatim duplication of the schema entries, so it adds little beyond structured data. The only minor surplus is the '.' working-directory gloss and the compression percentages, which the schema mostly carries too.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource pair ('Scans the target repository file system and constructs an AST context payload') and immediately contrasts it with the two nearest siblings, prune_code_snippet and search_codebase, by describing what each does instead. An agent can differentiate without consulting the schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Has explicit 'When to use' (start of coding session or major refactor, 80-95% token savings) and 'When NOT to use' sections that name the alternative tools and the condition that selects them. No inference required.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
enforce_architecture_rulesARead-onlyIdempotent
Enforces architectural boundary rules and layer isolation constraints defined in tzero.rules.json across the repository AST, distinguishing from 'manage_architecture_rules' and 'analyze_code_dependencies' by validating import graph compliance against defined architectural layers rather than editing rule definitions or tracing raw calls.
Parameters:
project_root(str, optional, default='.'): Root directory of the repository to validate (default: current directory).strict_mode(bool, optional, default=True): When True, fails on any boundary infraction; when False, warns without raising errors.
Behavior:
Read-only: Scans codebase imports and call paths; does not alter files.
Idempotent: Deterministic violation reporting for identical codebase states.
100% Offline: Local import graph validation against configured boundaries.
Auth & Rate Limits: Zero authentication or API keys required; completes in <500ms.
Error Handling: Reports missing configuration and lists passed vs violated rules clearly.
Usage Guidelines:
When to use: Run in CI/CD pipelines or before merging PRs to prevent architectural erosion (e.g. presentation layer importing database models or circular module dependencies).
When NOT to use: Do not use for creating, viewing, or editing architectural boundary definitions (use 'manage_architecture_rules' instead); do not use for inspecting general dependencies between modules (use 'analyze_code_dependencies' instead).
Returns: Detailed compliance audit report listing passed layer boundaries, identified architectural violations, and remediation guidance.
| Name | Required | Description | Default |
|---|---|---|---|
| strict_mode | No | When True, fails on any boundary infraction; when False, warns without raising errors. | |
| project_root | No | Root directory of the repository to validate (default: current directory). | . |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond annotations that already mark it read-only and idempotent, the description adds operational details: 100% offline validation, zero auth/API keys, <500ms completion, and error handling for missing configuration. It also clarifies that validation scans imports/call paths and produces a compliance audit report, which is meaningful behavioral context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well structured and front-loads purpose and sibling differentiation before detailed behavior and usage. It is somewhat long and repeats some annotation-backed properties and schema parameter text, but the structure keeps it readable and useful.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description is complete for a validation tool: it covers purpose, alternatives, execution profile, error handling, and expected returns. With an output schema and rich annotations also present, no critical information is missing for correct invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so both parameters are already well documented. The description's parameter section largely restates the schema's own descriptions for 'project_root' and 'strict_mode' without adding syntax or format details beyond them. Baseline 3 is appropriate when the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource ('Enforces architectural boundary rules and layer isolation constraints') and explicitly distinguishes itself from 'manage_architecture_rules' and 'analyze_code_dependencies' by contrast of role. An agent can identify exactly what this tool does and how it differs from siblings without opening schemas.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It gives explicit when-to-use guidance ('CI/CD pipelines or before merging PRs') and explicit when-NOT-to-use alternatives for rule management and dependency inspection. The routing conditions are concrete and actionable.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
estimate_token_costARead-onlyIdempotent
Calculates exact token counts, comparative API billing costs across AI model providers (OpenAI, Claude, Gemini, DeepSeek), and cumulative financial ROI savings, distinguishing from 'build_project_context' and 'prune_code_snippet' by evaluating financial costs and token metrics rather than constructing context trees or pruning code.
Parameters:
text(str, optional, default=''): Raw text string to count tokens and calculate cost for.project_root(str, optional, default='.'): Root directory of the repository to calculate workspace ROI savings for.tokens(int, optional, default=0): Optional raw token count to calculate cost directly.export_agent_rules(str, optional, default=''): Optional format to export agent rules: 'cursorrules', 'clinerules', 'markdown', or empty for cost estimation only.
Behavior:
Read-only: Calculates metrics from text or token counts without disk modifications.
Idempotent: Deterministic pricing calculations based on standard provider pricing tables.
100% Offline: Local pricing lookup table; zero network calls.
Auth & Rate Limits: Zero authentication or credentials required; execution latency <5ms.
Error Handling: Handles empty input gracefully by returning default workspace token estimations.
Usage Guidelines:
When to use: Evaluate token consumption, forecast monthly LLM API expenditures, or export agent rule configuration files (.cursorrules, .clinerules).
When NOT to use: Do not use for actively reducing token consumption by pruning repository code into AST signatures (use 'build_project_context' or 'prune_code_snippet' instead).
Returns: Markdown comparison table detailing input/output token counts, estimated USD costs per model provider, and percentage token reduction ROI.
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Raw text string to count tokens and calculate cost for. | |
| tokens | No | Optional raw token count to calculate cost directly. | |
| project_root | No | Root directory of the repository to calculate workspace ROI savings for. | . |
| export_agent_rules | No | Optional format to export agent rules: 'cursorrules', 'clinerules', 'markdown', or empty for cost estimation only. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already cover readOnlyHint, idempotentHint, openWorldHint and destructiveHint, so the description's 'Read-only' and 'Idempotent' lines largely restate them. It does add genuinely new context — 100% offline local pricing table, zero auth, <5ms latency, and graceful handling of empty input — which is useful. However it is internally ambiguous about export_agent_rules: it claims 'without disk modifications' yet describes exporting .cursorrules/.clinerules files, and the Returns section mentions only a markdown table, leaving the write-vs-return behavior unclear.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded and clearly sectioned, but the Parameters block duplicates the 100%-covered schema descriptions almost word for word, and the 'Read-only'/'Idempotent' lines restate annotations. Roughly a third of the text does not earn its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so the brief Returns note is sufficient. Inputs, behavior, error handling and sibling alternatives are all covered; the only real gap is whether export_agent_rules writes files or returns content, which matters for an agent choosing that parameter.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
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 value by enumerating valid export_agent_rules values ('cursorrules', 'clinerules', 'markdown', or empty) even though the schema declares no enum, and by clarifying that tokens is an alternative to text for direct cost calculation. Defaults are repeated verbatim from the schema, which adds little.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States specific verbs and resources: token counting, comparative API billing costs across named providers, and ROI savings. It also explicitly differentiates itself from build_project_context and prune_code_snippet by contrasting 'financial costs and token metrics' with 'constructing context trees or pruning code'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides an explicit 'When to use' list (forecast LLM API spend, evaluate token consumption, export rule files) and a 'When NOT to use' clause that names the exact alternative tools to use instead. An agent can route correctly without inference.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
execute_codebase_workflowAIdempotent
Autonomous all-in-one T-Zero master tool that executes any codebase workflow in a single command, distinguishing from individual specialized tools by autonomously orchestrating multi-step analysis, context generation, security scans, dependency mapping, and self-healing in an integrated pipeline.
Parameters:
action(str, optional, default='auto'): Workflow operation: 'auto' (runs comprehensive all-in-one audit & context pipeline), 'context' (builds AST context tree), 'audit' (code quality & smells), 'security' (Zero-Leak secret scan), 'blueprint' (Mermaid system architecture), 'dependencies' (import & module topology), 'impact' (blast radius of modified symbols), 'search' (hybrid BM25 semantic code search), 'prune' (in-memory AST snippet pruning), 'heal' (AST self-healing diagnosis & patching), 'memory' (query/manage memory store), 'swarm' (multi-agent consensus & task dispatch), or 'design' (UI/UX design blueprint).target(str, optional, default='.'): Target repository root path, file path, diff string, or raw code snippet.query(str, optional, default=''): Search term, focus symbol name, or goal prompt depending on action.options(str, optional, default=''): Optional JSON string specifying extra configuration parameters (e.g. reduction_mode, max_tokens, depth).
Behavior:
Orchestrated execution: When action='auto', performs a complete end-to-end audit (security, architecture, token savings, dependencies) and delivers a unified executive summary.
Deterministic: Dispatches to specialized underlying T-Zero engines.
100% Offline: Executes entirely on local AST without sending code to unverified cloud APIs.
Auth & Rate Limits: Zero credentials required; completes in <500ms.
Error Handling: Gracefully falls back and reports clean diagnostic messages for missing paths or invalid JSON options.
Usage Guidelines:
When to use: Use whenever you want an instant complete overview of a codebase, or want to perform any T-Zero operation through a single unified entrypoint without choosing between individual tools.
When NOT to use: Do not use if you specifically need an isolated low-level API call without any contextual wrapper.
Returns: Comprehensive Markdown report tailored to the requested action or full autonomous pipeline.
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Search query, focus symbol name, or task goal prompt. | |
| action | No | Workflow operation: 'auto' (comprehensive all-in-one pipeline), 'context', 'audit', 'security', 'blueprint', 'dependencies', 'impact', 'search', 'prune', 'heal', 'memory', 'swarm', 'design'. | auto |
| target | No | Target repository path, file path, diff string, or code snippet (default: '.'). | . |
| options | No | Optional JSON string of additional configuration parameters. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond annotations, it discloses deterministic dispatch, fully offline local-AST execution, zero credentials, sub-500ms completion, graceful fallback, and a unified executive summary for action='auto'. It does not fully detail the side effects of mutation-adjacent actions like 'heal' patching or 'memory' management.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded and organized into Parameters, Behavior, Usage Guidelines, and Returns sections. It is lengthy and includes some promotional phrasing and duplication of the action list, but the size is mostly justified by the 13-action dispatcher complexity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the broad dispatcher complexity and the existing output schema, the description covers action semantics, target/query/options usage, behavioral constraints, and error handling well. It leaves some per-action side-effect details implicit, especially for patching or memory mutation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is already 100%, but the description adds useful semantics: action-specific meanings, how target varies by use case, how query depends on action, and example option keys such as reduction_mode, max_tokens, and depth. Much of this overlaps the schema, so it is helpful rather than fully additive.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: executing codebase workflows via a unified dispatcher. It explicitly distinguishes itself from the many specialized sibling tools by acting as an autonomous orchestration layer across context, audit, security, dependencies, and healing.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It includes explicit 'When to use' and 'When NOT to use' sections, directing agents toward a unified entrypoint for complete overviews and away from isolated low-level API calls. It could be stronger if it named specific sibling tools to prefer for isolated operations.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_architecture_blueprintARead-onlyIdempotent
Generates a complete system architectural specification (ARCHITECTURE.md) with auto-generated Mermaid component topology diagrams, layer boundaries, and module hierarchies, distinguishing from 'enforce_architecture_rules' and 'analyze_code_dependencies' by producing comprehensive system architecture documentation rather than verifying boundary rules or tracing call chains.
Parameters:
project_root(str, optional, default='.'): Root directory of the repository to analyze (default: current directory).use_ai(bool, optional, default=False): When True, uses configured AI provider to synthesize deep narrative; when False (default), runs 100% offline AST analysis.model(str, optional, default=''): Optional model identifier override when use_ai is True.
Behavior:
Read-only: Returns formatted Markdown text without writing files to disk.
Idempotent: Deterministic AST topology diagram generation when use_ai=False.
100% Offline by default: Runs local AST analysis; optionally uses configured AI model when use_ai=True.
Auth & Rate Limits: Zero credentials required for default offline mode; completes in <1s.
Error Handling: Falls back to offline AST structural mapping if remote AI model synthesis is unreachable.
Usage Guidelines:
When to use: Create or update system architecture documentation and visual Mermaid flow diagrams for onboarding or RFC review.
When NOT to use: Do not use for checking rule compliance against defined boundaries (use 'enforce_architecture_rules' instead); do not use for raw dependency listings or call chain traces (use 'analyze_code_dependencies' instead).
Returns: Comprehensive Markdown document with live Mermaid diagrams, layer classifications, and component interfaces.
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional model identifier override when use_ai is True. | |
| use_ai | No | When True, uses configured AI provider to synthesize deep narrative; when False (default), runs 100% offline AST analysis. | |
| project_root | No | Root directory of the repository to analyze (default: current directory). | . |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly/idempotent/openWorld=false/destructive=false, but the description adds real context beyond that: it clarifies nothing is written even though it 'generates' a document, that output is deterministic offline AST analysis, that runtime is <1s with zero credentials, and that it degrades to offline AST mapping if the AI provider is unreachable. That fallback behavior is not derivable from annotations or schema and materially affects how an agent should call it.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The opening sentence is strongly front-loaded and carries the disambiguation, and the behavior/usage sections are scannable. There is mild redundancy: the Parameters block duplicates the schema descriptions word-for-word, and the Returns line restates what the output schema already provides.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a three-parameter, fully-annotated, output-schema-backed tool, nothing an agent needs is missing: what it produces, what it will not do (write files), cost/latency profile, credential requirements, failure mode, and sibling routing are all present.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so all three parameters are already fully documented in the schema, and the description's parameter block largely restates those same strings verbatim. The one nuance added (offline determinism tied to use_ai=False) is behavioral rather than semantic, so baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The first sentence states a specific verb (Generates) and a concrete artifact (ARCHITECTURE.md) with its contents: Mermaid topology diagrams, layer boundaries, module hierarchies. It then explicitly contrasts with the two nearest siblings by naming what each does instead, so an agent can disambiguate without opening a schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides an explicit 'When to use' (onboarding docs, RFC review) and a 'When NOT to use' that names both alternative tools and their distinct jobs (enforce_architecture_rules for rule compliance, analyze_code_dependencies for raw dependency/call-chain data). This is textbook when/when-not/alternatives routing.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
manage_architecture_rulesADestructiveIdempotent
Manages the complete lifecycle of architectural boundary definitions, tier rules (T-1 to T-4), and layer constraints configured in tzero.rules.json, distinguishing from 'enforce_architecture_rules' and 'generate_architecture_blueprint' by adding, updating, resetting, or deleting boundary definitions on disk rather than validating files or drawing diagrams.
Parameters:
action(str, optional, default='query'): Rule lifecycle action: 'query' to inspect active rules, 'update' to add or modify rules, 'delete' to remove a rule, 'reset' to restore defaults.project_root(str, optional, default='.'): Target repository root where tzero.rules.json is located (default: current directory).rule_name(str, optional, default=''): Name or identifier of the rule to update or delete when action is 'update' or 'delete'.rule_definition(str, optional, default=''): JSON string or markdown specification of the rule to set when action is 'update'.
Behavior:
State-Modifying / Destructive: Queries existing rules or updates/deletes layer boundary specifications on disk when action is 'update', 'delete', or 'reset'.
Idempotent: Repeated queries or sets with identical values produce stable configurations.
100% Offline: Local JSON file management without external communication.
Auth & Rate Limits: Zero authentication or cloud credentials required; executes in <20ms.
Error Handling: Validates JSON syntax before writing; emits descriptive error messages on malformed rule definitions.
Usage Guidelines:
When to use: Retrieve, inspect, add, update, reset, or delete architectural layer constraints (e.g. presentation -> domain -> persistence rules).
When NOT to use: Do not use for actively validating codebase files against these rules (use 'enforce_architecture_rules' instead); do not use for generating visual Mermaid architectural topology diagrams (use 'generate_architecture_blueprint' instead).
Returns: JSON or Markdown status report detailing active or updated architectural rules.
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Rule lifecycle action: 'query' to inspect active rules, 'update' to add or modify rules, 'delete' to remove a rule, 'reset' to restore defaults. | query |
| rule_name | No | Name or identifier of the rule to update or delete when action is 'update' or 'delete'. | |
| project_root | No | Target repository root where tzero.rules.json is located (default: current directory). | . |
| rule_definition | No | JSON string or markdown specification of the rule to set when action is 'update'. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds valuable context beyond them: state-modifying behavior on disk, which actions are destructive, 100% offline operation, no auth/rate limits, sub-20ms execution, and JSON validation before writing. It discloses what is altered and under which actions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is structured and front-loaded with purpose, alternatives, parameters, behavior, and return shape. It is somewhat long and repeats schema parameter descriptions, but the information is relevant and organized.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity, the annotations covering safety profile, the fully described schema, and an output schema, the description is complete. It provides enough behavioral and usage context for correct invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all four parameters. The description repeats the same parameter details with little additional semantics beyond echoing the schema, which meets the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: it manages the lifecycle of architectural boundary definitions, tier rules, and layer constraints in tzero.rules.json. It explicitly distinguishes itself from 'enforce_architecture_rules' and 'generate_architecture_blueprint' by describing its disk-mutating role versus validation and diagram generation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It gives explicit 'When to use' and 'When NOT to use' guidance, naming alternatives and the conditions that select them. The agent does not need to infer whether to choose this tool or a sibling.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
manage_memory_storeADestructive
Manages the complete lifecycle of persistent agent semantic memory stores, including compression, consolidation, export, listing, reset, and deletion, distinguishing from 'query_memory_store' and 'prune_code_snippet' by storing, compressing, and purging episodic memories rather than querying relations or pruning source code.
Parameters:
operation(str, optional, default='list'): Memory lifecycle operation: 'list' to show active memory stores, 'compress' to encode text into semantic triples, 'decompress' to decode memory code, 'consolidate' to merge memory, 'export' to dump graph, 'reset' to clear all memory, 'delete' to remove a specific store.content(str, optional, default=''): Text document or knowledge content to compress or store when operation is 'compress'.store_name(str, optional, default='default'): Identifier of the target memory store to manage.project_root(str, optional, default='.'): Workspace root where memory stores are managed (default: current directory).
Behavior:
State-Modifying / Destructive: Consolidates or updates local memory state; 'reset' and 'delete' operations remove stored memory data from disk.
Non-idempotent for state modifications; idempotent for 'list' and 'export'.
100% Offline: Fully local storage management without external synchronization.
Auth & Rate Limits: Zero authentication or credentials required; completes in <50ms.
Error Handling: Validates operation parameter and returns clear error for unrecognized modes.
Usage Guidelines:
When to use: Store new semantic knowledge, consolidate episodic memories, export knowledge graphs to JSON/HTML, list active memory stores, or clear/reset agent memories.
When NOT to use: Do not use for querying existing knowledge triples or causal chains from memory (use 'query_memory_store' instead); do not use for pruning source code snippets or diff streams (use 'prune_code_snippet' instead).
Returns: Status report confirming memory consolidation, export file path, list of active memory stores, or confirmation of reset/deletion.
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Text document or knowledge content to compress or store when operation is 'compress'. | |
| operation | No | Memory lifecycle operation: 'list' to show active memory stores, 'compress' to encode text into semantic triples, 'consolidate' to merge memory, 'export' to dump graph, 'reset' to clear all memory, 'delete' to remove a specific store. | list |
| store_name | No | Identifier of the target memory store to manage. | default |
| project_root | No | Workspace root where memory stores are managed (default: current directory). | . |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond the annotations, the description discloses which operations destroy on-disk data ('reset' and 'delete' remove stored memory data from disk), the idempotency split per operation, zero auth, sub-50ms latency, and error handling for unrecognized modes. The only weakness is that the tool-level idempotency statement is coarser than the per-operation reality, and no warning is given that 'reset' is irreversible/unscoped.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded and well-sectioned with headers, but the Parameters block duplicates the 100%-covered schema verbatim and adds bulk without value, and the opening sentence is a long run-on. Roughly a third of the text is redundant given the structured fields.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a destructive, multi-mode lifecycle tool the description covers operations, destructive semantics, auth, latency, errors, and alternatives; an output schema exists so the brief Returns line is sufficient. The one gap is the operation-vocabulary mismatch ('decompress') between description and schema, leaving the exact valid mode set ambiguous.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the description's parameter block largely restates what is already structured. It does add the 7-value operation vocabulary, but it lists a 'decompress' operation that is absent from the schema's own operation description, creating an inconsistency an agent could trip on rather than added clarity.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific verb+resource ('Manages the complete lifecycle of persistent agent semantic memory stores') and enumerates the concrete operations (compress, consolidate, export, list, reset, delete). It explicitly distinguishes itself from query_memory_store and prune_code_snippet, so an agent can route correctly 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.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Dedicated 'When to use' and 'When NOT to use' sections name the exact sibling alternatives and the conditions that select them ('querying existing knowledge triples or causal chains' → query_memory_store; 'pruning source code snippets' → prune_code_snippet). Both positive and negative routing is covered.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
orchestrate_agent_swarmA
Coordinates autonomous multi-agent task execution, goal decomposition, Byzantine fault-tolerant (PBFT) consensus voting, and self-healing error recovery, distinguishing from 'manage_memory_store' and 'audit_code_quality' by dispatching autonomous multi-agent workflows rather than managing memory stores or auditing code quality.
Parameters:
goal(str, required): High-level goal description, swarm proposal, or failing test traceback to heal.orchestration_mode(str, optional, default='goal_execute'): Orchestration mode: 'goal_execute' for autonomous goal planning and execution, 'swarm_consensus' for Byzantine fault-tolerant voting, 'self_healing' for AST error diagnosis and automated patching.agents(str, optional, default=''): Comma-separated list of agent roles participating in swarm execution (e.g. 'architect,coder,tester').project_root(str, optional, default='.'): Workspace root for swarm execution (default: current directory).
Behavior:
State execution: Dispatches sub-tasks, coordinates consensus rounds, and executes self-healing patches.
Non-idempotent: Execution results reflect dynamic agent responses and patch attempts.
100% Offline: Executes deterministic local multi-agent workflows without unverified cloud relays.
Auth & Rate Limits: Zero credentials or external blockchain relays required; completes in <100ms.
Error Handling: Quorum isolation automatically detects and neutralizes Byzantine faults.
Usage Guidelines:
When to use: Execute high-level complex coding goals across multi-agent swarms, validate proposals via Byzantine consensus voting (3f+1 quorum), or diagnose and heal test failures.
When NOT to use: Do not use for querying or managing long-term agent memory (use 'query_memory_store' and 'manage_memory_store' instead); do not use for auditing codebase quality before task execution (use 'audit_code_quality' instead).
Returns: Orchestration summary with phased execution plan, agent task allocations, consensus voting tallies, or self-healing patch results.
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | High-level goal description, swarm proposal, or failing test traceback to heal. | |
| agents | No | Comma-separated list of agent roles participating in swarm execution (e.g. 'architect,coder,tester'). | |
| project_root | No | Workspace root for swarm execution (default: current directory). | . |
| orchestration_mode | No | Orchestration mode: 'goal_execute' for autonomous goal planning and execution, 'swarm_consensus' for Byzantine fault-tolerant voting, 'self_healing' for AST error diagnosis and automated patching. | goal_execute |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Adds real context beyond the annotations: non-idempotent mutation, fully offline execution, no credentials/relay, sub-100ms completion, and quorum-isolation error handling. However, 'Non-idempotent' and 'Offline' largely restate idempotentHint=false and openWorldHint=false, so part of the disclosure duplicates structured data rather than extending it.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Sectioned with headers and front-loaded with purpose, but there is wasted space: the sibling differentiation appears both in the opening paragraph and again in 'When NOT to use', and the four-bullet parameter list is a verbatim copy of the schema. Marketing-style claims ('100% Offline', '<100ms') pad the behavior block.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a complex, non-idempotent, multi-mode orchestration tool, the definition covers mode selection, agent role input, auth/rate-limit posture, error handling, and a returns summary. An output schema exists, so detailed return structure need not be spelled out, and the remaining guidance is sufficient to call it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the schema already documents all four parameters; the description's parameter block repeats the schema text almost verbatim, including the orchestration_mode value list. Baseline 3 applies since the schema does the heavy lifting and the description adds no syntax, constraints, or interaction rules.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb set (coordinates, decomposes goals, runs PBFT consensus, self-heals) over a named resource (multi-agent swarm), and explicitly names the sibling tools it is not. An agent can pick this out from query_memory_store or audit_code_quality on name alone.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides explicit 'When to use' conditions (complex coding goals, consensus validation with 3f+1 quorum, test-failure healing) and a 'When NOT to use' section that routes to query_memory_store, manage_memory_store, and audit_code_quality by name. No inference required.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
prune_code_snippetARead-onlyIdempotent
Prunes implementation bodies from in-memory code snippets, API schemas, or unified diff streams while preserving AST interfaces, type annotations, and function signatures, distinguishing from 'build_project_context' and 'audit_code_quality' by stripping function bodies in memory rather than scanning repository file trees or auditing code quality.
Parameters:
code(str, required): Raw source code, schema definition (JSON/YAML), or unified diff text to compress.file_name_or_lang(str, optional, default='snippet.py'): File name or language extension (e.g. 'service.ts', '.go', '.rs', 'schema.json') to select appropriate AST parser.reduction_mode(str, optional, default='ultra'): AST reduction level: 'ultra' for signatures only, 'balanced' for signatures + control structures, 'micro_patch' for surgical unified diff pruning.
Behavior:
Read-only: Processes in-memory text buffers without touching disk files.
Idempotent: Deterministic AST reduction for identical code inputs.
100% Offline: Local AST and regex parsers for Python, TypeScript, Go, Rust, Java, C#, C++, SQL, JSON, YAML.
Auth & Rate Limits: Zero authentication or credentials required; execution latency <10ms.
Error Handling: Gracefully falls back to regex line pruning if parser encounters malformed syntax.
Usage Guidelines:
When to use: Compress raw code strings, function definitions, SQL queries, or diff patches before embedding them in an LLM prompt to achieve 80-95% token savings.
When NOT to use: Do not use for scanning full repository files or building hierarchical project context from disk (use 'build_project_context' instead); do not use for detecting code duplication across modules (use 'audit_code_quality' instead).
Returns: Compact code snippet retaining only structural signatures, interfaces, and docstrings.
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Raw source code, schema definition (JSON/YAML), or unified diff text to compress. | |
| reduction_mode | No | AST reduction level: 'ultra' for signatures only, 'balanced' for signatures + control structures, 'micro_patch' for surgical unified diff pruning. | ultra |
| file_name_or_lang | No | File name or language extension (e.g. 'service.ts', '.go', '.rs', 'schema.json') to select appropriate AST parser. | snippet.py |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description partly repeats those (Read-only, Idempotent, 100% Offline). It earns credit for genuinely new behavior: zero-auth requirement, <10ms latency, supported language list, and graceful regex fallback on malformed syntax — the fallback being the most decision-relevant detail an agent cannot get from annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Content is well-sectioned (Parameters / Behavior / Usage / Returns), but the opening sentence is a single cramped run-on that front-loads sibling differentiation awkwardly. Several lines (Read-only, Idempotent) restate annotations and the 'Returns' line duplicates the output schema, so not every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 3-parameter transform tool, everything needed to invoke it correctly is present: input kinds, parser selection, reduction levels, fallback behavior. The explicit 'Returns' section is redundant given an output schema exists, and mode-selection guidance for mixed inputs is thin.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3. The description's parameter entries are near-verbatim copies of the schema descriptions and add no format, constraint, or interaction detail beyond them (e.g. no guidance on how reduction_mode interacts with file_name_or_lang for diff inputs).
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource (prune implementation bodies from code snippets/schemas/diffs) plus the invariant it preserves (AST interfaces, signatures). It explicitly contrasts with 'build_project_context' and 'audit_code_quality', so an agent can separate it from siblings without opening any schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides an explicit 'When to use' (compress code strings/diffs before LLM embedding for 80-95% token savings) and a 'When NOT to use' that names both alternative tools and the conditions selecting them. Both positive and negative routing are covered.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
query_memory_storeARead-onlyIdempotent
Queries semantic triples, causal reasoning graphs, and MinHash entity clusters from the local agent memory store, distinguishing from 'manage_memory_store' and 'search_codebase' by retrieving episodic reasoning relations rather than modifying memory records or searching repository code.
Parameters:
query(str, required): Entity name, concept, or search query to look up in the memory store.query_mode(str, optional, default='semantic'): Query strategy: 'semantic' for triple & relation lookup, 'causal_chain' for temporal cause-and-effect traces, 'minhash' for sub-microsecond entity similarity clusters.project_root(str, optional, default='.'): Workspace root where memory store is located (default: current directory).
Behavior:
Read-only: Queries persistent memory store without altering stored knowledge.
Idempotent: Returns consistent knowledge relations for identical queries.
100% Offline: Local graph and MinHash index lookup without network traffic.
Auth & Rate Limits: Zero authentication or cloud credentials required; query latency <10ms.
Error Handling: Returns empty graph notice if the queried entity does not exist in the codebook.
Usage Guidelines:
When to use: Recall past agent decisions, query knowledge graph entity relations, or trace causal dependency chains across reasoning sessions.
When NOT to use: Do not use for modifying, compressing, or deleting memory stores (use 'manage_memory_store' instead); do not use for searching source code in the repository (use 'search_codebase' instead).
Returns: Markdown report with extracted semantic triples, graph relationships, or causal inference chains.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Entity name, concept, or search query to look up in the memory store. | |
| query_mode | No | Query strategy: 'semantic' for triple & relation lookup, 'causal_chain' for temporal cause-and-effect traces, 'minhash' for sub-microsecond entity similarity clusters. | semantic |
| project_root | No | Workspace root where memory store is located (default: current directory). | . |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare read-only, idempotent, closed-world, non-destructive, but the description adds genuine context beyond them: offline operation, zero auth/cloud credentials, <10ms latency, and the empty-graph error behavior for missing entities. That is substantive disclosure an agent cannot get from the annotations alone.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with purpose and sibling differentiation, then segmented into Behavior, Usage Guidelines, and Returns. Slightly long because the Behavior bullets partially echo the annotations (read-only, idempotent), but overall efficient and well organized.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 3-param read-only query tool with full schema coverage, annotations, and an output schema, the description covers scope, alternatives, safety, latency, offline behavior, and error semantics. Nothing an agent needs to call it correctly is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so all three parameters are already documented, and the description's parameter list largely restates the schema text including defaults and mode meanings. Baseline 3 applies since the schema does the heavy lifting and the description adds little beyond it.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (queries) and specific resources (semantic triples, causal reasoning graphs, MinHash entity clusters) and explicitly distinguishes itself from 'manage_memory_store' and 'search_codebase'. An agent can route to it without opening a schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides an explicit 'When to use' list and a 'When NOT to use' list that names both alternatives and the conditions selecting them. 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.
search_codebaseARead-onlyIdempotent
Executes private local hybrid search combining BM25 keyword matching and TF-IDF semantic scoring across repository functions, classes, and docstrings, distinguishing from 'query_memory_store' and 'build_project_context' by indexing source code identifiers and docstrings rather than querying agent episodic memory or generating context trees.
Parameters:
query(str, required): Search term or natural language description of the code to locate.project_root(str, optional, default='.'): Root directory of the repository to search (default: current directory).top_k(int, optional, default=5): Maximum number of ranked results to return (default: 5).
Behavior:
Read-only: Queries local code files without writing to disk or modifying indices.
Idempotent: Deterministic ranked results for identical queries on the same codebase.
100% Offline: Executes entirely on CPU; no OpenAI/cloud embeddings, zero network egress.
Auth & Rate Limits: Zero authentication or credentials required; sub-millisecond query latency.
Error Handling: Returns empty match report with query suggestions if no relevant tokens are found.
Usage Guidelines:
When to use: Locate relevant functions, classes, or code implementations across the repository using natural language or code identifier queries.
When NOT to use: Do not use for querying persistent semantic knowledge graphs or agent memory triples (use 'query_memory_store' instead); do not use for generating full project context trees (use 'build_project_context' instead).
Returns: Ranked list of matching code snippets with file paths, line ranges, relevance scores, and matched symbol definitions.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search term or natural language description of the code to locate. | |
| top_k | No | Maximum number of ranked results to return (default: 5). | |
| project_root | No | Root directory of the repository to search (default: current directory). | . |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly, idempotent, and non-destructive, so the description's restatement of those traits adds little. However, it goes beyond annotations with genuinely new context: fully offline/CPU-only execution, zero network egress, zero auth, sub-millisecond latency, and an explicit error-handling path returning an empty report with suggestions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Well front-loaded with the core purpose first, then structured sections for parameters, behavior, usage, and returns. Slightly verbose where it repeats annotation-backed traits (read-only, idempotent) and the return shape already covered by the output schema.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a search tool with an output schema and full annotation coverage, the definition is complete: purpose, retrieval mechanism, alternatives, failure mode, and performance profile are all present. An agent has everything needed to select and call it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% and the description's parameter list restates the schema text near-verbatim, adding no syntax, format, or behavioral nuance beyond what the schema already provides. Baseline 3 is appropriate when the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (hybrid search combining BM25 + TF-IDF) and resource (repository functions, classes, docstrings), and immediately distinguishes itself from 'query_memory_store' and 'build_project_context' by what it indexes. An agent can identify 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.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides explicit 'When to use' and 'When NOT to use' sections, naming the exact alternatives (query_memory_store, build_project_context) and the conditions that select them. 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.
verify_security_guardAIdempotent
Scans workspace files and code buffers for hardcoded secrets and API keys, or installs the automated git pre-commit zero-leak security guard, distinguishing from 'audit_code_quality' and 'enforce_architecture_rules' by identifying high-entropy credentials and git hooks rather than checking code complexity or enforcing layer rules.
Parameters:
action(str, optional, default='scan'): Security action: 'scan' to inspect files or content for secret leaks, 'install_pre_commit' to install the automated git zero-leak hook.project_root(str, optional, default='.'): Target repository root to scan or install hook into (default: current directory).content(str, optional, default=''): Optional raw text string to scan for secrets in memory without scanning disk files.
Behavior:
Read-only when action is 'scan'; installs hook file when action is 'install_pre_commit'.
Idempotent: Scans produce identical results; hook installation is idempotent.
100% Offline: Zero data transmission; all entropy and pattern checks execute locally.
Auth & Rate Limits: Zero authentication or cloud credentials required; runs in <50ms.
Error Handling: Reports exact line numbers and entropy score when secrets are detected.
Usage Guidelines:
When to use: Ensure zero confidential credentials (OpenAI, Anthropic, Gemini, GitHub tokens, private keys) are exposed in code before committing or sharing context.
When NOT to use: Do not use for general code quality, cyclomatic complexity, and duplicate code scans (use 'audit_code_quality' instead); do not use for enforcing layer boundary architecture rules (use 'enforce_architecture_rules' instead).
Returns: Security audit report showing 100% Zero-Leak certification or list of detected secret leaks with line numbers, or hook installation confirmation.
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Security action: 'scan' to inspect files or content for secret leaks, 'install_pre_commit' to install the automated git zero-leak hook. | scan |
| content | No | Optional raw text string to scan for secrets in memory without scanning disk files. | |
| project_root | No | Target repository root to scan or install hook into (default: current directory). | . |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Goes well beyond the annotations: it discloses the conditional write behavior (read-only under 'scan', writes a hook file under 'install_pre_commit'), that everything runs fully offline with zero data transmission, zero auth requirements, and sub-50ms latency, plus what errors report. This usefully reconciles readOnlyHint=false with the read-only scan mode rather than contradicting it. Only omission is what exactly gets written/where the hook lands.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with purpose and sibling differentiation, then cleanly sectioned into Parameters, Behavior, Guidelines, and Returns. It is on the long side and the parameter block duplicates schema text nearly verbatim, which is the only wasted space.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Annotations cover safety hints and an output schema exists, so the description needn't explain return values beyond its summary line. It still supplies the operational context an agent needs: offline execution, idempotency, conditional mutation, and error reporting with line numbers and entropy scores.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all three parameters, and the description's parameter list largely restates those same strings. It adds only minor value ('default: current directory', explicit default for content). Baseline 3 is correct since the schema carries the load.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The opening sentence names specific verbs and resources ('scans workspace files and code buffers for hardcoded secrets and API keys', 'installs the automated git pre-commit zero-leak security guard') and explicitly contrasts the mechanism against two named siblings (entropy credentials and git hooks vs. complexity or layer rules). An agent can distinguish it from audit_code_quality and enforce_architecture_rules without opening any schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Dedicated 'When to use' and 'When NOT to use' sections give the trigger condition (before committing or sharing context) and route each exclusion to a named alternative tool. There is no ambiguity about which sibling to pick for quality scans or architecture enforcement.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v7.3.4- Added
execute_codebase_workflow
57 tool updates
v7.3.2- Changed
analyze_change_impact5 fields changed- added
Input schema / properties / file_pathAdded value: +{ + "default": "", + "description": "Optional file path where the target symbol is defined.", + "title": "File Path", + "type": "string" +} - changed
Input schema / properties / project_root / descriptionPrevious value: -"Workspace root directory containing target symbols (default: current directory)."New value: +"Root directory of the repository (default: current directory)." - changed
Input schema / properties / target_symbol / descriptionPrevious value: -"Name of the function, class, or method to analyze for change blast radius."New value: +"Name of the function, class, or method being modified or refactored." - changed
Input schema / titlePrevious value: -"_legacy_analyze_change_impactArguments"New value: +"analyze_change_impactArguments" - changed
Output schema / titlePrevious value: -"_legacy_analyze_change_impactOutput"New value: +"analyze_change_impactOutput"
- Added
analyze_code_dependencies - Added
audit_code_quality - Removed
audit_codebase_quality - Added
build_project_context - Removed
compress_stream_tokens - Removed
enforce_architecture_boundaries - Added
enforce_architecture_rules - Changed
estimate_token_cost7 fields changed- added
Input schema / properties / export_agent_rulesAdded value: +{ + "default": "", + "description": "Optional format to export agent rules: 'cursorrules', 'clinerules', 'markdown', or empty for cost estimation only.", + "title": "Export Agent Rules", + "type": "string" +} - changed
Input schema / properties / project_root / descriptionPrevious value: -"Project directory to scan if text is empty (default: current directory)."New value: +"Root directory of the repository to calculate workspace ROI savings for." - removed
Input schema / properties / reduction_modeRemoved value: -{ - "default": "ultra", - "description": "Reduction tier ('ultra', 'balanced', 'none') applied when scanning project_root.", - "title": "Reduction Mode", - "type": "string" -} - changed
Input schema / properties / text / descriptionPrevious value: -"Optional raw text to estimate. If empty, analyzes context generated from project_root."New value: +"Raw text string to count tokens and calculate cost for." - added
Input schema / properties / tokensAdded value: +{ + "default": 0, + "description": "Optional raw token count to calculate cost directly.", + "title": "Tokens", + "type": "integer" +} - changed
Input schema / titlePrevious value: -"_legacy_estimate_token_costArguments"New value: +"estimate_token_costArguments" - changed
Output schema / titlePrevious value: -"_legacy_estimate_token_costOutput"New value: +"estimate_token_costOutput"
- Removed
export_agent_rules - Removed
find_code_duplicity - Removed
find_dead_code - Changed
generate_architecture_blueprint5 fields changed- changed
Input schema / properties / model / descriptionPrevious value: -"Optional model identifier override (e.g. 'deepseek-v4.1-flash', 'gpt-4o') when use_ai is True (default: '')."New value: +"Optional model identifier override when use_ai is True." - changed
Input schema / properties / project_root / descriptionPrevious value: -"Repository root directory to inspect (default: '.')."New value: +"Root directory of the repository to analyze (default: current directory)." - changed
Input schema / properties / use_ai / descriptionPrevious value: -"When True, supplements deterministic AST topology with local zero-cost AI architectural insights (default: False)."New value: +"When True, uses configured AI provider to synthesize deep narrative; when False (default), runs 100% offline AST analysis." - changed
Input schema / titlePrevious value: -"_legacy_generate_architecture_blueprintArguments"New value: +"generate_architecture_blueprintArguments" - changed
Output schema / titlePrevious value: -"_legacy_generate_architecture_blueprintOutput"New value: +"generate_architecture_blueprintOutput"
- Removed
generate_repo_map - Removed
generate_smart_micro_patch - Removed
generate_zero_waste_prompt_context - Removed
get_incremental_diff_context - Removed
get_project_context_tree - Removed
get_smart_skeleton_context - Removed
get_token_savings_metrics - Removed
install_git_security_guard - Removed
jarvis_bft_swarm_consensus - Removed
jarvis_causal_chain_query - Removed
jarvis_compress_document - Removed
jarvis_compress_semantic_memory - Removed
jarvis_consolidate_memory - Removed
jarvis_decompress_semantic_memory - Removed
jarvis_export_graph_visualization - Removed
jarvis_export_memory_store - Removed
jarvis_hybrid_search - Removed
jarvis_latent_press_compress - Removed
jarvis_minhash_similarity - Removed
jarvis_orchestrate_goal - Removed
jarvis_query_knowledge_graph - Removed
jarvis_self_healing_execute - Removed
jarvis_swarm_orchestrate - Removed
jarvis_zero_key_query - Added
manage_architecture_rules - Added
manage_memory_store - Added
orchestrate_agent_swarm - Changed
prune_code_snippet6 fields changed- changed
Input schema / properties / code / descriptionPrevious value: -"Raw source code content to prune."New value: +"Raw source code, schema definition (JSON/YAML), or unified diff text to compress." - added
Input schema / properties / file_name_or_langAdded value: +{ + "default": "snippet.py", + "description": "File name or language extension (e.g. 'service.ts', '.go', '.rs', 'schema.json') to select appropriate AST parser.", + "title": "File Name Or Lang", + "type": "string" +} - removed
Input schema / properties / file_path_or_extRemoved value: -{ - "default": "snippet.py", - "description": "File name or extension (e.g. 'service.ts', 'main.go', 'app.py', '.rs', '.java', '.cs', '.kt', '.swift') indicating language parser.", - "title": "File Path Or Ext", - "type": "string" -} - changed
Input schema / properties / reduction_mode / descriptionPrevious value: -"Reduction tier: 'ultra' for AST signatures only (80-95% reduction), 'balanced' for signatures + control flow."New value: +"AST reduction level: 'ultra' for signatures only, 'balanced' for signatures + control structures, 'micro_patch' for surgical unified diff pruning." - changed
Input schema / titlePrevious value: -"_legacy_prune_code_snippetArguments"New value: +"prune_code_snippetArguments" - changed
Output schema / titlePrevious value: -"_legacy_prune_code_snippetOutput"New value: +"prune_code_snippetOutput"
- Removed
prune_schema_definition - Removed
query_architecture_boundaries - Added
query_memory_store - Removed
query_module_dependencies - Removed
rank_repository_pagerank - Added
search_codebase - Removed
search_codebase_semantic - Removed
superdesign_extract_system - Removed
superdesign_gallery - Removed
superdesign_generate - Removed
superdesign_iterate - Removed
superdesign_list - Removed
trace_symbol_call_chain - Removed
verify_hallucination_guard - Added
verify_security_guard - Removed
verify_zero_leak_security
21 tool updates
v7.3.1- Changed
compress_stream_tokens3 fields changed- changed
Input schema / properties / content / descriptionPrevious value: -"Raw code, diff, SQL, or manifest text to compress."New value: +"Streaming text, log chunk, or partial code buffer to compress." - changed
Input schema / properties / filename_hint / descriptionPrevious value: -"Optional filename or extension hint (e.g. 'app.py', 'schema.sql', 'patch.diff')."New value: +"Optional filename or extension hint (e.g. 'app.py', 'schema.sql', 'patch.diff') to optimize AST reduction (default: '')." - changed
Input schema / properties / tier / descriptionPrevious value: -"Compression tier: 'T-3' (AST Signatures), 'T-4' (Agent Rules), 'T-2' (Light)."New value: +"Compression tier ('T-3' for AST signatures, 'T-2' for light structure, 'T-4' for agent rules) (default: 'T-3')."
- Changed
find_code_duplicity2 fields changed- changed
Input schema / properties / min_lines / descriptionPrevious value: -"Minimum identical consecutive lines to classify as a duplicate block (default: 6)."New value: +"Minimum consecutive identical code lines required to flag a duplicate block (default: 6)." - changed
Input schema / properties / project_root / descriptionPrevious value: -"Root directory of the repository to scan (default: current directory)."New value: +"Repository root directory to scan (default: '.')."
- Changed
generate_architecture_blueprint3 fields changed- changed
Input schema / properties / model / descriptionPrevious value: -"Optional model identifier override (e.g. 'deepseek-v4.1-flash', 'gpt-4o') when use_ai is True."New value: +"Optional model identifier override (e.g. 'deepseek-v4.1-flash', 'gpt-4o') when use_ai is True (default: '')." - changed
Input schema / properties / project_root / descriptionPrevious value: -"Root directory of the repository to analyze and document (default: current directory)."New value: +"Repository root directory to inspect (default: '.')." - changed
Input schema / properties / use_ai / descriptionPrevious value: -"When True, uses configured 3rd-party AI or Free AI Cloud to synthesize deep architecture analysis; when False (default), runs 100% offline AST analysis."New value: +"When True, supplements deterministic AST topology with local zero-cost AI architectural insights (default: False)."
- Changed
generate_repo_map2 fields changed- changed
Input schema / properties / max_tokens / descriptionPrevious value: -"Maximum token budget for the repo map (default: 4000)."New value: +"Maximum token ceiling for the returned symbol map (default: 4000)." - changed
Input schema / properties / project_root / descriptionPrevious value: -"Root directory of the repository to map (default: current directory)."New value: +"Target repository root directory to scan (default: '.')."
- Changed
generate_smart_micro_patch2 fields changed- changed
Input schema / properties / diff_content / descriptionPrevious value: -"Raw git diff or unified diff text."New value: +"Raw unified diff text (e.g. git diff output) to compress." - changed
Input schema / properties / max_context_lines / descriptionPrevious value: -"Maximum surrounding context lines to retain per hunk (default: 1)."New value: +"Maximum unchanged context lines to keep around hunk modifications (default: 1)."
- Changed
generate_zero_waste_prompt_context2 fields changed- changed
Input schema / properties / entrypoints / descriptionPrevious value: -"List of entrypoint files (e.g. ['main.py', 'app.py']). If empty, auto-detects."New value: +"List of entrypoint filenames (e.g. ['main.py', 'app.py']). If omitted or null, entrypoints are auto-detected." - changed
Input schema / properties / target_dir / descriptionPrevious value: -"Target workspace root directory."New value: +"Target repository root directory (default: '.')."
- Changed
get_token_savings_metrics1 field changed- changed
Input schema / properties / project_root / descriptionPrevious value: -"Target workspace directory to measure (default: current directory)."New value: +"Target workspace directory to measure (default: '.')."
- Changed
install_git_security_guard1 field changed- changed
Input schema / properties / repo_dir / descriptionPrevious value: -"Target git repository directory (default: current working directory)."New value: +"Target git repository root directory where the pre-commit hook will be installed (default: '.')."
- Changed
jarvis_bft_swarm_consensus2 fields changed- changed
Input schema / properties / context / descriptionPrevious value: -"Optional context or environment logs"New value: +"Supporting architectural context, risk parameters, or verification constraints (default: '')." - changed
Input schema / properties / mission_goal / descriptionPrevious value: -"Mission, action, or code patch to evaluate"New value: +"Action, refactoring plan, or critical decision requiring swarm consensus."
- Changed
jarvis_causal_chain_query2 fields changed- changed
Input schema / properties / query_type / descriptionPrevious value: -"Type: 'root_causes', 'effect_chain', 'rollback_order', or 'timeline'."New value: +"Analysis mode: 'root_causes' (backward causal trace), 'effect_chain' (downstream consequence chain), 'rollback_order' (safe rollback sequence), or 'timeline' (chronological event history) (default: 'root_causes')." - changed
Input schema / properties / target_node_id / descriptionPrevious value: -"Target node ID to analyze (e.g. error, event)."New value: +"Incident identifier, bug description, or symbol name to trace root cause for."
- Changed
jarvis_compress_document1 field changed- changed
Input schema / properties / document_text / descriptionPrevious value: -"Large multi-paragraph technical document or log text to compress."New value: +"Full text of technical documentation, README, or article to compress."
- Changed
jarvis_consolidate_memory1 field changed- changed
Input schema / properties / action / descriptionPrevious value: -"'consolidate' to run cycle, or 'summary' for status."New value: +"Consolidation mode: 'consolidate' (runs compaction cycle) or 'summary' (reports consolidation status) (default: 'consolidate')."
- Changed
jarvis_export_graph_visualization1 field changed- changed
Input schema / properties / output_path / descriptionPrevious value: -"Optional target HTML file path. Defaults to 'tzero_graph_hud.html'."New value: +"Destination file path for the generated HTML visualizer (default: '' uses 'tzero_graph_hud.html')."
- Changed
jarvis_export_memory_store2 fields changed- changed
Input schema / properties / action / descriptionPrevious value: -"Action to perform: 'save' or 'load'."New value: +"Action to perform: 'save' (export to disk) or 'load' (import from disk) (default: 'save')." - changed
Input schema / properties / file_path / descriptionPrevious value: -"Optional custom file path for storage."New value: +"Optional custom JSON file path (default: '' uses 'tzero_memory_store.json')."
- Changed
jarvis_hybrid_search3 fields changed- changed
Input schema / properties / domain / descriptionPrevious value: -"Optional domain filter (HARDWARE, PROTOCOL, SOFTWARE, etc.)."New value: +"Optional domain filter ('HARDWARE', 'PROTOCOL', 'SOFTWARE', etc., default: '' searches all domains)." - changed
Input schema / properties / query / descriptionPrevious value: -"Search terms, concepts, or discrete codes like '#8421'."New value: +"Search query, question, or code pattern to locate." - changed
Input schema / properties / top_k / descriptionPrevious value: -"Maximum number of results to return."New value: +"Maximum number of ranked results to return (default: 10)."
- Changed
jarvis_latent_press_compress2 fields changed- changed
Input schema / properties / context_text / descriptionPrevious value: -"Long context, logs, or code to compress"New value: +"Long text or documentation string to compress before feeding to LLM." - changed
Input schema / properties / near_dup_threshold / descriptionPrevious value: -"Near-duplicate threshold for pruning"New value: +"Similarity threshold (0.0 to 1.0) for collapsing redundant sentences."
- Changed
jarvis_minhash_similarity3 fields changed- changed
Input schema / properties / text_a / descriptionPrevious value: -"First text or triplet description"New value: +"First text or code snippet to compare." - changed
Input schema / properties / text_b / descriptionPrevious value: -"Second text to compare against (optional). If empty, searches memory codebook."New value: +"Second text to compare against. If empty, searches memory codebook (default: '')." - changed
Input schema / properties / threshold / descriptionPrevious value: -"Jaccard similarity threshold [0.0 - 1.0]"New value: +"Minimum Jaccard similarity threshold (0.0 to 1.0) to flag as a positive match (default: 0.5)."
- Changed
jarvis_query_knowledge_graph3 fields changed- changed
Input schema / properties / entity / descriptionPrevious value: -"Specific entity filter."New value: +"Specific entity name to filter knowledge graph nodes (default: empty string)." - changed
Input schema / properties / predicate / descriptionPrevious value: -"Specific predicate / action filter."New value: +"Relationship or predicate type to filter edges, e.g. 'depends_on' (default: empty string)." - changed
Input schema / properties / query / descriptionPrevious value: -"Entity, keyword, or action to search across the knowledge graph (e.g. 'ESP32', 'test_etti', 'Kubernetes', 'Qubit')."New value: +"General natural language search term to locate in graph (default: empty string)."
- Changed
jarvis_self_healing_execute2 fields changed- changed
Input schema / properties / command / descriptionPrevious value: -"Command or script invocation to execute."New value: +"Shell command or test script to execute." - changed
Input schema / properties / max_retries / descriptionPrevious value: -"Maximum auto-patch healing attempts."New value: +"Maximum self-healing repair iterations if execution fails (default: 3)."
- Changed
jarvis_swarm_orchestrate2 fields changed- changed
Input schema / properties / context / descriptionPrevious value: -"Optional technical context or constraints."New value: +"Optional workspace context or specific constraints to guide agent execution (default: '')." - changed
Input schema / properties / mission_goal / descriptionPrevious value: -"The engineering or system goal to achieve."New value: +"High-level mission directive or engineering objective for the swarm."
- Changed
trace_symbol_call_chain3 fields changed- changed
Input schema / properties / max_depth / descriptionPrevious value: -"Maximum recursion depth for the call graph traversal (default: 3)."New value: +"Maximum recursive call graph traversal depth (default: 3)." - changed
Input schema / properties / project_root / descriptionPrevious value: -"Root directory of the repository (default: current directory)."New value: +"Root directory of the repository (default: '.')." - changed
Input schema / properties / symbol_name / descriptionPrevious value: -"Exact function or method name to trace across the codebase call graph."New value: +"Function or method identifier to trace."
5 tool updates
v7.2.0- Added
superdesign_extract_system - Added
superdesign_gallery - Added
superdesign_generate - Added
superdesign_iterate - Added
superdesign_list
52 tool updates
v7.0.1- Changed
analyze_change_impact5 fields changed- removed
Input schema / properties / file_pathRemoved value: -{ - "default": "", - "description": "Optional file path where the target symbol is defined.", - "title": "File Path", - "type": "string" -} - changed
Input schema / properties / project_root / descriptionPrevious value: -"Root directory of the repository (default: current directory)."New value: +"Workspace root directory containing target symbols (default: current directory)." - changed
Input schema / properties / target_symbol / descriptionPrevious value: -"Name of the function, class, or method being modified or refactored."New value: +"Name of the function, class, or method to analyze for change blast radius." - changed
Input schema / titlePrevious value: -"analyze_change_impactArguments"New value: +"_legacy_analyze_change_impactArguments" - changed
Output schema / titlePrevious value: -"analyze_change_impactOutput"New value: +"_legacy_analyze_change_impactOutput"
- Removed
analyze_code_dependencies - Removed
audit_code_quality - Added
audit_codebase_quality - Removed
build_project_context - Added
compress_stream_tokens - Added
enforce_architecture_boundaries - Removed
enforce_architecture_rules - Changed
estimate_token_cost7 fields changed- removed
Input schema / properties / export_agent_rulesRemoved value: -{ - "default": "", - "description": "Optional format to export agent rules: 'cursorrules', 'clinerules', 'markdown', or empty for cost estimation only.", - "title": "Export Agent Rules", - "type": "string" -} - changed
Input schema / properties / project_root / descriptionPrevious value: -"Root directory of the repository to calculate workspace ROI savings for."New value: +"Project directory to scan if text is empty (default: current directory)." - added
Input schema / properties / reduction_modeAdded value: +{ + "default": "ultra", + "description": "Reduction tier ('ultra', 'balanced', 'none') applied when scanning project_root.", + "title": "Reduction Mode", + "type": "string" +} - changed
Input schema / properties / text / descriptionPrevious value: -"Raw text string to count tokens and calculate cost for."New value: +"Optional raw text to estimate. If empty, analyzes context generated from project_root." - removed
Input schema / properties / tokensRemoved value: -{ - "default": 0, - "description": "Optional raw token count to calculate cost directly.", - "title": "Tokens", - "type": "integer" -} - changed
Input schema / titlePrevious value: -"estimate_token_costArguments"New value: +"_legacy_estimate_token_costArguments" - changed
Output schema / titlePrevious value: -"estimate_token_costOutput"New value: +"_legacy_estimate_token_costOutput"
- Added
export_agent_rules - Added
find_code_duplicity - Added
find_dead_code - Changed
generate_architecture_blueprint5 fields changed- changed
Input schema / properties / model / descriptionPrevious value: -"Optional model identifier override when use_ai is True."New value: +"Optional model identifier override (e.g. 'deepseek-v4.1-flash', 'gpt-4o') when use_ai is True." - changed
Input schema / properties / project_root / descriptionPrevious value: -"Root directory of the repository to analyze (default: current directory)."New value: +"Root directory of the repository to analyze and document (default: current directory)." - changed
Input schema / properties / use_ai / descriptionPrevious value: -"When True, uses configured AI provider to synthesize deep narrative; when False (default), runs 100% offline AST analysis."New value: +"When True, uses configured 3rd-party AI or Free AI Cloud to synthesize deep architecture analysis; when False (default), runs 100% offline AST analysis." - changed
Input schema / titlePrevious value: -"generate_architecture_blueprintArguments"New value: +"_legacy_generate_architecture_blueprintArguments" - changed
Output schema / titlePrevious value: -"generate_architecture_blueprintOutput"New value: +"_legacy_generate_architecture_blueprintOutput"
- Added
generate_repo_map - Added
generate_smart_micro_patch - Added
generate_zero_waste_prompt_context - Added
get_incremental_diff_context - Added
get_project_context_tree - Added
get_smart_skeleton_context - Added
get_token_savings_metrics - Added
install_git_security_guard - Added
jarvis_bft_swarm_consensus - Added
jarvis_causal_chain_query - Added
jarvis_compress_document - Added
jarvis_compress_semantic_memory - Added
jarvis_consolidate_memory - Added
jarvis_decompress_semantic_memory - Added
jarvis_export_graph_visualization - Added
jarvis_export_memory_store - Added
jarvis_hybrid_search - Added
jarvis_latent_press_compress - Added
jarvis_minhash_similarity - Added
jarvis_orchestrate_goal - Added
jarvis_query_knowledge_graph - Added
jarvis_self_healing_execute - Added
jarvis_swarm_orchestrate - Added
jarvis_zero_key_query - Removed
manage_architecture_rules - Removed
manage_memory_store - Removed
orchestrate_agent_swarm - Changed
prune_code_snippet6 fields changed- changed
Input schema / properties / code / descriptionPrevious value: -"Raw source code, schema definition (JSON/YAML), or unified diff text to compress."New value: +"Raw source code content to prune." - removed
Input schema / properties / file_name_or_langRemoved value: -{ - "default": "snippet.py", - "description": "File name or language extension (e.g. 'service.ts', '.go', '.rs', 'schema.json') to select appropriate AST parser.", - "title": "File Name Or Lang", - "type": "string" -} - added
Input schema / properties / file_path_or_extAdded value: +{ + "default": "snippet.py", + "description": "File name or extension (e.g. 'service.ts', 'main.go', 'app.py', '.rs', '.java', '.cs', '.kt', '.swift') indicating language parser.", + "title": "File Path Or Ext", + "type": "string" +} - changed
Input schema / properties / reduction_mode / descriptionPrevious value: -"AST reduction level: 'ultra' for signatures only, 'balanced' for signatures + control structures, 'micro_patch' for surgical unified diff pruning."New value: +"Reduction tier: 'ultra' for AST signatures only (80-95% reduction), 'balanced' for signatures + control flow." - changed
Input schema / titlePrevious value: -"prune_code_snippetArguments"New value: +"_legacy_prune_code_snippetArguments" - changed
Output schema / titlePrevious value: -"prune_code_snippetOutput"New value: +"_legacy_prune_code_snippetOutput"
- Added
prune_schema_definition - Added
query_architecture_boundaries - Removed
query_memory_store - Added
query_module_dependencies - Added
rank_repository_pagerank - Removed
search_codebase - Added
search_codebase_semantic - Added
trace_symbol_call_chain - Added
verify_hallucination_guard - Removed
verify_security_guard - Added
verify_zero_leak_security
52 tool updates
v7.0.0- Changed
analyze_change_impact3 fields changed- added
Input schema / properties / file_pathAdded value: +{ + "default": "", + "description": "Optional file path where the target symbol is defined.", + "title": "File Path", + "type": "string" +} - changed
Input schema / properties / project_root / descriptionPrevious value: -"Workspace root directory containing target symbols (default: current directory)."New value: +"Root directory of the repository (default: current directory)." - changed
Input schema / properties / target_symbol / descriptionPrevious value: -"Name of the function, class, or method to analyze for change blast radius."New value: +"Name of the function, class, or method being modified or refactored."
- Added
analyze_code_dependencies - Added
audit_code_quality - Removed
audit_codebase_quality - Added
build_project_context - Removed
compress_stream_tokens - Removed
enforce_architecture_boundaries - Added
enforce_architecture_rules - Changed
estimate_token_cost5 fields changed- added
Input schema / properties / export_agent_rulesAdded value: +{ + "default": "", + "description": "Optional format to export agent rules: 'cursorrules', 'clinerules', 'markdown', or empty for cost estimation only.", + "title": "Export Agent Rules", + "type": "string" +} - changed
Input schema / properties / project_root / descriptionPrevious value: -"Project directory to scan if text is empty (default: current directory)."New value: +"Root directory of the repository to calculate workspace ROI savings for." - removed
Input schema / properties / reduction_modeRemoved value: -{ - "default": "ultra", - "description": "Reduction tier ('ultra', 'balanced', 'none') applied when scanning project_root.", - "title": "Reduction Mode", - "type": "string" -} - changed
Input schema / properties / text / descriptionPrevious value: -"Optional raw text to estimate. If empty, analyzes context generated from project_root."New value: +"Raw text string to count tokens and calculate cost for." - added
Input schema / properties / tokensAdded value: +{ + "default": 0, + "description": "Optional raw token count to calculate cost directly.", + "title": "Tokens", + "type": "integer" +}
- Removed
export_agent_rules - Removed
find_code_duplicity - Removed
find_dead_code - Changed
generate_architecture_blueprint3 fields changed- changed
Input schema / properties / model / descriptionPrevious value: -"Optional model identifier override (e.g. 'deepseek-v4.1-flash', 'gpt-4o') when use_ai is True."New value: +"Optional model identifier override when use_ai is True." - changed
Input schema / properties / project_root / descriptionPrevious value: -"Root directory of the repository to analyze and document (default: current directory)."New value: +"Root directory of the repository to analyze (default: current directory)." - changed
Input schema / properties / use_ai / descriptionPrevious value: -"When True, uses configured 3rd-party AI or Free AI Cloud to synthesize deep architecture analysis; when False (default), runs 100% offline AST analysis."New value: +"When True, uses configured AI provider to synthesize deep narrative; when False (default), runs 100% offline AST analysis."
- Removed
generate_repo_map - Removed
generate_smart_micro_patch - Removed
generate_zero_waste_prompt_context - Removed
get_incremental_diff_context - Removed
get_project_context_tree - Removed
get_smart_skeleton_context - Removed
get_token_savings_metrics - Removed
install_git_security_guard - Removed
jarvis_bft_swarm_consensus - Removed
jarvis_causal_chain_query - Removed
jarvis_compress_document - Removed
jarvis_compress_semantic_memory - Removed
jarvis_consolidate_memory - Removed
jarvis_decompress_semantic_memory - Removed
jarvis_export_graph_visualization - Removed
jarvis_export_memory_store - Removed
jarvis_hybrid_search - Removed
jarvis_latent_press_compress - Removed
jarvis_minhash_similarity - Removed
jarvis_orchestrate_goal - Removed
jarvis_query_knowledge_graph - Removed
jarvis_self_healing_execute - Removed
jarvis_swarm_orchestrate - Removed
jarvis_zero_key_query - Added
manage_architecture_rules - Added
manage_memory_store - Added
orchestrate_agent_swarm - Changed
prune_code_snippet4 fields changed- changed
Input schema / properties / code / descriptionPrevious value: -"Raw source code content to prune."New value: +"Raw source code, schema definition (JSON/YAML), or unified diff text to compress." - added
Input schema / properties / file_name_or_langAdded value: +{ + "default": "snippet.py", + "description": "File name or language extension (e.g. 'service.ts', '.go', '.rs', 'schema.json') to select appropriate AST parser.", + "title": "File Name Or Lang", + "type": "string" +} - removed
Input schema / properties / file_path_or_extRemoved value: -{ - "default": "snippet.py", - "description": "File name or extension (e.g. 'service.ts', 'main.go', 'app.py', '.rs', '.java', '.cs', '.kt', '.swift') indicating language parser.", - "title": "File Path Or Ext", - "type": "string" -} - changed
Input schema / properties / reduction_mode / descriptionPrevious value: -"Reduction tier: 'ultra' for AST signatures only (80-95% reduction), 'balanced' for signatures + control flow."New value: +"AST reduction level: 'ultra' for signatures only, 'balanced' for signatures + control structures, 'micro_patch' for surgical unified diff pruning."
- Removed
prune_schema_definition - Removed
query_architecture_boundaries - Added
query_memory_store - Removed
query_module_dependencies - Removed
rank_repository_pagerank - Added
search_codebase - Removed
search_codebase_semantic - Removed
trace_symbol_call_chain - Removed
verify_hallucination_guard - Added
verify_security_guard - Removed
verify_zero_leak_security
21 tool updates
v6.1.0- Added
compress_stream_tokens - Added
generate_smart_micro_patch - Added
generate_zero_waste_prompt_context - Added
install_git_security_guard - Added
jarvis_bft_swarm_consensus - Added
jarvis_causal_chain_query - Added
jarvis_compress_document - Added
jarvis_compress_semantic_memory - Added
jarvis_consolidate_memory - Added
jarvis_decompress_semantic_memory - Added
jarvis_export_graph_visualization - Added
jarvis_export_memory_store - Added
jarvis_hybrid_search - Added
jarvis_latent_press_compress - Added
jarvis_minhash_similarity - Added
jarvis_orchestrate_goal - Added
jarvis_query_knowledge_graph - Added
jarvis_self_healing_execute - Added
jarvis_swarm_orchestrate - Added
jarvis_zero_key_query - Added
prune_schema_definition
21 tool updates
v0.1.1- Changed
analyze_change_impact2 fields changed- added
Input schema / properties / project_root / descriptionAdded value: +"Workspace root directory containing target symbols (default: current directory)." - added
Input schema / properties / target_symbol / descriptionAdded value: +"Name of the function, class, or method to analyze for change blast radius."
- Changed
audit_codebase_quality2 fields changed- added
Input schema / properties / file_path / descriptionAdded value: +"Optional path to a specific file to audit. If empty, audits all code files in the workspace." - added
Input schema / properties / project_root / descriptionAdded value: +"Root directory of the repository to audit (default: current directory)."
- Changed
enforce_architecture_boundaries2 fields changed- added
Input schema / properties / project_root / descriptionAdded value: +"Workspace root to validate against architectural rules (default: current directory)." - added
Input schema / properties / rules_file / descriptionAdded value: +"Path to rules JSON file (default: 'tzero.rules.json'). Resolves relative to project_root."
- Changed
estimate_token_cost3 fields changed- added
Input schema / properties / project_root / descriptionAdded value: +"Project directory to scan if text is empty (default: current directory)." - added
Input schema / properties / reduction_mode / descriptionAdded value: +"Reduction tier ('ultra', 'balanced', 'none') applied when scanning project_root." - added
Input schema / properties / text / descriptionAdded value: +"Optional raw text to estimate. If empty, analyzes context generated from project_root."
- Changed
export_agent_rules2 fields changed- added
Input schema / properties / project_root / descriptionAdded value: +"Target workspace directory where agent rule files will be created (default: current directory)." - added
Input schema / properties / target / descriptionAdded value: +"Target editor format: 'cursor', 'cline', 'windsurf', or 'all' (default: 'all')."
- Changed
find_code_duplicity2 fields changed- added
Input schema / properties / min_lines / descriptionAdded value: +"Minimum identical consecutive lines to classify as a duplicate block (default: 6)." - added
Input schema / properties / project_root / descriptionAdded value: +"Root directory of the repository to scan (default: current directory)."
- Changed
find_dead_code1 field changed- added
Input schema / properties / project_root / descriptionAdded value: +"Root directory of the repository to scan for unreferenced symbols (default: current directory)."
- Changed
generate_architecture_blueprint3 fields changed- added
Input schema / properties / model / descriptionAdded value: +"Optional model identifier override (e.g. 'deepseek-v4.1-flash', 'gpt-4o') when use_ai is True." - added
Input schema / properties / project_root / descriptionAdded value: +"Root directory of the repository to analyze and document (default: current directory)." - added
Input schema / properties / use_ai / descriptionAdded value: +"When True, uses configured 3rd-party AI or Free AI Cloud to synthesize deep architecture analysis; when False (default), runs 100% offline AST analysis."
- Changed
generate_repo_map2 fields changed- added
Input schema / properties / max_tokens / descriptionAdded value: +"Maximum token budget for the repo map (default: 4000)." - added
Input schema / properties / project_root / descriptionAdded value: +"Root directory of the repository to map (default: current directory)."
- Changed
get_incremental_diff_context2 fields changed- added
Input schema / properties / base_ref / descriptionAdded value: +"Git revision or branch to diff against (default: 'HEAD~1')." - added
Input schema / properties / project_root / descriptionAdded value: +"Git repository root path (default: current directory)."
- Changed
get_project_context_tree4 fields changed- added
Input schema / properties / include_file_contents / descriptionAdded value: +"When True, includes AST-reduced file bodies; when False, emits only the directory hierarchy and high-level architectural outline." - added
Input schema / properties / max_tokens / descriptionAdded value: +"Upper token budget threshold for returned context. When exceeded, PageRank & Git recency prioritizes critical architectural files." - added
Input schema / properties / project_root / descriptionAdded value: +"Target repository root path to scan (default: current working directory)." - added
Input schema / properties / reduction_mode / descriptionAdded value: +"AST reduction level: 'ultra' for signatures & docstrings (80-95% reduction), 'balanced' for signatures + control headers, 'none' for verbatim source."
- Changed
get_smart_skeleton_context3 fields changed- added
Input schema / properties / focus_file / descriptionAdded value: +"Target file path to focus on and retain with full implementation." - added
Input schema / properties / focus_symbol / descriptionAdded value: +"Optional specific function or class name within focus_file to isolate." - added
Input schema / properties / project_root / descriptionAdded value: +"Root directory of the repository (default: current directory)."
- Changed
get_token_savings_metrics2 fields changed- added
Input schema / properties / project_root / descriptionAdded value: +"Target workspace directory to measure (default: current directory)." - added
Input schema / properties / team_size / descriptionAdded value: +"Number of developers in the engineering team used to model monthly ROI savings (default: 5)."
- Changed
prune_code_snippet3 fields changed- added
Input schema / properties / code / descriptionAdded value: +"Raw source code content to prune." - added
Input schema / properties / file_path_or_ext / descriptionAdded value: +"File name or extension (e.g. 'service.ts', 'main.go', 'app.py', '.rs', '.java', '.cs', '.kt', '.swift') indicating language parser." - added
Input schema / properties / reduction_mode / descriptionAdded value: +"Reduction tier: 'ultra' for AST signatures only (80-95% reduction), 'balanced' for signatures + control flow."
- Changed
query_architecture_boundaries2 fields changed- added
Input schema / properties / extra_guidance / descriptionAdded value: +"Optional custom rules, architecture styles, or conventions to inject into the boundary definition." - added
Input schema / properties / project_root / descriptionAdded value: +"Root directory of the repository where tzero.rules.json is located (default: current directory)."
- Changed
query_module_dependencies2 fields changed- added
Input schema / properties / file_path / descriptionAdded value: +"Optional relative or absolute path to a specific file to inspect. If empty, analyzes the whole workspace." - added
Input schema / properties / project_root / descriptionAdded value: +"Root directory of the repository to scan (default: current directory)."
- Changed
rank_repository_pagerank2 fields changed- added
Input schema / properties / project_root / descriptionAdded value: +"Root directory of the repository to analyze (default: current directory)." - added
Input schema / properties / top_k / descriptionAdded value: +"Number of top central modules to return in the ranking report (default: 15)."
- Changed
search_codebase_semantic3 fields changed- added
Input schema / properties / project_root / descriptionAdded value: +"Workspace root directory to index and search (default: current directory)." - added
Input schema / properties / query / descriptionAdded value: +"Natural language or technical keyword query describing the desired code logic." - added
Input schema / properties / top_k / descriptionAdded value: +"Maximum number of top-matching code snippets to return (default: 5)."
- Changed
trace_symbol_call_chain3 fields changed- added
Input schema / properties / max_depth / descriptionAdded value: +"Maximum recursion depth for the call graph traversal (default: 3)." - added
Input schema / properties / project_root / descriptionAdded value: +"Root directory of the repository (default: current directory)." - added
Input schema / properties / symbol_name / descriptionAdded value: +"Exact function or method name to trace across the codebase call graph."
- Changed
verify_hallucination_guard3 fields changed- added
Input schema / properties / project_root / descriptionAdded value: +"Workspace root directory providing the ground-truth AST symbol catalog (default: current directory)." - added
Input schema / properties / proposed_code / descriptionAdded value: +"Python code proposed to be written or edited." - added
Input schema / properties / target_file / descriptionAdded value: +"Optional path of the target file being modified to resolve relative imports."
- Changed
verify_zero_leak_security3 fields changed- added
Input schema / properties / code_snippet / descriptionAdded value: +"Optional in-memory code string to inspect instead of files on disk." - added
Input schema / properties / project_root / descriptionAdded value: +"Workspace root directory to scan for secret leaks (default: current directory)." - added
Input schema / properties / target_file / descriptionAdded value: +"Optional single file path to inspect instead of the full workspace."
21 tool updates
v0.1.0- First observed
analyze_change_impact - First observed
audit_codebase_quality - First observed
enforce_architecture_boundaries - First observed
estimate_token_cost - First observed
export_agent_rules - First observed
find_code_duplicity - First observed
find_dead_code - First observed
generate_architecture_blueprint - First observed
generate_repo_map - First observed
get_incremental_diff_context - First observed
get_project_context_tree - First observed
get_smart_skeleton_context - First observed
get_token_savings_metrics - First observed
prune_code_snippet - First observed
query_architecture_boundaries - First observed
query_module_dependencies - First observed
rank_repository_pagerank - First observed
search_codebase_semantic - First observed
trace_symbol_call_chain - First observed
verify_hallucination_guard - First observed
verify_zero_leak_security
TDQS
Scored across 15 tools
Most individual descriptions explicitly name sibling tools and state when NOT to use them, which is excellent. However, 'execute_codebase_workflow' is a master tool that explicitly subsumes every other tool ('use whenever you want... without choosing between individual tools'), and several analysis tools (analyze_change_impact, analyze_code_dependencies, build_project_context) operate on the same AST data, creating real misselection risk despite the descriptions.
All 15 tools follow a consistent snake_case verb_noun pattern (query_memory_store, audit_code_quality, enforce_architecture_rules, estimate_token_cost). No camelCase mixing or vague single-word names anywhere in the set.
15 tools is at the upper edge of the well-scoped range but each targets a distinct capability, so it does not feel bloated. The presence of a catch-all orchestrator that duplicates all 14 other tools is mild redundancy that slightly reduces the value of the individual tools.
The surface is remarkably broad: memory query/manage lifecycle, code search, quality audit, secret scanning, context building, snippet pruning, full architecture rule CRUD + enforcement + blueprinting, dependency analysis, change impact, swarm orchestration, and cost estimation. Minor gaps exist around no code-editing/apply-patch tool outside self-healing, and no tooling for test execution or git state, which the described workflows (CI/CD, pre-merge) would imply.
Maintenance
Related MCP Connectors
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Enterprise code intelligence for M&A, security audits, and tech debt. Hosted server with 200k free.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides intelligent code context and analysis through semantic compression, AST parsing, and multi-language support. Offers 60-80% token reduction while enabling AI assistants to understand codebases through local analysis, OpenAI-enhanced insights, and GitHub repository integration.614 npm3MIT
- AlicenseBqualityBmaintenanceEnables LLMs to efficiently read, write, and refactor code using precise AST-based operations, reducing token usage and context window waste.2534 npm3MIT
- AlicenseNot gradedqualityDmaintenanceMake any LLM a codebase expert instantly. Provides deep code intelligence through semantic search, architecture mapping, security analysis, and smart context that fits perfectly in token windows.MIT
- AlicenseNot gradedqualityDmaintenanceProvides structured, token-efficient code context for AI assistants by indexing codebases with AST-level analysis, supporting 17+ languages, enabling semantic search, call-site tracking, and PR attribution.144 PyPI41MIT