Diogenes Dev & Data Utilities MCP

v1.1.0
io.github.stand-out-of-my-sun/diogenes-dev-utilities-mcp Checked 4 days ago Published 12 days ago

JSON healing, O(n) ReDoS defense, XML prompt compilation, and schema verification tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

heal_malformed_json Deterministic Malformed JSON Syntax & Truncation Healer

Deterministic JSON syntax repair: normalizes quotes, unclosed brackets, and boolean literals into compliant RFC 8259 JSON structure without data deletion. Use when fixing syntax-broken JSON strings that fail JSON.parse(); for coercing field types and verifying properties on already-parseable JSON objects against a target JSON Schema, use enforce_json_schema_types instead. Read-only edge call (32 KB, 60 RPM): accepts 'malformed_json' (with enum defaults), uses '?demo=true' or L402 (15 sats); HTTP 400 if invalid.

ParameterTypeDescription
malformed_json *stringRaw broken, truncated, or markdown-wrapped JSON string to repair.
repair_modestringBracket-closing and literal-normalization strategy; defaults to 'heuristic_fast' when omitted.

enforce_json_schema_types Strict JSON Schema Validator, Type Coercer & Field Pruner

Validates a raw LLM output object against a target JSON Schema, automatically coercing mismatched scalar types (e.g. string '42' to integer 42), injecting schema defaults, and pruning undeclared hallucinated fields. Use when enforcing schema compliance and type safety on structured LLM outputs before passing them to typed APIs; for healing unparseable raw JSON text with broken quotes or trailing commas, use heal_malformed_json instead. Read-only edge call (32 KB, 60 RPM): accepts 'raw_output' (with enum defaults), uses '?demo=true' or L402 (15 sats); HTTP 400 if invalid.

ParameterTypeDescription
raw_output *stringJSON string or object produced by an LLM to validate and coerce.
coercion_policystringPolicy for handling extra undeclared properties; defaults to 'prune_undeclared_and_coerce' when omitted.

clean_tabular_dataset Tabular Dataset & Text Deduplication, Whitespace & Normalization Engine

