{
  "name": "diogenes-dev-utilities-mcp",
  "package": "dev-utilities",
  "server_id": "io.github.stand-out-of-my-sun/diogenes-dev-utilities",
  "tensorblock_profile_id": "github-stand-out-of-my-sun-diogenes-dev-utilities-mcp-817237bc",
  "version": "2.5.0",
  "description": "Deterministic developer & data reliability MCP utilities: malformed JSON healer, O(n) ReDoS-safe regex synthesizer, XML prompt compiler, JSON Schema enforcer, MCP router, context compaction verifier, hallucination auditor, escrow arbiter, and CSV/JSON cleaner.",
  "protocol": "mcp-2024-11-05",
  "transport": "streamable-http",
  "category": "Security",
  "license": "MIT",
  "maintainer": "@stand-out-of-my-sun",
  "auth": {
    "type": "none",
    "accountless": true,
    "summary": "No auth required for free tier, MCP tool discovery, and ?demo=true previews (no account, no API key, no registration). Optional pay-per-request L402/x402/MPP headers for production execution.",
    "headers": {
      "L402": "Authorization: L402 <macaroon>:<preimage_hex>",
      "x402": "X-Payment-Signature: <solana_tx_signature>",
      "MPP": "X-Payment-TxHash: <base_evm_tx_hash>"
    }
  },
  "install_confidence": "high",
  "verification": {
    "status": "verified",
    "maintainer": "@stand-out-of-my-sun",
    "tensorblock_json": "https://diogenes-micro-gateway.corinth.workers.dev/.well-known/tensorblock.json",
    "glama_json": "https://diogenes-micro-gateway.corinth.workers.dev/.well-known/glama.json",
    "health_check": "https://diogenes-micro-gateway.corinth.workers.dev/api/v1/health"
  },
  "homepage": "https://diogenes-micro-gateway.corinth.workers.dev",
  "endpoints": {
    "mcp_streamable_http": "https://diogenes-micro-gateway.corinth.workers.dev/mcp",
    "health": "https://diogenes-micro-gateway.corinth.workers.dev/api/v1/health",
    "docs": "https://diogenes-micro-gateway.corinth.workers.dev/llms.txt",
    "support": "https://github.com/stand-out-of-my-sun/diogenes-micro-gateway/issues",
    "l402_lightning": "diogenesrecv0e236a@coinos.io",
    "x402_solana": "3vuU9jvaohMG6oPY7NVrUggcSJ4CuhcByxoQk68EC6hj",
    "mpp_base_evm": "0x0E97828055Ea1291e57dB32EBEfC6e7b3F7AcACb",
    "garlicoin_segwit": "grlc1qnd34hu5jrde5akkezy3c6y4vzw6xtntpxwdwxh",
    "garlicoin_classic": "GY1YBTTfgCEjMspTxJUed3FkvSasNgMQWu",
    "bsc_grlc": "0x7E720EE1675fd81aCfF14692E864eCFA17dc3e3e",
    "bsc_wgrlc_contract": "0x7283DfA2d8D7e277b148cc263B5d8Ae02f1076D3"
  },
  "tools": [
    {
      "name": "heal_malformed_json",
      "title": "Deterministic Malformed JSON Syntax & Truncation Healer",
      "description": "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.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "malformed_json": {
            "type": "string",
            "description": "Raw broken, truncated, or markdown-wrapped JSON string to repair."
          },
          "repair_mode": {
            "type": "string",
            "description": "Bracket-closing and literal-normalization strategy; defaults to 'heuristic_fast' when omitted.",
            "enum": [
              "heuristic_fast",
              "strict_rfc8259",
              "close_truncated_stream"
            ]
          }
        },
        "required": [
          "malformed_json"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for heal_malformed_json.",
        "properties": {
          "status": {
            "type": "string",
            "description": "Repair outcome ('repaired' or 'valid_as_is')."
          },
          "repaired_json": {
            "type": "string",
            "description": "Valid RFC 8259 JSON string after syntax healing."
          },
          "parsed_object": {
            "type": "object",
            "description": "Deserialized JSON object produced from the repaired string."
          },
          "fixes_applied": {
            "type": "array",
            "description": "List of lexical repairs performed."
          }
        },
        "required": [
          "status",
          "repaired_json",
          "parsed_object",
          "fixes_applied"
        ]
      },
      "annotations": {
        "title": "Deterministic Malformed JSON Syntax & Truncation Healer",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "enforce_json_schema_types",
      "title": "Strict JSON Schema Validator, Type Coercer & Field Pruner",
      "description": "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.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "raw_output": {
            "type": "string",
            "description": "JSON string or object produced by an LLM to validate and coerce."
          },
          "coercion_policy": {
            "type": "string",
            "description": "Policy for handling extra undeclared properties; defaults to 'prune_undeclared_and_coerce' when omitted.",
            "enum": [
              "prune_undeclared_and_coerce",
              "coerce_only_keep_extra",
              "strict_reject_on_mismatch"
            ]
          }
        },
        "required": [
          "raw_output"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for enforce_json_schema_types.",
        "properties": {
          "valid": {
            "type": "boolean",
            "description": "True when the resulting enforced_object satisfies the schema."
          },
          "coercions_applied": {
            "type": "array",
            "description": "List of type conversions and default injections performed."
          },
          "unrecognized_fields_pruned": {
            "type": "array",
            "description": "Hallucinated property keys removed during enforcement."
          },
          "enforced_object": {
            "type": "object",
            "description": "Clean, schema-compliant JSON object."
          }
        },
        "required": [
          "valid",
          "coercions_applied",
          "unrecognized_fields_pruned",
          "enforced_object"
        ]
      },
      "annotations": {
        "title": "Strict JSON Schema Validator, Type Coercer & Field Pruner",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "clean_tabular_dataset",
      "title": "Tabular Dataset & Text Deduplication, Whitespace & Normalization Engine",
      "description": "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.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "description": "Raw newline-delimited text, CSV rows, or JSON array string to deduplicate and normalize."
          },
          "normalization_mode": {
            "type": "string",
            "description": "Deduplication key sensitivity; defaults to 'case_insensitive_trim' when omitted.",
            "enum": [
              "exact_match",
              "case_insensitive_trim",
              "alphanumeric_canonical"
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for clean_tabular_dataset.",
        "properties": {
          "original_count": {
            "type": "integer",
            "description": "Line or record count prior to deduplication."
          },
          "cleaned_count": {
            "type": "integer",
            "description": "Unique non-empty record count after cleanup."
          },
          "duplicates_removed": {
            "type": "integer",
            "description": "Number of duplicate records eliminated."
          },
          "cleaned_data": {
            "type": "array",
            "description": "Deduplicated, whitespace-normalized records."
          }
        },
        "required": [
          "original_count",
          "cleaned_count",
          "duplicates_removed",
          "cleaned_data"
        ]
      },
      "annotations": {
        "title": "Tabular Dataset & Text Deduplication, Whitespace & Normalization Engine",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "synthesize_safe_regex",
      "title": "Linear-Time O(n) ReDoS-Safe Regular Expression Synthesizer & Tester",
      "description": "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.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "description": "Natural-language specification of the text pattern to match (e.g. 'RFC 5322 email addresses excluding plus-aliases')."
          },
          "flavor": {
            "type": "string",
            "description": "Target regular expression engine syntax; defaults to 'ecmascript_js' when omitted.",
            "enum": [
              "ecmascript_js",
              "python_re",
              "rust_regex_dfa",
              "pcre2"
            ]
          }
        },
        "required": [
          "description"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for synthesize_safe_regex.",
        "properties": {
          "pattern": {
            "type": "string",
            "description": "Synthesized regular expression pattern string (without slash delimiters)."
          },
          "redos_safe": {
            "type": "boolean",
            "description": "True when static star-height analysis confirms zero exponential backtracking."
          },
          "time_complexity": {
            "type": "string",
            "description": "Worst-case matching complexity ('O(n)')."
          },
          "test_results": {
            "type": "array",
            "description": "Pass/fail verification results across positive and negative test cases."
          }
        },
        "required": [
          "pattern",
          "redos_safe",
          "time_complexity",
          "test_results"
        ]
      },
      "annotations": {
        "title": "Linear-Time O(n) ReDoS-Safe Regular Expression Synthesizer & Tester",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "compile_xml_agent_prompt",
      "title": "Production XML-Structured System Prompt & Guardrail Compiler",
      "description": "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 'anthropic_xml_tags'), supports '?demo=true' or L402 (20 sats), and returns HTTP 400 if invalid.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "task": {
            "type": "string",
            "description": "Raw task instructions, persona goal, and operational constraints to compile."
          },
          "prompt_style": {
            "type": "string",
            "description": "Structural formatting template; defaults to 'anthropic_xml_tags' when omitted.",
            "enum": [
              "anthropic_xml_tags",
              "markdown_sections",
              "strict_json_responder"
            ]
          }
        },
        "required": [
          "task"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for compile_xml_agent_prompt.",
        "properties": {
          "compiled_prompt": {
            "type": "string",
            "description": "Complete production-grade XML-structured system prompt."
          },
          "optimization_score": {
            "type": "integer",
            "description": "Prompt clarity and constraint-completeness score from 0 to 100."
          },
          "key_enhancements": {
            "type": "array",
            "description": "Specific guardrails and output contract rules injected."
          },
          "estimated_tokens": {
            "type": "integer",
            "description": "Estimated BPE token length of the compiled prompt."
          }
        },
        "required": [
          "compiled_prompt",
          "optimization_score",
          "key_enhancements",
          "estimated_tokens"
        ]
      },
      "annotations": {
        "title": "Production XML-Structured System Prompt & Guardrail Compiler",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "verify_context_compaction_fidelity",
      "title": "Pre/Post Context Compaction Information Retention Verifier",
      "description": "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.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "original_context": {
            "type": "string",
            "description": "Full pre-compaction conversation history or task log."
          },
          "compacted_summary": {
            "type": "string",
            "description": "Candidate compacted summary to audit for dropped constraints or entities."
          },
          "audit_focus": {
            "type": "string",
            "description": "Entity class prioritized during retention scoring; defaults to 'constraints_paths_and_numbers' when omitted.",
            "enum": [
              "constraints_paths_and_numbers",
              "code_identifiers_only",
              "chronological_decisions"
            ]
          }
        },
        "required": [
          "original_context",
          "compacted_summary"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for verify_context_compaction_fidelity.",
        "properties": {
          "retention_score": {
            "type": "number",
            "description": "Information preservation score from 0.0 to 1.0."
          },
          "preserved_entities": {
            "type": "array",
            "description": "Critical constraints, paths, and numbers verified present in the summary."
          },
          "missing_critical_entities": {
            "type": "array",
            "description": "Important entities or constraints dropped during compaction."
          },
          "safe_to_resume": {
            "type": "boolean",
            "description": "True when retention_score >= 0.90 and zero critical constraints were lost."
          }
        },
        "required": [
          "retention_score",
          "preserved_entities",
          "missing_critical_entities",
          "safe_to_resume"
        ]
      },
      "annotations": {
        "title": "Pre/Post Context Compaction Information Retention Verifier",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "route_mcp_workflow_plan",
      "title": "Autonomous Goal-to-MCP Tool Sequence Router & Cost Planner",
      "description": "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 400 if invalid.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "objective": {
            "type": "string",
            "description": "Natural-language description of the workflow goal to route across MCP tools."
          },
          "budget_preference": {
            "type": "string",
            "description": "Cost vs depth routing trade-off; defaults to 'lowest_sats_deterministic' when omitted.",
            "enum": [
              "lowest_sats_deterministic",
              "max_verification_depth",
              "single_tool_fast"
            ]
          }
        },
        "required": [
          "objective"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for route_mcp_workflow_plan.",
        "properties": {
          "objective": {
            "type": "string",
            "description": "Evaluated workflow objective."
          },
          "recommended_sequence": {
            "type": "array",
            "description": "Ordered tool execution steps with tool name, endpoint, and cost_sats."
          },
          "estimated_total_sats": {
            "type": "integer",
            "description": "Cumulative satoshi cost of the planned tool sequence."
          },
          "deterministic_confidence": {
            "type": "number",
            "description": "Router confidence score from 0.80 to 1.0."
          }
        },
        "required": [
          "objective",
          "recommended_sequence",
          "estimated_total_sats",
          "deterministic_confidence"
        ]
      },
      "annotations": {
        "title": "Autonomous Goal-to-MCP Tool Sequence Router & Cost Planner",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "arbitrate_agent_deliverable_escrow",
      "title": "Multi-Agent Task Deliverable & Contract Fulfillment Escrow Arbiter",
      "description": "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 invalid.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "deliverable": {
            "type": "string",
            "description": "JSON string or text deliverable submitted by the worker agent."
          },
          "terms": {
            "type": "string",
            "description": "Contract acceptance criteria that the deliverable must satisfy; defaults to 'Complete verified JSON deliverable' when omitted."
          },
          "arbitration_standard": {
            "type": "string",
            "description": "Strictness of contract verification; defaults to 'strict_all_criteria' when omitted.",
            "enum": [
              "strict_all_criteria",
              "substantial_completion",
              "schema_only"
            ]
          }
        },
        "required": [
          "deliverable"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for arbitrate_agent_deliverable_escrow.",
        "properties": {
          "contract_satisfied": {
            "type": "boolean",
            "description": "True when the deliverable fulfills all stated contract terms."
          },
          "quality_score": {
            "type": "integer",
            "description": "Deliverable quality score from 0 to 100."
          },
          "escrow_action": {
            "type": "string",
            "description": "Settlement command ('RELEASE_FUNDS_TO_WORKER_AGENT', 'REQUEST_REVISION', or 'REFUND_CLIENT')."
          },
          "arbitration_notes": {
            "type": "string",
            "description": "Detailed justification citing satisfied or missing contract clauses."
          }
        },
        "required": [
          "contract_satisfied",
          "quality_score",
          "escrow_action",
          "arbitration_notes"
        ]
      },
      "annotations": {
        "title": "Multi-Agent Task Deliverable & Contract Fulfillment Escrow Arbiter",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "extract_structured_json_entities",
      "title": "Unstructured Text to Typed JSON Entity & Record Extractor",
      "description": "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.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Unstructured document, email body, or webpage text to extract structured entities from."
          },
          "extraction_target": {
            "type": "string",
            "description": "Primary entity domain to extract; defaults to 'general_entities_and_metrics' when omitted.",
            "enum": [
              "general_entities_and_metrics",
              "contacts_and_organizations",
              "financial_line_items",
              "timeline_events"
            ]
          }
        },
        "required": [
          "text"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for extract_structured_json_entities.",
        "properties": {
          "model": {
            "type": "string",
            "description": "Extraction model executed ('gemini-3.8-flash')."
          },
          "extracted_data": {
            "type": "object",
            "description": "Structured JSON object or array containing the extracted entities."
          },
          "success": {
            "type": "boolean",
            "description": "True when entity extraction succeeded."
          },
          "records_count": {
            "type": "integer",
            "description": "Number of distinct entity records extracted."
          }
        },
        "required": [
          "model",
          "extracted_data",
          "success",
          "records_count"
        ]
      },
      "annotations": {
        "title": "Unstructured Text to Typed JSON Entity & Record Extractor",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "synthesize_python_automation_code",
      "title": "Self-Contained Python Script, CLI & Parser Code Synthesizer",
      "description": "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.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "Functional specification, input/output formats, and edge cases for the Python script."
          },
          "dependency_policy": {
            "type": "string",
            "description": "Allowed library dependencies in generated code; defaults to 'stdlib_only' when omitted.",
            "enum": [
              "stdlib_only",
              "allow_requests_and_pydantic",
              "async_httpx_tokio"
            ]
          }
        },
        "required": [
          "prompt"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for synthesize_python_automation_code.",
        "properties": {
          "model": {
            "type": "string",
            "description": "Code synthesis model executed ('gemini-4-argon')."
          },
          "output": {
            "type": "string",
            "description": "Complete Python 3 source code with inline verification assertions."
          },
          "success": {
            "type": "boolean",
            "description": "True when code synthesis succeeded."
          },
          "stdlib_only": {
            "type": "boolean",
            "description": "True if the generated script requires zero third-party pip packages."
          }
        },
        "required": [
          "model",
          "output",
          "success",
          "stdlib_only"
        ]
      },
      "annotations": {
        "title": "Self-Contained Python Script, CLI & Parser Code Synthesizer",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "summarize_technical_document",
      "title": "High-Density Technical Document & RFC Executive Summarizer",
      "description": "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.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Full document text, RFC, or transcript to summarize."
          },
          "summary_format": {
            "type": "string",
            "description": "Output presentation structure; defaults to 'executive_bullets' when omitted.",
            "enum": [
              "executive_bullets",
              "decision_log_table",
              "one_paragraph_abstract"
            ]
          }
        },
        "required": [
          "text"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for summarize_technical_document.",
        "properties": {
          "model": {
            "type": "string",
            "description": "Summarization model executed ('gemini-3.8-flash')."
          },
          "summary": {
            "type": "string",
            "description": "High-density technical summary text."
          },
          "success": {
            "type": "boolean",
            "description": "True when summarization completed."
          },
          "compression_achieved": {
            "type": "boolean",
            "description": "True when output length is <25% of input length."
          }
        },
        "required": [
          "model",
          "summary",
          "success",
          "compression_achieved"
        ]
      },
      "annotations": {
        "title": "High-Density Technical Document & RFC Executive Summarizer",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "synthesize_web_intelligence_brief",
      "title": "Real-Time Google Search Grounded JSON Market Intelligence Brief",
      "description": "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.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "description": "Company, protocol, market sector, or technical topic to brief."
          },
          "focus": {
            "type": "string",
            "description": "Analytical angle applied to the brief; defaults to 'technical_and_market_catalysts' when omitted.",
            "enum": [
              "technical_and_market_catalysts",
              "security_incidents",
              "regulatory_and_macro"
            ]
          }
        },
        "required": [
          "topic"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for synthesize_web_intelligence_brief.",
        "properties": {
          "topic": {
            "type": "string",
            "description": "Researched intelligence topic."
          },
          "executive_summary": {
            "type": "string",
            "description": "Concise synthesis of current developments."
          },
          "key_developments": {
            "type": "array",
            "description": "Dated factual developments grounded in search results."
          },
          "sentiment": {
            "type": "string",
            "description": "Directional sentiment classification ('BULLISH', 'BEARISH', or 'NEUTRAL')."
          },
          "sources": {
            "type": "array",
            "description": "Verified web source titles and URLs."
          }
        },
        "required": [
          "topic",
          "executive_summary",
          "key_developments",
          "sentiment",
          "sources"
        ]
      },
      "annotations": {
        "title": "Real-Time Google Search Grounded JSON Market Intelligence Brief",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true
      }
    },
    {
      "name": "infer_mpp_streaming_session",
      "title": "Base EVM Machine Payments Protocol (MPP) Streaming Session Planner",
      "description": "Initializes a Base USDC Machine Payments Protocol (MPP) metered inference session, allocating a streaming token quota and returning a step-by-step execution plan. Use when running session-metered agent planning settled via Base EVM MPP 'Payment-Challenge' headers; for mapping a task goal to L402 MCP tool calls without opening an MPP streaming session, use route_mcp_workflow_plan instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'task' ('token_quota_tier' defaults to 'compact_1024'), supports '?demo=true' or MPP (100 sats), and returns HTTP 400 if invalid.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "task": {
            "type": "string",
            "description": "Agent workflow task to execute within the metered MPP session."
          },
          "token_quota_tier": {
            "type": "string",
            "description": "Allocated streaming token ceiling for the session; defaults to 'standard_4096' when omitted.",
            "enum": [
              "compact_1024",
              "standard_4096",
              "extended_16384"
            ]
          }
        },
        "required": [
          "task"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for infer_mpp_streaming_session.",
        "properties": {
          "session_id": {
            "type": "string",
            "description": "Unique MPP streaming session identifier."
          },
          "streaming_tokens_allocated": {
            "type": "integer",
            "description": "Token budget reserved for the session."
          },
          "plan": {
            "type": "array",
            "description": "Ordered execution steps generated for the task."
          },
          "session_status": {
            "type": "string",
            "description": "Session lifecycle state ('ACTIVE_STREAMING')."
          }
        },
        "required": [
          "session_id",
          "streaming_tokens_allocated",
          "plan",
          "session_status"
        ]
      },
      "annotations": {
        "title": "Base EVM Machine Payments Protocol (MPP) Streaming Session Planner",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "generate_x402_vector_embeddings",
      "title": "Solana x402 USDC-Settled Semantic Vector Embedding Generator",
      "description": "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.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Input text string or document chunk to convert into a normalized embedding vector."
          },
          "encoding_format": {
            "type": "string",
            "description": "Vector serialization format; defaults to 'float_array' when omitted.",
            "enum": [
              "float_array",
              "base64_float32"
            ]
          }
        },
        "required": [
          "text"
        ]
      },
      "outputSchema": {
        "type": "object",
        "description": "Deterministic response schema for generate_x402_vector_embeddings.",
        "properties": {
          "model": {
            "type": "string",
            "description": "Embedding model executed ('gemini-embedding-2')."
          },
          "dimensions": {
            "type": "integer",
            "description": "Number of float dimensions in the returned vector."
          },
          "normalized": {
            "type": "boolean",
            "description": "Always true; vectors are L2-normalized to unit length."
          },
          "embedding": {
            "type": "array",
            "description": "Normalized floating-point vector array."
          }
        },
        "required": [
          "model",
          "dimensions",
          "normalized",
          "embedding"
        ]
      },
      "annotations": {
        "title": "Solana x402 USDC-Settled Semantic Vector Embedding Generator",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    }
  ]
}