Diogenes Context Compression & Code Solvers MCP is an MCP server published by io.github.stand-out-of-my-sun, hosted at diogenesgateway.com. When last checked on 2026-11-24 it was working: it answers and lists its tools. It declares 15 tools, including diff_agent_memory_checkpoint, prune_context_skeleton, plan_context_token_budget, rerank_hybrid_rag_chunks, apply_fuzzy_code_patch.
AST context pruner, token budget planner, fuzzy patcher, and code solvers.
27 connections through 5 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Computes structural diffs between two agent state snapshots ('added_keys', 'mutated_keys', 'removed_keys'), flags boolean belief contradictions, generates an RFC 7396 JSON Merge Patch delta, and computes a canonical checkpoint hash. Use when checkpointing agent state or transmitting minimal RFC 7396 state deltas across multi-agent handoffs; for counting BPE tokens and auditing Lost-in-the-Middle prompt attention, use plan_context_token_budget instead. Read-only call (32 KB, 60 RPM): accepts 'previous_state_json' (with enum defaults), uses '?demo=true' or L402 (10 sats); HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| conflict_strategy | string | Resolution policy when keys conflict; defaults to 'prefer_current' when omitted. |
| current_state_json * | string | JSON string or object representing the updated agent state snapshot. |
| previous_state_json * | string | JSON string or object representing the prior agent state snapshot. |
{
"name": "diff_agent_memory_checkpoint",
"title": "Agent State Graph Differ, Belief Conflict Resolver & SHA-256 Hasher",
"description": "Computes structural diffs between two agent state snapshots ('added_keys', 'mutated_keys', 'removed_keys'), flags boolean belief contradictions, generates an RFC 7396 JSON Merge Patch delta, and computes a canonical checkpoint hash. Use when checkpointing agent state or transmitting minimal RFC 7396 state deltas across multi-agent handoffs; for counting BPE tokens and auditing Lost-in-the-Middle prompt attention, use plan_context_token_budget instead. Read-only call (32 KB, 60 RPM): accepts 'previous_state_json' (with enum defaults), uses '?demo=true' or L402 (10 sats); HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"previous_state_json",
"current_state_json"
],
"properties": {
"conflict_strategy": {
"enum": [
"prefer_current",
"prefer_previous",
"flag_only"
],
"type": "string",
"description": "Resolution policy when keys conflict; defaults to 'prefer_current' when omitted."
},
"current_state_json": {
"type": "string",
"description": "JSON string or object representing the updated agent state snapshot."
},
"previous_state_json": {
"type": "string",
"description": "JSON string or object representing the prior agent state snapshot."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"added_keys",
"mutated_keys",
"rfc7396_json_merge_patch_delta",
"checkpoint_digest"
],
"properties": {
"added_keys": {
"type": "array",
"description": "State keys newly introduced in current_state."
},
"mutated_keys": {
"type": "array",
"description": "Modified keys with before/after values and belief_contradiction flag."
},
"checkpoint_digest": {
"type": "string",
"description": "Deterministic cryptographic hash of the canonicalized merged state."
},
"rfc7396_json_merge_patch_delta": {
"type": "object",
"description": "Minimal RFC 7396 JSON Merge Patch payload transforming previous into current."
}
},
"description": "Deterministic response schema for diff_agent_memory_checkpoint."
},
"annotations": {
"title": "Agent State Graph Differ, Belief Conflict Resolver & SHA-256 Hasher",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Compresses large source files, logs, or transcripts by 50–80% to fit an LLM context budget while preserving 100% of function/class/type signatures, imports, error frames, and query-matched lines. Use when shrinking oversized source files or logs before feeding them into an LLM prompt; for counting BPE tokens across prompt segments and calculating multi-model inference costs without altering text, use plan_context_token_budget instead. Read-only edge call (32 KB, 60 RPM): accepts 'content' (with enum defaults), uses '?demo=true' or L402 (10 sats); HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| content * | string | Raw source code, document, or multi-turn transcript to compress. |
| focus_query | string | Optional symbol or keyword query whose matching lines receive maximum retention priority. |
| pruning_mode | string | Salience weighting preset; defaults to 'ast_signatures_first' when omitted. |
| target_ratio | number | Target token retention ratio between 0.15 and 0.85; defaults to 0.45 when omitted. |
{
"name": "prune_context_skeleton",
"title": "AST-Aware Context Window & Source Code Skeleton Pruner",
"description": "Compresses large source files, logs, or transcripts by 50–80% to fit an LLM context budget while preserving 100% of function/class/type signatures, imports, error frames, and query-matched lines. Use when shrinking oversized source files or logs before feeding them into an LLM prompt; for counting BPE tokens across prompt segments and calculating multi-model inference costs without altering text, use plan_context_token_budget instead. Read-only edge call (32 KB, 60 RPM): accepts 'content' (with enum defaults), uses '?demo=true' or L402 (10 sats); HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"content"
],
"properties": {
"content": {
"type": "string",
"description": "Raw source code, document, or multi-turn transcript to compress."
},
"focus_query": {
"type": "string",
"description": "Optional symbol or keyword query whose matching lines receive maximum retention priority."
},
"pruning_mode": {
"enum": [
"ast_signatures_first",
"errors_and_stackframes",
"prose_headings_first"
],
"type": "string",
"description": "Salience weighting preset; defaults to 'ast_signatures_first' when omitted."
},
"target_ratio": {
"type": "number",
"description": "Target token retention ratio between 0.15 and 0.85; defaults to 0.45 when omitted."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"original_tokens_est",
"compressed_tokens_est",
"tokens_saved",
"preserved_symbols",
"compressed_content"
],
"properties": {
"tokens_saved": {
"type": "integer",
"description": "Net BPE tokens eliminated."
},
"preserved_symbols": {
"type": "array",
"description": "Function, class, interface, and struct identifiers retained."
},
"compressed_content": {
"type": "string",
"description": "Pruned text with elision markers where low-salience lines were removed."
},
"original_tokens_est": {
"type": "integer",
"description": "Estimated BPE token count of the unpruned input."
},
"compressed_tokens_est": {
"type": "integer",
"description": "Estimated BPE token count after structural pruning."
}
},
"description": "Deterministic response schema for prune_context_skeleton."
},
"annotations": {
"title": "AST-Aware Context Window & Source Code Skeleton Pruner",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Counts subword BPE tokens across prompt segments, detects high-priority instructions trapped in the 35%–72% Lost-in-the-Middle attention trough, and calculates USD/satoshi costs across frontier LLMs. Use when auditing prompt token budgets, reordering prompt sections for primacy/recency attention, or comparing model API costs; for actively compressing and stripping low-salience lines from a single large file, use prune_context_skeleton instead. Read-only edge call (32 KB, 60 RPM): accepts 'segments_json' (with enum defaults), uses '?demo=true' or L402 (10 sats); HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| segments_json * | string | JSON string or array of prompt segments '[{"name":"sys","text":"...","priority":10}]' to analyze. |
| max_context_tokens | number | Target model context window limit in tokens; defaults to 128000 when omitted. |
| target_model_family | string | Primary model family for token-Window calibration; defaults to 'gemini_3_1' when omitted. |
{
"name": "plan_context_token_budget",
"title": "BPE Token Budget, Attention Trough & Multi-Model Cost Planner",
"description": "Counts subword BPE tokens across prompt segments, detects high-priority instructions trapped in the 35%–72% Lost-in-the-Middle attention trough, and calculates USD/satoshi costs across frontier LLMs. Use when auditing prompt token budgets, reordering prompt sections for primacy/recency attention, or comparing model API costs; for actively compressing and stripping low-salience lines from a single large file, use prune_context_skeleton instead. Read-only edge call (32 KB, 60 RPM): accepts 'segments_json' (with enum defaults), uses '?demo=true' or L402 (10 sats); HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"segments_json"
],
"properties": {
"segments_json": {
"type": "string",
"description": "JSON string or array of prompt segments '[{\"name\":\"sys\",\"text\":\"...\",\"priority\":10}]' to analyze."
},
"max_context_tokens": {
"type": "number",
"description": "Target model context window limit in tokens; defaults to 128000 when omitted."
},
"target_model_family": {
"enum": [
"gemini_3_1",
"claude_4_5",
"gpt_5",
"deepseek_r1"
],
"type": "string",
"description": "Primary model family for token-Window calibration; defaults to 'gemini_3_1' when omitted."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"total_input_tokens_est",
"within_budget",
"lost_in_the_middle_warnings",
"optimal_primacy_recency_order",
"multi_model_cost_comparison"
],
"properties": {
"within_budget": {
"type": "boolean",
"description": "True when total_input_tokens_est fits inside available_input_budget."
},
"total_input_tokens_est": {
"type": "integer",
"description": "Total BPE tokens summed across all prompt segments."
},
"lost_in_the_middle_warnings": {
"type": "array",
"description": "Warnings for high-priority segments positioned in the 35%–72% attention trough."
},
"multi_model_cost_comparison": {
"type": "array",
"description": "Estimated USD and satoshi inference cost across 5 frontier models."
},
"optimal_primacy_recency_order": {
"type": "array",
"description": "Recommended segment ordering placing critical instructions at prompt boundaries."
}
},
"description": "Deterministic response schema for plan_context_token_budget."
},
"annotations": {
"title": "BPE Token Budget, Attention Trough & Multi-Model Cost Planner",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Reranks and deduplicates candidate RAG or retrieval passages against a search prompt using Okapi BM25 (k1=1.5, b=0.75), Reciprocal Rank Fusion (RRF), and Maximal Marginal Relevance (MMR) Jaccard diversity filtering. Use when selecting the top-K highest-signal, non-redundant passages from vector search or grep results; for compressing a single contiguous source file while keeping its original line order, use prune_context_skeleton instead. Read-only edge call (32 KB, 60 RPM): accepts 'search_prompt' ('documents_json' defaults to 'standard'), uses '?demo=true' or L402 (15 sats); HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| top_k | number | Maximum number of deduplicated chunks to return; defaults to 5 when omitted. |
| ranking_mode | string | Fusion weighting between lexical BM25 and diversity penalty; defaults to 'bm25_rrf_mmr' when omitted. |
| search_prompt * | string | Technical search prompt or question used to score candidate chunks. |
| documents_json * | string | JSON string or array of candidate chunks '[{"id":"c1","text":"..."}]' to rerank. |
{
"name": "rerank_hybrid_rag_chunks",
"title": "Okapi BM25 + Reciprocal Rank Fusion (RRF) + MMR Chunk Reranker",
"description": "Reranks and deduplicates candidate RAG or retrieval passages against a search prompt using Okapi BM25 (k1=1.5, b=0.75), Reciprocal Rank Fusion (RRF), and Maximal Marginal Relevance (MMR) Jaccard diversity filtering. Use when selecting the top-K highest-signal, non-redundant passages from vector search or grep results; for compressing a single contiguous source file while keeping its original line order, use prune_context_skeleton instead. Read-only edge call (32 KB, 60 RPM): accepts 'search_prompt' ('documents_json' defaults to 'standard'), uses '?demo=true' or L402 (15 sats); HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"search_prompt",
"documents_json"
],
"properties": {
"top_k": {
"type": "number",
"description": "Maximum number of deduplicated chunks to return; defaults to 5 when omitted."
},
"ranking_mode": {
"enum": [
"bm25_rrf_mmr",
"pure_bm25_lexical",
"high_diversity_mmr"
],
"type": "string",
"description": "Fusion weighting between lexical BM25 and diversity penalty; defaults to 'bm25_rrf_mmr' when omitted."
},
"search_prompt": {
"type": "string",
"description": "Technical search prompt or question used to score candidate chunks."
},
"documents_json": {
"type": "string",
"description": "JSON string or array of candidate chunks '[{\"id\":\"c1\",\"text\":\"...\"}]' to rerank."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"query",
"total_candidates",
"returned_count",
"ranked_chunks"
],
"properties": {
"query": {
"type": "string",
"description": "Evaluated search query."
},
"ranked_chunks": {
"type": "array",
"description": "Ordered top-K chunks with bm25_score, rrf_score, and mmr_score."
},
"returned_count": {
"type": "integer",
"description": "Number of deduplicated top-K chunks returned."
},
"total_candidates": {
"type": "integer",
"description": "Number of input candidate chunks scored."
}
},
"description": "Deterministic response schema for rerank_hybrid_rag_chunks."
},
"annotations": {
"title": "Okapi BM25 + Reciprocal Rank Fusion (RRF) + MMR Chunk Reranker",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Applies unified diffs (@@ ... @@) or SEARCH/REPLACE blocks to source code using sliding-window token similarity to resolve drifted line numbers, align indentation, and verify bracket balance. Use when healing and applying a code edit or diff that failed exact line matching due to line-number drift or whitespace differences; for inspecting function signatures, call trees, and cyclomatic complexity without modifying code, use analyze_ast_symbol_graph instead. Read-only call (32 KB, 60 RPM): accepts 'original_code' (with enum defaults), uses '?demo=true' or L402 (20 sats); HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| patch * | string | Unified diff hunk or <<<<<<< SEARCH ... ======= ... >>>>>>> REPLACE block to apply. |
| fuzz_strategy | string | Line-matching tolerance and indentation behavior; defaults to 'whitespace_normalized_auto_indent' when omitted. |
| original_code * | string | Complete original source file content before patching. |
{
"name": "apply_fuzzy_code_patch",
"title": "Self-Healing Fuzzy Unified Diff & Search/Replace Code Patcher",
"description": "Applies unified diffs (@@ ... @@) or SEARCH/REPLACE blocks to source code using sliding-window token similarity to resolve drifted line numbers, align indentation, and verify bracket balance. Use when healing and applying a code edit or diff that failed exact line matching due to line-number drift or whitespace differences; for inspecting function signatures, call trees, and cyclomatic complexity without modifying code, use analyze_ast_symbol_graph instead. Read-only call (32 KB, 60 RPM): accepts 'original_code' (with enum defaults), uses '?demo=true' or L402 (20 sats); HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"original_code",
"patch"
],
"properties": {
"patch": {
"type": "string",
"description": "Unified diff hunk or <<<<<<< SEARCH ... ======= ... >>>>>>> REPLACE block to apply."
},
"fuzz_strategy": {
"enum": [
"whitespace_normalized_auto_indent",
"exact_line_match",
"aggressive_token_fuzzy"
],
"type": "string",
"description": "Line-matching tolerance and indentation behavior; defaults to 'whitespace_normalized_auto_indent' when omitted."
},
"original_code": {
"type": "string",
"description": "Complete original source file content before patching."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"hunks_total",
"hunks_applied",
"syntax_balance_verified",
"patched_code"
],
"properties": {
"hunks_total": {
"type": "integer",
"description": "Total patch hunks parsed from the input patch."
},
"patched_code": {
"type": "string",
"description": "Resulting source code after applying all matched hunks."
},
"hunks_applied": {
"type": "integer",
"description": "Number of hunks successfully anchored and applied."
},
"syntax_balance_verified": {
"type": "boolean",
"description": "True when post-patch {}, (), and [] delimiters remain balanced."
}
},
"description": "Deterministic response schema for apply_fuzzy_code_patch."
},
"annotations": {
"title": "Self-Healing Fuzzy Unified Diff & Search/Replace Code Patcher",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Static lexer and AST parser only (zero execution or evaluation): extracts imports, exports, classes, interfaces, and functions with line numbers, intra-file call edges, McCabe cyclomatic complexity, and Halstead volume across TypeScript, Python, Rust, Go, and Move. Use when mapping internal functions, call graphs, and complexity hotspots of a source file before refactoring; for analyzing cross-file import DAGs and circular dependencies, use audit_module_dependency_cycles instead. Read-only call (32 KB, 60 RPM): accepts 'source_text' (with enum defaults), uses '?demo=true' or L402 (20 sats); HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| code * | string | Source code file content to parse for symbols and complexity metrics. |
| language | string | Programming language grammar used for symbol extraction; defaults to 'typescript' when omitted. |
| source_text | string | Alias for code: source code file content to parse. |
{
"name": "analyze_ast_symbol_graph",
"title": "Polyglot AST Symbol Extractor, Call Graph & Complexity Analyzer",
"description": "Static lexer and AST parser only (zero execution or evaluation): extracts imports, exports, classes, interfaces, and functions with line numbers, intra-file call edges, McCabe cyclomatic complexity, and Halstead volume across TypeScript, Python, Rust, Go, and Move. Use when mapping internal functions, call graphs, and complexity hotspots of a source file before refactoring; for analyzing cross-file import DAGs and circular dependencies, use audit_module_dependency_cycles instead. Read-only call (32 KB, 60 RPM): accepts 'source_text' (with enum defaults), uses '?demo=true' or L402 (20 sats); HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"description": "Source code file content to parse for symbols and complexity metrics."
},
"language": {
"enum": [
"typescript",
"python",
"rust",
"go",
"sui_move"
],
"type": "string",
"description": "Programming language grammar used for symbol extraction; defaults to 'typescript' when omitted."
},
"source_text": {
"type": "string",
"description": "Alias for code: source code file content to parse."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"lines_of_code",
"functions",
"high_complexity_hotspots",
"halstead_metrics"
],
"properties": {
"functions": {
"type": "array",
"description": "Extracted functions with line number, cyclomatic_complexity, and outgoing calls."
},
"lines_of_code": {
"type": "integer",
"description": "Total line count of the analyzed source code."
},
"halstead_metrics": {
"type": "object",
"description": "Halstead vocabulary_size, program_length, volume, and estimated_bugs."
},
"high_complexity_hotspots": {
"type": "array",
"description": "Functions with McCabe cyclomatic complexity >= 8 flagged for refactoring."
}
},
"description": "Deterministic response schema for analyze_ast_symbol_graph."
},
"annotations": {
"title": "Polyglot AST Symbol Extractor, Call Graph & Complexity Analyzer",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Runs Tarjan's Strongly Connected Components (SCC) algorithm on a module import map to detect circular dependencies, compute parallel topological build waves, and trace downstream change blast radius. Use when auditing multi-file import graphs for circular cycles or determining which downstream files must be re-tested after an edit; for extracting function-level symbols and cyclomatic complexity inside a single source file, use analyze_ast_symbol_graph instead. Read-only call (32 KB, 60 RPM): accepts 'modules_json' (with enum defaults), uses '?demo=true' or L402 (20 sats); HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| modules_json * | string | JSON string or object mapping each module name to its array of imported module names (e.g. '{"a":["b"],"b":[]}'). |
| analysis_scope | string | Graph analysis output mode; defaults to 'cycles_waves_and_blast_radius' when omitted. |
{
"name": "audit_module_dependency_cycles",
"title": "Tarjan SCC Circular Import Detector & Topological Blast-Radius Solver",
"description": "Runs Tarjan's Strongly Connected Components (SCC) algorithm on a module import map to detect circular dependencies, compute parallel topological build waves, and trace downstream change blast radius. Use when auditing multi-file import graphs for circular cycles or determining which downstream files must be re-tested after an edit; for extracting function-level symbols and cyclomatic complexity inside a single source file, use analyze_ast_symbol_graph instead. Read-only call (32 KB, 60 RPM): accepts 'modules_json' (with enum defaults), uses '?demo=true' or L402 (20 sats); HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"modules_json"
],
"properties": {
"modules_json": {
"type": "string",
"description": "JSON string or object mapping each module name to its array of imported module names (e.g. '{\"a\":[\"b\"],\"b\":[]}')."
},
"analysis_scope": {
"enum": [
"cycles_waves_and_blast_radius",
"cycles_only",
"topological_waves_only"
],
"type": "string",
"description": "Graph analysis output mode; defaults to 'cycles_waves_and_blast_radius' when omitted."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"total_modules",
"circular_dependencies_detected",
"circular_scc_groups",
"topological_build_waves",
"transitive_blast_radius"
],
"properties": {
"total_modules": {
"type": "integer",
"description": "Total number of graph vertices analyzed."
},
"circular_scc_groups": {
"type": "array",
"description": "Strongly connected component cycles discovered via Tarjan's algorithm."
},
"topological_build_waves": {
"type": "array",
"description": "Dependency-ordered parallel build/test execution waves."
},
"transitive_blast_radius": {
"type": "array",
"description": "All upstream callers transitively impacted by the modified modules."
},
"circular_dependencies_detected": {
"type": "boolean",
"description": "True if one or more circular dependency cycles exist."
}
},
"description": "Deterministic response schema for audit_module_dependency_cycles."
},
"annotations": {
"title": "Tarjan SCC Circular Import Detector & Topological Blast-Radius Solver",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Parses noisy CI/terminal logs and multi-language stack traces (Node/TS, Python, Rust, Go), strips node_modules/stdlib frames to isolate the innermost failing user-code frame, and clusters repetitive logs into Drain templates. Use when triage-debugging test failures, crash dumps, or repetitive server error logs; for compressing general source code files or prose transcripts, use prune_context_skeleton instead. Read-only edge call (32 KB, 60 RPM): accepts 'raw_log' ('runtime_hint' defaults to 'auto_detect'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| raw_log * | string | Raw terminal output, CI failure log, or exception traceback to analyze. |
| runtime_hint | string | Runtime stack format hint; defaults to 'auto_detect' when omitted. |
{
"name": "isolate_stacktrace_root_cause",
"title": "Stack-Trace Root-Cause Frame Isolator & Drain Log Deduplicator",
"description": "Parses noisy CI/terminal logs and multi-language stack traces (Node/TS, Python, Rust, Go), strips node_modules/stdlib frames to isolate the innermost failing user-code frame, and clusters repetitive logs into Drain templates. Use when triage-debugging test failures, crash dumps, or repetitive server error logs; for compressing general source code files or prose transcripts, use prune_context_skeleton instead. Read-only edge call (32 KB, 60 RPM): accepts 'raw_log' ('runtime_hint' defaults to 'auto_detect'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"raw_log"
],
"properties": {
"raw_log": {
"type": "string",
"description": "Raw terminal output, CI failure log, or exception traceback to analyze."
},
"runtime_hint": {
"enum": [
"auto_detect",
"nodejs_v8",
"python_traceback",
"rust_panic",
"go_goroutine"
],
"type": "string",
"description": "Runtime stack format hint; defaults to 'auto_detect' when omitted."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"error_headline",
"root_cause_frame",
"stripped_library_frames_count",
"deduplicated_log_templates",
"root_cause_fingerprint"
],
"properties": {
"error_headline": {
"type": "string",
"description": "Extracted primary exception class and error message."
},
"root_cause_frame": {
"type": "object",
"description": "Innermost user-code stack frame (function_name, file, line, column)."
},
"root_cause_fingerprint": {
"type": "string",
"description": "Deterministic hash of the error class and root user frame."
},
"deduplicated_log_templates": {
"type": "array",
"description": "Drain-clustered log patterns with occurrence counts."
},
"stripped_library_frames_count": {
"type": "integer",
"description": "Number of node_modules, stdlib, or internal frames filtered out."
}
},
"description": "Deterministic response schema for isolate_stacktrace_root_cause."
},
"annotations": {
"title": "Stack-Trace Root-Cause Frame Isolator & Drain Log Deduplicator",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Inspects a sample JSON payload (inferring UUID, ISO-8601 datetime, email, integer vs float, and array item types) and compiles strict TypeScript interfaces, Zod schemas, Python Pydantic v2 models, and JSON Schema Draft 2020-12. Use when generating static type definitions and runtime validators in TypeScript and Python from a sample JSON response; for extracting existing function/class symbols and complexity metrics from source code, use analyze_ast_symbol_graph instead. Read-only call (32 KB, 60 RPM): accepts 'sample_json' (with enum defaults), uses '?demo=true' or L402 (20 sats); HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| root_name | string | Identifier used for the generated root interface/class; defaults to 'GeneratedPayload' when omitted. |
| strictness | string | Schema additionalProperties and format constraint mode; defaults to 'strict_formats' when omitted. |
| sample_json * | string | JSON string or object representing the sample payload to infer types from. |
{
"name": "compile_polyglot_type_schemas",
"title": "Polyglot JSON -> TypeScript, Zod, Pydantic v2 & JSON Schema Compiler",
"description": "Inspects a sample JSON payload (inferring UUID, ISO-8601 datetime, email, integer vs float, and array item types) and compiles strict TypeScript interfaces, Zod schemas, Python Pydantic v2 models, and JSON Schema Draft 2020-12. Use when generating static type definitions and runtime validators in TypeScript and Python from a sample JSON response; for extracting existing function/class symbols and complexity metrics from source code, use analyze_ast_symbol_graph instead. Read-only call (32 KB, 60 RPM): accepts 'sample_json' (with enum defaults), uses '?demo=true' or L402 (20 sats); HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"sample_json"
],
"properties": {
"root_name": {
"type": "string",
"description": "Identifier used for the generated root interface/class; defaults to 'GeneratedPayload' when omitted."
},
"strictness": {
"enum": [
"strict_formats",
"passthrough_open",
"partial_optional"
],
"type": "string",
"description": "Schema additionalProperties and format constraint mode; defaults to 'strict_formats' when omitted."
},
"sample_json": {
"type": "string",
"description": "JSON string or object representing the sample payload to infer types from."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"root_name",
"typescript_interface",
"zod_schema",
"python_pydantic_v2",
"json_schema_draft_2020_12"
],
"properties": {
"root_name": {
"type": "string",
"description": "Sanitized root type/class identifier."
},
"zod_schema": {
"type": "string",
"description": "Compiled TypeScript Zod runtime validator schema."
},
"python_pydantic_v2": {
"type": "string",
"description": "Compiled Python Pydantic v2 BaseModel class."
},
"typescript_interface": {
"type": "string",
"description": "Compiled TypeScript export interface definition."
},
"json_schema_draft_2020_12": {
"type": "object",
"description": "Complete JSON Schema Draft 2020-12 specification."
}
},
"description": "Deterministic response schema for compile_polyglot_type_schemas."
},
"annotations": {
"title": "Polyglot JSON -> TypeScript, Zod, Pydantic v2 & JSON Schema Compiler",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Strict Shunting-Yard AST arithmetic parser with zero eval() or dynamic code execution: evaluates algebraic formulas and computes exact financial NPV, Newton-Raphson IRR, Kelly criterion, and dataset stats. Use when computing exact arithmetic formulas, cashflow NPV/IRR, or descriptive statistics without LLM floating-point guesswork; for running two-sample A/B hypothesis tests, use evaluate_ab_statistical_significance instead. Read-only edge call (32 KB, 60 RPM): accepts 'math_formula' ('precision_digits' defaults to '2_decimals'), uses '?demo=true' or L402 (10 sats); HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| expression * | string | Algebraic or scientific formula to evaluate (e.g. '(125000 * (1 + 0.0725/12)^60) - 98450.50'). |
| math_formula | string | Alias for expression: algebraic formula to evaluate. |
| precision_digits | string | Decimal rounding precision for returned numbers; defaults to '8_decimals' when omitted. |
{
"name": "evaluate_deterministic_math",
"title": "Shunting-Yard Algebraic Math, Financial IRR/NPV & Descriptive Stats Solver",
"description": "Strict Shunting-Yard AST arithmetic parser with zero eval() or dynamic code execution: evaluates algebraic formulas and computes exact financial NPV, Newton-Raphson IRR, Kelly criterion, and dataset stats. Use when computing exact arithmetic formulas, cashflow NPV/IRR, or descriptive statistics without LLM floating-point guesswork; for running two-sample A/B hypothesis tests, use evaluate_ab_statistical_significance instead. Read-only edge call (32 KB, 60 RPM): accepts 'math_formula' ('precision_digits' defaults to '2_decimals'), uses '?demo=true' or L402 (10 sats); HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"expression"
],
"properties": {
"expression": {
"type": "string",
"description": "Algebraic or scientific formula to evaluate (e.g. '(125000 * (1 + 0.0725/12)^60) - 98450.50')."
},
"math_formula": {
"type": "string",
"description": "Alias for expression: algebraic formula to evaluate."
},
"precision_digits": {
"enum": [
"2_decimals",
"4_decimals",
"8_decimals"
],
"type": "string",
"description": "Decimal rounding precision for returned numbers; defaults to '8_decimals' when omitted."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"expression",
"exact_result",
"financial_analysis",
"dataset_statistics"
],
"properties": {
"expression": {
"type": "string",
"description": "Evaluated mathematical expression."
},
"exact_result": {
"type": "number",
"description": "Deterministic floating-point result of the expression."
},
"dataset_statistics": {
"type": "object",
"description": "Optional count, mean, median, std_dev, min, and max when a dataset array is supplied."
},
"financial_analysis": {
"type": "object",
"description": "Optional NPV, Newton-Raphson IRR, and Kelly fraction when financial parameters are supplied."
}
},
"description": "Deterministic response schema for evaluate_deterministic_math."
},
"annotations": {
"title": "Shunting-Yard Algebraic Math, Financial IRR/NPV & Descriptive Stats Solver",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Solves a task dependency DAG via the Critical Path Method (CPM) to compute ES/EF/LS/LF, Total Float/Slack, optimal makespan, and the Critical Path. Use when scheduling dependent engineering milestones or workflow steps to find the minimum project duration and zero-slack bottleneck path; for detecting circular code imports and file blast radius without task durations, use audit_module_dependency_cycles instead. Read-only edge call (32 KB, 60 RPM): accepts 'tasks_json' ('time_unit' defaults to 'minutes'), supports '?demo=true' or L402 (20 sats), and returns HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| time_unit | string | Duration unit label attached to the schedule; defaults to 'hours' when omitted. |
| tasks_json * | string | JSON string or array of tasks '[{"id":"t1","duration":3,"dependencies":[]}]' to schedule. |
{
"name": "schedule_critical_path_tasks",
"title": "Critical Path Method (CPM) DAG & Resource Constraint Scheduler",
"description": "Solves a task dependency DAG via the Critical Path Method (CPM) to compute ES/EF/LS/LF, Total Float/Slack, optimal makespan, and the Critical Path. Use when scheduling dependent engineering milestones or workflow steps to find the minimum project duration and zero-slack bottleneck path; for detecting circular code imports and file blast radius without task durations, use audit_module_dependency_cycles instead. Read-only edge call (32 KB, 60 RPM): accepts 'tasks_json' ('time_unit' defaults to 'minutes'), supports '?demo=true' or L402 (20 sats), and returns HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"tasks_json"
],
"properties": {
"time_unit": {
"enum": [
"minutes",
"hours",
"days",
"sprints"
],
"type": "string",
"description": "Duration unit label attached to the schedule; defaults to 'hours' when omitted."
},
"tasks_json": {
"type": "string",
"description": "JSON string or array of tasks '[{\"id\":\"t1\",\"duration\":3,\"dependencies\":[]}]' to schedule."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"total_tasks",
"optimal_makespan_duration",
"critical_path",
"task_schedule"
],
"properties": {
"total_tasks": {
"type": "integer",
"description": "Number of DAG tasks scheduled."
},
"critical_path": {
"type": "array",
"description": "Ordered task IDs with zero slack that determine the overall project duration."
},
"task_schedule": {
"type": "array",
"description": "Per-task earliest_start, earliest_finish, latest_start, latest_finish, and total_float_slack."
},
"optimal_makespan_duration": {
"type": "number",
"description": "Minimum total duration required to complete all tasks."
}
},
"description": "Deterministic response schema for schedule_critical_path_tasks."
},
"annotations": {
"title": "Critical Path Method (CPM) DAG & Resource Constraint Scheduler",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Computes Welch's two-sample t-test or two-proportion z-test, returning two-tailed p-values, Cohen's d effect size, relative lift %, and Bayesian P(Treatment > Control). Use when determining whether a prompt change, model benchmark, or A/B experiment produced a statistically significant improvement; for evaluating single algebraic formulas or NPV/IRR cashflows, use evaluate_deterministic_math instead. Read-only edge call (32 KB, 60 RPM): accepts 'control_json' ('treatment_json' defaults to 'standard'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| control_json * | string | JSON string or object for the baseline control arm (e.g. '{"conversions":142,"total":1000}' or '{"samples":[12,15,14]}'). |
| treatment_json * | string | JSON string or object for the candidate treatment arm (e.g. '{"conversions":186,"total":1000}'). |
| significance_level | string | Type-I error alpha threshold for statistical significance; defaults to 'alpha_0_05' when omitted. |
{
"name": "evaluate_ab_statistical_significance",
"title": "Welch's t-Test, Two-Proportion z-Test & Bayesian A/B Eval Judge",
"description": "Computes Welch's two-sample t-test or two-proportion z-test, returning two-tailed p-values, Cohen's d effect size, relative lift %, and Bayesian P(Treatment > Control). Use when determining whether a prompt change, model benchmark, or A/B experiment produced a statistically significant improvement; for evaluating single algebraic formulas or NPV/IRR cashflows, use evaluate_deterministic_math instead. Read-only edge call (32 KB, 60 RPM): accepts 'control_json' ('treatment_json' defaults to 'standard'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"control_json",
"treatment_json"
],
"properties": {
"control_json": {
"type": "string",
"description": "JSON string or object for the baseline control arm (e.g. '{\"conversions\":142,\"total\":1000}' or '{\"samples\":[12,15,14]}')."
},
"treatment_json": {
"type": "string",
"description": "JSON string or object for the candidate treatment arm (e.g. '{\"conversions\":186,\"total\":1000}')."
},
"significance_level": {
"enum": [
"alpha_0_01",
"alpha_0_05",
"alpha_0_10"
],
"type": "string",
"description": "Type-I error alpha threshold for statistical significance; defaults to 'alpha_0_05' when omitted."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"test_type",
"relative_lift_pct",
"p_value",
"bayesian_prob_treatment_superior",
"verdict"
],
"properties": {
"p_value": {
"type": "number",
"description": "Two-tailed frequentist p-value."
},
"verdict": {
"type": "string",
"description": "Experiment decision ('SIGNIFICANT_TREATMENT_WIN', 'SIGNIFICANT_CONTROL_WIN', or 'INCONCLUSIVE_UNDERPOWERED')."
},
"test_type": {
"type": "string",
"description": "Statistical test applied ('welch_two_sample_t_test' or 'two_proportion_z_test_and_bayesian')."
},
"relative_lift_pct": {
"type": "number",
"description": "Percentage lift of treatment over control."
},
"bayesian_prob_treatment_superior": {
"type": "number",
"description": "Posterior probability P(Treatment > Control) from 0.0 to 1.0."
}
},
"description": "Deterministic response schema for evaluate_ab_statistical_significance."
},
"annotations": {
"title": "Welch's t-Test, Two-Proportion z-Test & Bayesian A/B Eval Judge",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Compares baseline and candidate OpenAPI 3.1 specs, JSON Schemas, or MCP tool manifests to detect breaking changes (removed fields, new required inputs, narrowed enums, type mutations). Use when auditing API, JSON Schema, or MCP contract revisions for backward compatibility before deployment; for compiling new TypeScript, Zod, and Pydantic schemas from a single sample JSON payload, use compile_polyglot_type_schemas instead. Read-only edge call (32 KB, 60 RPM): accepts 'baseline_schema_json' (with enum defaults), uses '?demo=true' or L402 (25 sats); HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| contract_format | string | Contract specification format; defaults to 'auto_detect' when omitted. |
| baseline_schema_json * | string | JSON string of the baseline OpenAPI 3.1 spec, JSON Schema, or MCP tools array. |
| candidate_schema_json * | string | JSON string of the proposed candidate schema or contract revision to compare. |
{
"name": "detect_openapi_breaking_changes",
"title": "OpenAPI 3.1, JSON Schema & MCP Contract Breaking-Change Detector",
"description": "Compares baseline and candidate OpenAPI 3.1 specs, JSON Schemas, or MCP tool manifests to detect breaking changes (removed fields, new required inputs, narrowed enums, type mutations). Use when auditing API, JSON Schema, or MCP contract revisions for backward compatibility before deployment; for compiling new TypeScript, Zod, and Pydantic schemas from a single sample JSON payload, use compile_polyglot_type_schemas instead. Read-only edge call (32 KB, 60 RPM): accepts 'baseline_schema_json' (with enum defaults), uses '?demo=true' or L402 (25 sats); HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"baseline_schema_json",
"candidate_schema_json"
],
"properties": {
"contract_format": {
"enum": [
"auto_detect",
"json_schema",
"openapi_3_1",
"mcp_tools_manifest"
],
"type": "string",
"description": "Contract specification format; defaults to 'auto_detect' when omitted."
},
"baseline_schema_json": {
"type": "string",
"description": "JSON string of the baseline OpenAPI 3.1 spec, JSON Schema, or MCP tools array."
},
"candidate_schema_json": {
"type": "string",
"description": "JSON string of the proposed candidate schema or contract revision to compare."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"breaking_changes_detected",
"breaking_changes",
"non_breaking_additions",
"recommended_semver_bump"
],
"properties": {
"breaking_changes": {
"type": "array",
"description": "Detailed list of breaking removals, type changes, or new required parameters."
},
"non_breaking_additions": {
"type": "array",
"description": "Backward-compatible optional fields or endpoints added."
},
"recommended_semver_bump": {
"type": "string",
"description": "Recommended Semantic Version bump ('MAJOR_BREAKING', 'MINOR_ADDITIVE', or 'PATCH_COMPATIBLE')."
},
"breaking_changes_detected": {
"type": "boolean",
"description": "True if any backward-incompatible contract change is found."
}
},
"description": "Deterministic response schema for detect_openapi_breaking_changes."
},
"annotations": {
"title": "OpenAPI 3.1, JSON Schema & MCP Contract Breaking-Change Detector",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Synthesizes deterministic unit-test vectors from a JSON Schema or function signature covering valid equivalence partitions, numeric/length boundaries, and adversarial Unicode/null inputs. Use when generating exhaustive edge-case unit test payloads and fuzz vectors for an API endpoint or function; for healing and applying unified diffs or search/replace edits to source code, use apply_fuzzy_code_patch instead. Read-only edge call (32 KB, 60 RPM): accepts 'schema_or_signature_json' (with enum defaults), uses '?demo=true' or L402 (20 sats); HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| vector_suite_profile | string | Test generation coverage profile; defaults to 'equivalence_boundary_and_fuzz' when omitted. |
| schema_or_signature_json * | string | JSON Schema object or function parameter specification to generate test vectors for. |
{
"name": "generate_boundary_test_vectors",
"title": "JSON Schema & Function Signature Boundary-Value Test Vector Generator",
"description": "Synthesizes deterministic unit-test vectors from a JSON Schema or function signature covering valid equivalence partitions, numeric/length boundaries, and adversarial Unicode/null inputs. Use when generating exhaustive edge-case unit test payloads and fuzz vectors for an API endpoint or function; for healing and applying unified diffs or search/replace edits to source code, use apply_fuzzy_code_patch instead. Read-only edge call (32 KB, 60 RPM): accepts 'schema_or_signature_json' (with enum defaults), uses '?demo=true' or L402 (20 sats); HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"schema_or_signature_json"
],
"properties": {
"vector_suite_profile": {
"enum": [
"equivalence_boundary_and_fuzz",
"boundary_values_only",
"adversarial_security_fuzz"
],
"type": "string",
"description": "Test generation coverage profile; defaults to 'equivalence_boundary_and_fuzz' when omitted."
},
"schema_or_signature_json": {
"type": "string",
"description": "JSON Schema object or function parameter specification to generate test vectors for."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"total_vectors_generated",
"valid_partition_vectors",
"boundary_edge_vectors",
"adversarial_fuzz_vectors"
],
"properties": {
"boundary_edge_vectors": {
"type": "array",
"description": "Edge payloads testing zero, negative, MAX_SAFE_INTEGER, and empty/max length boundaries."
},
"total_vectors_generated": {
"type": "integer",
"description": "Total number of deterministic test vectors produced."
},
"valid_partition_vectors": {
"type": "array",
"description": "Valid happy-path payloads covering required and optional equivalence classes."
},
"adversarial_fuzz_vectors": {
"type": "array",
"description": "Negative test vectors testing missing required fields, wrong types, and Unicode/injection strings."
}
},
"description": "Deterministic response schema for generate_boundary_test_vectors."
},
"annotations": {
"title": "JSON Schema & Function Signature Boundary-Value Test Vector Generator",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Runs a reproducible seeded Mulberry32 Monte Carlo simulation over uncertain cost, latency, or duration variables to compute P10/P50/P90/P95 percentiles, Value-at-Risk (VaR), and CVaR. Use when modeling stochastic uncertainty, tail risk (VaR/CVaR), and probability of meeting a budget or SLA target; for evaluating deterministic single-point algebraic formulas or exact NPV/IRR cashflows, use evaluate_deterministic_math instead. Read-only edge call (32 KB, 60 RPM): accepts 'variables_json' (with enum defaults), uses '?demo=true' or L402 (20 sats); HTTP 400 if invalid.
| Parameter | Type | Description |
|---|---|---|
| variables_json * | string | JSON array of stochastic variables (e.g. name, min, mode, max) to simulate. |
| distribution_model | string | Probability distribution family applied to each variable; defaults to 'triangular_pert' when omitted. |
{
"name": "simulate_monte_carlo_risk",
"title": "Seeded Mulberry32 Monte Carlo Percentile, VaR & Tail-Risk Simulator",
"description": "Runs a reproducible seeded Mulberry32 Monte Carlo simulation over uncertain cost, latency, or duration variables to compute P10/P50/P90/P95 percentiles, Value-at-Risk (VaR), and CVaR. Use when modeling stochastic uncertainty, tail risk (VaR/CVaR), and probability of meeting a budget or SLA target; for evaluating deterministic single-point algebraic formulas or exact NPV/IRR cashflows, use evaluate_deterministic_math instead. Read-only edge call (32 KB, 60 RPM): accepts 'variables_json' (with enum defaults), uses '?demo=true' or L402 (20 sats); HTTP 400 if invalid.",
"inputSchema": {
"type": "object",
"required": [
"variables_json"
],
"properties": {
"variables_json": {
"type": "string",
"description": "JSON array of stochastic variables (e.g. name, min, mode, max) to simulate."
},
"distribution_model": {
"enum": [
"triangular_pert",
"normal_gaussian",
"uniform_range"
],
"type": "string",
"description": "Probability distribution family applied to each variable; defaults to 'triangular_pert' when omitted."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"trials_executed",
"percentiles",
"value_at_risk_95",
"conditional_tail_expectation_95"
],
"properties": {
"percentiles": {
"type": "object",
"description": "Computed p10, p50_median, p90, p95, and p99 outcome distribution percentiles."
},
"trials_executed": {
"type": "integer",
"description": "Number of seeded Monte Carlo trials executed."
},
"value_at_risk_95": {
"type": "number",
"description": "95% Value-at-Risk (VaR_95) threshold."
},
"conditional_tail_expectation_95": {
"type": "number",
"description": "95% Conditional Tail Expectation (CVaR_95 / Expected Shortfall) across the worst 5% of trials."
}
},
"description": "Deterministic response schema for simulate_monte_carlo_risk."
},
"annotations": {
"title": "Seeded Mulberry32 Monte Carlo Percentile, VaR & Tail-Risk Simulator",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Welcome to Diogenes Edge Gateway (121 Deterministic Microservices). To preserve token context, tools are lazy-loaded via 3 Meta-Tools: 1. 'diogenes_discover_tools': Search for capabilities by keyword or domain suite (gemini-suite, eve-frontier, web3-security, agent-guardrails, dev-utilities, neural-search-engine, data-pipeline, crypto-market, code-execution). 2. 'diogenes_inspect_tool': Retrieve full JSON Schema and required parameters for up to 5 tools. 3. 'diogenes_execute_tool': Execute any tool. Free-tier tools (e.g. malformed_json_healer, guardrail_verify, ast_sql_validator) execute with zero auth. Paid tools accept Lightning L402, Solana x402, Base MPP, or Garlicoin settlement.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.