Deduplicates repetitive lines or records, normalizes Unicode whitespace, strips HTML/control noise, and canonicalizes tabular text or JSON arrays. Use when cleaning noisy scraped lists, CSV rows, or duplicate log lines before indexing or analysis; for extracting typed JSON fields from free-form prose paragraphs, use extract_structured_json_entities instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'data' ('normalization_mode' defaults to 'exact_match'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.

ParameterTypeDescription
data *stringRaw newline-delimited text, CSV rows, or JSON array string to deduplicate and normalize.
normalization_modestringDeduplication key sensitivity; defaults to 'case_insensitive_trim' when omitted.

synthesize_safe_regex Linear-Time O(n) ReDoS-Safe Regular Expression Synthesizer & Tester

Synthesizes linear-time O(n) regular expressions free of catastrophic backtracking (ReDoS) and validates them against positive and negative test strings. Use when generating and verifying a regular expression pattern for input validation or lexical parsing; for repairing broken JSON syntax directly without writing custom regexes, use heal_malformed_json instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'description' ('flavor' defaults to 'ecmascript_js'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.

ParameterTypeDescription
description *stringNatural-language specification of the text pattern to match (e.g. 'RFC 5322 email addresses excluding plus-aliases').
flavorstringTarget regular expression engine syntax; defaults to 'ecmascript_js' when omitted.

compile_xml_agent_prompt Production XML-Structured System Prompt & Guardrail Compiler

Compiles a raw task description into a structured XML system prompt (<role>, <context>, <objective>, <constraints>, <workflow>, <output_format>) engineered to prevent instruction drift. Use when authoring or upgrading a system prompt for an autonomous agent or sub-agent workflow; for mapping a task objective to a concrete sequence of MCP tool calls, use route_mcp_workflow_plan instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'task' ('prompt_style' defaults to 'structured_xml_tags'), supports '?demo=true' or L402 (20 sats), and returns HTTP 400 if invalid.

ParameterTypeDescription
task *stringRaw task instructions, persona goal, and operational constraints to compile.
prompt_stylestringStructural formatting template; defaults to 'structured_xml_tags' when omitted.

verify_context_compaction_fidelity Pre/Post Context Compaction Information Retention Verifier

Audits a compacted conversation summary against the original full context to detect dropped user constraints, lost file paths, altered numbers, or missing pending tasks. Use when verifying that an LLM context-compaction summary retained all task-critical facts before truncating history; for generating a new executive summary from a raw technical document, use summarize_technical_document instead. Read-only edge call (32 KB, 60 RPM): accepts 'original_context' ('compacted_summary' defaults to 'standard'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.

ParameterTypeDescription
compacted_summary *stringCandidate compacted summary to audit for dropped constraints or entities.
original_context *stringFull pre-compaction conversation history or task log.
audit_focusstringEntity class prioritized during retention scoring; defaults to 'constraints_paths_and_numbers' when omitted.

route_mcp_workflow_plan Autonomous Goal-to-MCP Tool Sequence Router & Cost Planner

Maps a natural-language agent goal to an ordered sequence of Diogenes MCP tool calls with exact endpoint paths, JSON-RPC 2.0 payloads, and cumulative satoshi cost estimates. Use when an autonomous agent needs to plan which MCP tools to chain together to solve a multi-step objective within a satoshi budget; for compiling a static XML system prompt rather than an executable MCP tool call sequence, use compile_xml_agent_prompt instead. Read-only edge call (32 KB, 60 RPM): accepts 'objective' ('budget_preference' defaults to 'lowest_sats_deterministic'), uses '?demo=true' or L402 (20 sats); HTTP 4…

ParameterTypeDescription
objective *stringNatural-language description of the workflow goal to route across MCP tools.
budget_preferencestringCost vs depth routing trade-off; defaults to 'lowest_sats_deterministic' when omitted.

arbitrate_agent_deliverable_escrow Multi-Agent Task Deliverable & Contract Fulfillment Escrow Arbiter

Evaluates a worker agent's submitted task deliverable against agreed contract acceptance criteria to issue a deterministic escrow settlement verdict ('RELEASE_FUNDS_TO_WORKER_AGENT', 'REQUEST_REVISION', or 'REFUND_CLIENT'). Use when settling multi-agent bounties or verifying subcontractor deliverables before releasing MPP/L402 escrow funds; for checking syntactic JSON Schema property types without evaluating semantic contract terms, use enforce_json_schema_types instead. Read-only call (32 KB, 60 RPM): accepts 'deliverable' (with enum defaults), uses '?demo=true' or MPP (30 sats); HTTP 400 if…

ParameterTypeDescription
deliverable *stringJSON string or text deliverable submitted by the worker agent.
arbitration_standardstringStrictness of contract verification; defaults to 'strict_all_criteria' when omitted.
termsstringContract acceptance criteria that the deliverable must satisfy; defaults to 'Complete verified JSON deliverable' when omitted.

extract_structured_json_entities Unstructured Text to Typed JSON Entity & Record Extractor

Extracts structured JSON records, named entities, dates, and financial figures from unstructured prose, emails, or HTML/Markdown dumps. Use when converting unstructured natural-language text into a structured JSON array of entities; for validating and coercing an existing JSON payload against a formal JSON Schema, use enforce_json_schema_types instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'text' ('extraction_target' defaults to 'general_entities_and_metrics'), supports '?demo=true' or L402 (25 sats), and returns HTTP 400 if invalid.

ParameterTypeDescription
text *stringUnstructured document, email body, or webpage text to extract structured entities from.
extraction_targetstringPrimary entity domain to extract; defaults to 'general_entities_and_metrics' when omitted.

synthesize_python_automation_code Self-Contained Python Script, CLI & Parser Code Synthesizer

Synthesizes PEP 8 compliant, self-contained Python 3 scripts, data parsers, and CLI utilities complete with type hints, docstrings, and inline assertion tests. Use when generating a standalone Python automation script or parser from a functional specification; for summarizing existing documentation or codebases into executive bullet points, use summarize_technical_document instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'prompt' ('dependency_policy' defaults to 'stdlib_only'), supports '?demo=true' or L402 (75 sats), and returns HTTP 400 if invalid.

ParameterTypeDescription
prompt *stringFunctional specification, input/output formats, and edge cases for the Python script.
dependency_policystringAllowed library dependencies in generated code; defaults to 'stdlib_only' when omitted.

summarize_technical_document High-Density Technical Document & RFC Executive Summarizer

Condenses long technical specifications, RFCs, research papers, or meeting transcripts into high-density executive bullet points preserving exact figures and decisions. Use when producing a human-readable executive summary of a single provided document; for researching a topic across the live web with Google Search citations, use synthesize_web_intelligence_brief instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'text' ('summary_format' defaults to 'executive_bullets'), supports '?demo=true' or L402 (50 sats), and returns HTTP 400 if invalid.

ParameterTypeDescription
text *stringFull document text, RFC, or transcript to summarize.
summary_formatstringOutput presentation structure; defaults to 'executive_bullets' when omitted.

synthesize_web_intelligence_brief Real-Time Google Search Grounded JSON Market Intelligence Brief

Synthesizes a real-time market or technical intelligence brief grounded in live Google Search, returning strict JSON ('executive_summary', 'key_developments', 'sentiment', 'sources'). Use when fetching a structured JSON market/news brief with live web citations and sentiment classification; for summarizing caller-supplied text offline without live web search, use summarize_technical_document instead. Read-only edge call (32 KB, 60 RPM): accepts 'topic' ('focus' defaults to 'technical_and_market_catalysts'), supports '?demo=true' or L402 (75 sats), and returns HTTP 400 if invalid.

ParameterTypeDescription
topic *stringCompany, protocol, market sector, or technical topic to brief.
focusstringAnalytical angle applied to the brief; defaults to 'technical_and_market_catalysts' when omitted.

infer_mpp_streaming_session Account Billing Lifecycle, Multi-Rail Session Credit & Quota Inspector

Inspects account billing lifecycle, prepaid multi-rail credit (GRLC, Lightning sats, Base USDC, Solana), session key validity, and allocates streaming token quotas. Use when verifying prepaid balance, inspecting top-up deposit addresses, or initializing metered MPP inference sessions; for mapping a high-level task to MCP tools, use route_mcp_workflow_plan instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'action' ('lifecycle_stage' defaults to 'active_session'), supports '?demo=true' or MPP (100 sats), and returns HTTP 400.

ParameterTypeDescription
actionstringOperation: 'check_billing_lifecycle' to inspect balance/deposit addresses, or 'allocate_session' to plan metered streaming quota.
taskstringAgent workflow task to execute within the metered MPP session.
token_quota_tierstringAllocated streaming token ceiling for the session; defaults to 'standard_4096' when omitted.

generate_x402_vector_embeddings Solana x402 USDC-Settled Semantic Vector Embedding Generator

Generates normalized high-dimensional semantic vector embeddings settled via Solana SPL USDC ('x402' protocol headers) for decentralized RAG pipelines. Use when computing text embeddings paid via Solana USDC x402 signatures rather than Bitcoin Lightning; for extracting discrete JSON entities from unstructured text, use extract_structured_json_entities instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'text' ('encoding_format' defaults to 'float_array'), supports '?demo=true' or x402 (10 sats), and returns HTTP 400 if invalid.

ParameterTypeDescription
text *stringInput text string or document chunk to convert into a normalized embedding vector.
encoding_formatstringVector serialization format; defaults to 'float_array' when omitted.