{
  "$schema": "https://modelcontextprotocol.io/schema/server-card.json",
  "schemaVersion": "1.0.0",
  "id": "xicae-sovereign-agent-mesh",
  "name": "Xicae Sovereign Agent Mesh & Computational Edge MCP",
  "version": "2027.1.0",
  "description": "Deterministic edge computational tools & client-side recipes for astronomy ephemeris, media compression, code scaffolding, spreadsheet formulas, vector diagrams, and developer utilities.",
  "vendor": {
    "name": "Xicae Atelier",
    "url": "https://xicae.org",
    "email": "care@xicae.com"
  },
  "homepage": "https://xicae.dev",
  "documentation": "https://xicae.dev/llms.txt",
  "fullDocumentation": "https://xicae.dev/llms-full.txt",
  "repository": "https://github.com/Dhu-al-Kifl",
  "icon": "https://xicae.dev/favicon.svg",
  "capabilities": {
    "tools": {
      "listChanged": false
    },
    "logging": {}
  },
  "transport": {
    "type": "streamable-http",
    "endpoint": "https://api.xicae.dev/mcp",
    "contentType": "application/json"
  },
  "namespacedRouters": {
    "miqat": {
      "endpoint": "https://api.xicae.dev/mcp/miqat",
      "toolsCount": 5,
      "description": "Astronomical solar ephemeris, 100k+ offline cities prayer times, and Qibla vectors"
    },
    "compress": {
      "endpoint": "https://api.xicae.dev/mcp/compress",
      "toolsCount": 7,
      "description": "Client-side video, audio, image, and PDF compression recipes & WASM pipelines"
    },
    "webcode": {
      "endpoint": "https://api.xicae.dev/mcp/webcode",
      "toolsCount": 6,
      "description": "Code scaffolding, AST analysis, formatting, and sandbox recipes"
    },
    "weboffice": {
      "endpoint": "https://api.xicae.dev/mcp/weboffice",
      "toolsCount": 6,
      "description": "Spreadsheet formula evaluation, matrix transformations, and tabular schemas"
    },
    "stylus": {
      "endpoint": "https://api.xicae.dev/mcp/stylus",
      "toolsCount": 7,
      "description": "Mermaid-to-SVG rendering, vector diagrams, bezier math, and WCAG design tokens"
    },
    "utility": {
      "endpoint": "https://api.xicae.dev/mcp/utility",
      "toolsCount": 6,
      "description": "Deterministic math expressions, unit conversions, diffs, regex, and cryptography"
    }
  },
  "monetization": {
    "model": "freemium-x402",
    "freeTier": {
      "quota": 5,
      "period": "daily",
      "unit": "requests_per_ip",
      "authentication": "none"
    },
    "paidTier": {
      "protocol": "x402",
      "network": "eip155:8453",
      "asset": "USDC",
      "pricePerRequest": "0.002",
      "recipient": "0x3C2faAfb599F54bb95D1eea4dF18e395FDEDc7eA"
    }
  },
  "tools": [
    {
      "name": "miqat_get_prayer_times",
      "description": "Calculate verified daily prayer times (Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha), Suhoor end, Iftar, fasting duration, and Qibla bearing. Accepts city name (e.g. \"Delhi\", \"London\") or Indian 6-digit postal PIN code (e.g. \"110001\") with zero manual coordinates needed.",
      "parameters": {
        "type": "object",
        "properties": {
          "city_or_pin_code": {
            "type": "string",
            "description": "City name or Indian postal PIN code (auto-resolves coordinates, timezone, calculation method, and Asr school)"
          },
          "latitude": {
            "type": "number",
            "description": "Latitude in decimal degrees (optional if city_or_pin_code provided)"
          },
          "longitude": {
            "type": "number",
            "description": "Longitude in decimal degrees (optional if city_or_pin_code provided)"
          },
          "date": {
            "type": "string",
            "description": "Date in YYYY-MM-DD format (defaults to current date)"
          },
          "calculation_method": {
            "type": "string",
            "description": "Calculation standard convention (auto-selected by region if omitted)",
            "enum": [
              "UmmAlQura",
              "MuslimWorldLeague",
              "ISNA",
              "Egyptian",
              "Karachi",
              "Tehran"
            ]
          },
          "asr_school": {
            "type": "string",
            "description": "Asr calculation shadow ratio standard (Hanafi for South Asia, Shafi for others)",
            "enum": [
              "Shafi",
              "Hanafi"
            ]
          }
        },
        "required": []
      },
      "namespace": "miqat",
      "category": "Astronomy & Compass"
    },
    {
      "name": "miqat_calculate_qibla_vector",
      "description": "Calculate Great Circle geodesic forward azimuth bearing in degrees, compass quadrant, and distance in km from any city, PIN code, or coordinates to the Kaaba in Mecca.",
      "parameters": {
        "type": "object",
        "properties": {
          "city_or_pin_code": {
            "type": "string",
            "description": "City name or postal PIN code"
          },
          "latitude": {
            "type": "number",
            "description": "Observer latitude in decimal degrees"
          },
          "longitude": {
            "type": "number",
            "description": "Observer longitude in decimal degrees"
          }
        },
        "required": []
      },
      "namespace": "miqat",
      "category": "Astronomy & Compass"
    },
    {
      "name": "miqat_convert_hijri_date",
      "description": "Convert between Gregorian calendar and Umm al-Qura Islamic Hijri calendar with moon phase illumination and Islamic holiday detection.",
      "parameters": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "Gregorian date in YYYY-MM-DD format (defaults to today)"
          },
          "offset_days": {
            "type": "number",
            "description": "Manual lunar sighting offset (-2 to +2)"
          }
        },
        "required": []
      },
      "namespace": "miqat",
      "category": "Astronomy & Compass"
    },
    {
      "name": "miqat_crescent_visibility",
      "description": "Calculate astronomical lunar crescent visibility score using Odeh and Yallop criteria, moon lag time after sunset, and visibility classification (Zone A to Zone D) for Eid and month starts.",
      "parameters": {
        "type": "object",
        "properties": {
          "city_or_pin_code": {
            "type": "string",
            "description": "City name or postal PIN code"
          },
          "latitude": {
            "type": "number",
            "description": "Observer latitude in decimal degrees"
          },
          "longitude": {
            "type": "number",
            "description": "Observer longitude in decimal degrees"
          },
          "date": {
            "type": "string",
            "description": "Date in YYYY-MM-DD format"
          }
        },
        "required": []
      },
      "namespace": "miqat",
      "category": "Astronomy & Compass"
    },
    {
      "name": "miqat_sun_position_now",
      "description": "Calculate instantaneous solar altitude angle, solar azimuth bearing, solar zenith angle, equation of time, and sundial shadow length multiplier for any city or coordinates.",
      "parameters": {
        "type": "object",
        "properties": {
          "city_or_pin_code": {
            "type": "string",
            "description": "City name or postal PIN code"
          },
          "latitude": {
            "type": "number",
            "description": "Observer latitude in decimal degrees"
          },
          "longitude": {
            "type": "number",
            "description": "Observer longitude in decimal degrees"
          },
          "date": {
            "type": "string",
            "description": "Date and time in ISO format or YYYY-MM-DD"
          }
        },
        "required": []
      },
      "namespace": "miqat",
      "category": "Astronomy & Compass"
    },
    {
      "name": "compress_calculate_optimization_target",
      "description": "Calculate mathematical compression parameters (CRF, bitrate, scale factor, and ready-to-run FFmpeg CLI string) to shrink media files to strict platform limits with zero guesswork.",
      "parameters": {
        "type": "object",
        "properties": {
          "preset": {
            "type": "string",
            "enum": [
              "whatsapp_video",
              "whatsapp_status",
              "gmail_attachment",
              "discord_free",
              "twitter_x",
              "instagram_story",
              "web_hero_background",
              "job_portal_resume_pdf",
              "email_pdf_5mb",
              "passport_photo_50kb",
              "custom"
            ],
            "description": "Pre-baked target profile preset (auto-configures size caps, resolutions, and codecs)"
          },
          "current_size_mb": {
            "type": "number",
            "description": "Current asset size in megabytes (optional)"
          },
          "target_max_size_mb": {
            "type": "number",
            "description": "Maximum allowable file size in megabytes (auto-filled by preset)"
          },
          "source_resolution": {
            "type": "string",
            "description": "Source resolution (e.g. 1920x1080, 3840x2160)"
          },
          "duration_seconds": {
            "type": "number",
            "description": "Duration in seconds for video"
          }
        },
        "required": [
          "preset"
        ]
      },
      "namespace": "compress",
      "category": "Media Compressor"
    },
    {
      "name": "compress_calculate_audio_target",
      "description": "Calculate optimal audio encoding bitrates, sample rates (Hz), channels, and ITU-R BS.1770 LUFS loudness normalization for speech, podcasts, music, and Whisper AI transcription.",
      "parameters": {
        "type": "object",
        "properties": {
          "preset": {
            "type": "string",
            "enum": [
              "voice_speech_podcast",
              "music_high_fidelity",
              "whisper_ai_transcription",
              "whatsapp_voice_note",
              "telephony_ivr"
            ],
            "description": "Audio content profile preset"
          },
          "duration_seconds": {
            "type": "number",
            "description": "Audio duration in seconds"
          },
          "target_format": {
            "type": "string",
            "enum": [
              "opus",
              "aac",
              "mp3"
            ],
            "description": "Target audio codec"
          }
        },
        "required": [
          "preset"
        ]
      },
      "namespace": "compress",
      "category": "Media Compressor"
    },
    {
      "name": "compress_pdf_downsample_plan",
      "description": "Calculate image downsampling, color space reduction, and font stripping plans to compress bloated PDF documents to strictly enforced thresholds (e.g. 2MB job resumes, 5MB emails).",
      "parameters": {
        "type": "object",
        "properties": {
          "preset": {
            "type": "string",
            "enum": [
              "job_application_resume_2mb",
              "email_attachment_5mb",
              "legal_archival_300dpi",
              "ultra_compact_screen_72dpi"
            ],
            "description": "PDF compaction profile"
          },
          "current_size_mb": {
            "type": "number",
            "description": "Current PDF size in megabytes"
          },
          "convert_to_grayscale": {
            "type": "boolean",
            "description": "Whether to convert color illustrations to monochrome grayscale"
          }
        },
        "required": [
          "preset"
        ]
      },
      "namespace": "compress",
      "category": "Media Compressor"
    },
    {
      "name": "compress_optimize_svg",
      "description": "Losslessly minify and sanitize raw SVG vector text on the edge worker, stripping XML bloat, doctypes, and editor metadata.",
      "parameters": {
        "type": "object",
        "properties": {
          "svg_content": {
            "type": "string",
            "description": "Raw SVG XML string to optimize"
          }
        },
        "required": [
          "svg_content"
        ]
      },
      "namespace": "compress",
      "category": "Media Compressor"
    },
    {
      "name": "compress_inspect_media_container",
      "description": "Inspect audio, video, or image container metadata to detect codecs, stream bitrates, sample rates, and browser/platform compatibility.",
      "parameters": {
        "type": "object",
        "properties": {
          "file_name": {
            "type": "string",
            "description": "Name of the media file"
          },
          "mime_type": {
            "type": "string",
            "description": "MIME type of the asset (e.g. video/mp4, image/heic)"
          },
          "file_size_bytes": {
            "type": "number",
            "description": "Total byte length of the file"
          }
        },
        "required": [
          "file_name",
          "mime_type",
          "file_size_bytes"
        ]
      },
      "namespace": "compress",
      "category": "Media Compressor"
    },
    {
      "name": "compress_generate_wasm_pipeline",
      "description": "Generate client-executable WebCodecs / FFmpeg.wasm pipeline instructions for zero-server in-browser or local agent processing.",
      "parameters": {
        "type": "object",
        "properties": {
          "input_codec": {
            "type": "string",
            "description": "Input container codec"
          },
          "target_codec": {
            "type": "string",
            "enum": [
              "av1",
              "h264",
              "webp",
              "avif",
              "opus",
              "mp3"
            ],
            "description": "Desired target codec"
          },
          "strip_exif_metadata": {
            "type": "boolean",
            "description": "Whether to strip GPS and camera hardware tags"
          }
        },
        "required": [
          "input_codec",
          "target_codec"
        ]
      },
      "namespace": "compress",
      "category": "Media Compressor"
    },
    {
      "name": "compress_get_optimization_recipe",
      "description": "Generate an optimal client-side FFmpeg or WebAssembly compression recipe, calculating exact CRF, video bitrates, and container-safe flags without burning server compute.",
      "parameters": {
        "type": "object",
        "properties": {
          "media_type": {
            "type": "string",
            "enum": [
              "video",
              "audio",
              "image"
            ],
            "description": "Input media type"
          },
          "input_format": {
            "type": "string",
            "description": "Source file format extension"
          },
          "output_format": {
            "type": "string",
            "description": "Target file format extension"
          },
          "duration_seconds": {
            "type": "number",
            "description": "Media duration in seconds"
          },
          "target_size_mb": {
            "type": "number",
            "description": "Target output file size in megabytes"
          },
          "resolution_preset": {
            "type": "string",
            "enum": [
              "1080p",
              "720p",
              "480p",
              "50pct",
              "original"
            ],
            "description": "Resolution scale preset"
          },
          "crf_preset": {
            "type": "number",
            "description": "Constant Rate Factor (16 to 36)"
          },
          "mute_audio": {
            "type": "boolean",
            "description": "Whether to discard audio stream"
          },
          "normalize_audio": {
            "type": "boolean",
            "description": "Whether to apply loudness normalization"
          }
        },
        "required": [
          "media_type",
          "input_format",
          "output_format"
        ]
      },
      "namespace": "compress",
      "category": "Media Compressor"
    },
    {
      "name": "webcode_scaffold_project_boilerplate",
      "description": "Generate a complete, pre-baked multi-file project starter workspace (package.json, source files, config, README) ready to write and run with zero manual configuration.",
      "parameters": {
        "type": "object",
        "properties": {
          "preset": {
            "type": "string",
            "enum": [
              "react_tailwind_app",
              "hono_cloudflare_worker",
              "mcp_server_typescript",
              "python_fastapi_server",
              "vanilla_canvas_game",
              "node_cli_utility"
            ],
            "description": "Pre-baked fullstack archetype preset"
          },
          "project_name": {
            "type": "string",
            "description": "Name of the project directory"
          }
        },
        "required": [
          "preset",
          "project_name"
        ]
      },
      "namespace": "webcode",
      "category": "Code Editor & Runner"
    },
    {
      "name": "webcode_analyze_code_structure",
      "description": "Perform syntax inspection, precise delimiter matching (braces/brackets/parentheses with line & column reporting), token estimation, cyclomatic complexity, and import/export extraction.",
      "parameters": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Source code string to analyze"
          },
          "language": {
            "type": "string",
            "enum": [
              "javascript",
              "typescript",
              "python",
              "html",
              "css",
              "json"
            ],
            "description": "Source programming language"
          }
        },
        "required": [
          "code",
          "language"
        ]
      },
      "namespace": "webcode",
      "category": "Code Editor & Runner"
    },
    {
      "name": "webcode_generate_dependency_manifest",
      "description": "Generate verified, production-ready package.json, requirements.txt, or Cargo.toml dependency manifests with 2026/2027 stable pinned versions.",
      "parameters": {
        "type": "object",
        "properties": {
          "ecosystem": {
            "type": "string",
            "enum": [
              "node_npm",
              "python_pip",
              "rust_cargo"
            ],
            "description": "Package manager ecosystem"
          },
          "stack_preset": {
            "type": "string",
            "enum": [
              "agent_mcp_stack",
              "react_web_stack",
              "fastapi_ai_backend",
              "data_science_ml",
              "custom"
            ],
            "description": "Pre-bundled library stack profile"
          },
          "project_name": {
            "type": "string",
            "description": "Project name for manifest"
          }
        },
        "required": [
          "ecosystem"
        ]
      },
      "namespace": "webcode",
      "category": "Code Editor & Runner"
    },
    {
      "name": "webcode_format_source_code",
      "description": "Format unindented or messy code across Python, JavaScript, TypeScript, JSON, HTML, and CSS using deterministic AST style conventions.",
      "parameters": {
        "type": "object",
        "properties": {
          "language": {
            "type": "string",
            "enum": [
              "python",
              "javascript",
              "typescript",
              "json",
              "html",
              "css"
            ],
            "description": "Programming language"
          },
          "code": {
            "type": "string",
            "description": "Raw source code string to format"
          },
          "tab_size": {
            "type": "number",
            "description": "Indentation width (default 2 or 4)"
          }
        },
        "required": [
          "language",
          "code"
        ]
      },
      "namespace": "webcode",
      "category": "Code Editor & Runner"
    },
    {
      "name": "webcode_generate_sandbox_recipe",
      "description": "Generate zero-install client-side WebAssembly isolation snippets (Pyodide Python, QuickJS JavaScript, or sandboxed iframe) for running untrusted code safely in the browser.",
      "parameters": {
        "type": "object",
        "properties": {
          "runtime": {
            "type": "string",
            "enum": [
              "python_pyodide",
              "javascript_quickjs",
              "html_iframe"
            ],
            "description": "Client-side sandbox runtime engine"
          },
          "entry_code": {
            "type": "string",
            "description": "Entry source code to execute inside the sandbox"
          }
        },
        "required": [
          "runtime",
          "entry_code"
        ]
      },
      "namespace": "webcode",
      "category": "Code Editor & Runner"
    },
    {
      "name": "webcode_generate_workspace_manifest",
      "description": "Package multiple virtual file paths or starter project templates into a structured workspace manifest for in-browser IDE mounting or zip generation.",
      "parameters": {
        "type": "object",
        "properties": {
          "project_name": {
            "type": "string",
            "description": "Name of the coding project workspace"
          },
          "template": {
            "type": "string",
            "enum": [
              "vanilla-js",
              "python-cli",
              "static-html",
              "react-minimal",
              "custom"
            ],
            "description": "Starter template archetype"
          },
          "file_paths": {
            "type": "array",
            "description": "List of virtual file paths and directories to include"
          }
        },
        "required": [
          "project_name"
        ]
      },
      "namespace": "webcode",
      "category": "Code Editor & Runner"
    },
    {
      "name": "weboffice_generate_spreadsheet_template",
      "description": "Generate pre-baked, production-grade spreadsheet data matrices, verified Excel/Sheets formulas, ready-to-save CSV text, and formatted markdown tables for instant presentation.",
      "parameters": {
        "type": "object",
        "properties": {
          "template": {
            "type": "string",
            "enum": [
              "monthly_personal_budget",
              "client_invoice_billing",
              "loan_emi_calculator",
              "employee_payroll",
              "saas_metrics_dashboard",
              "student_gradebook"
            ],
            "description": "Pre-baked spreadsheet archetype preset"
          },
          "currency_symbol": {
            "type": "string",
            "description": "Currency symbol prefix (default: \"$\")"
          }
        },
        "required": [
          "template"
        ]
      },
      "namespace": "weboffice",
      "category": "Office Productivity"
    },
    {
      "name": "weboffice_evaluate_spreadsheet_formula",
      "description": "Evaluate standard spreadsheet formulas (SUM, AVERAGE, IF, VLOOKUP, INDEX, MATCH, PMT, NPV, IRR) with cell references and range arrays.",
      "parameters": {
        "type": "object",
        "properties": {
          "formula": {
            "type": "string",
            "description": "Formula expression (e.g. \"=SUM(A1:A10)\", \"=VLOOKUP(D2, A1:B50, 2, FALSE)\")"
          },
          "grid_context": {
            "type": "string",
            "description": "JSON representation of referenced row and column cell values"
          }
        },
        "required": [
          "formula"
        ]
      },
      "namespace": "weboffice",
      "category": "Office Productivity"
    },
    {
      "name": "weboffice_explain_formula",
      "description": "Deconstruct complex spreadsheet formulas into an execution tree AST, extract all referenced cell coordinates and ranges, and diagnose common pitfalls (#DIV/0!, approximate VLOOKUP, out-of-bounds index).",
      "parameters": {
        "type": "object",
        "properties": {
          "formula": {
            "type": "string",
            "description": "Formula string to explain"
          }
        },
        "required": [
          "formula"
        ]
      },
      "namespace": "weboffice",
      "category": "Office Productivity"
    },
    {
      "name": "weboffice_matrix_transform",
      "description": "Perform in-worker relational data transformations on tabular row matrices (group_by with sum/avg/count/min/max aggregation, multi-column sort, filter predicates, and matrix transposition).",
      "parameters": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "description": "Array of row objects to transform"
          },
          "operation": {
            "type": "string",
            "enum": [
              "group_by",
              "sort",
              "filter",
              "transpose"
            ],
            "description": "Transformation operation"
          }
        },
        "required": [
          "rows",
          "operation"
        ]
      },
      "namespace": "weboffice",
      "category": "Office Productivity"
    },
    {
      "name": "weboffice_parse_tabular_schema",
      "description": "Parse raw CSV, TSV, or structured document tables into validated OpenXML spreadsheet schema matrices with type inference.",
      "parameters": {
        "type": "object",
        "properties": {
          "raw_table_string": {
            "type": "string",
            "description": "Raw tabular text data"
          },
          "delimiter": {
            "type": "string",
            "enum": [
              ",",
              "\t",
              "|",
              ";"
            ],
            "description": "Column delimiter"
          }
        },
        "required": [
          "raw_table_string"
        ]
      },
      "namespace": "weboffice",
      "category": "Office Productivity"
    },
    {
      "name": "weboffice_generate_document_recipe",
      "description": "Generate OpenXML or PDF transformation recipes for client-side document compilation.",
      "parameters": {
        "type": "object",
        "properties": {
          "document_type": {
            "type": "string",
            "enum": [
              "word_docx",
              "spreadsheet_xlsx",
              "slides_pptx",
              "pdf"
            ],
            "description": "Target document type"
          },
          "title": {
            "type": "string",
            "description": "Document title"
          }
        },
        "required": [
          "document_type",
          "title"
        ]
      },
      "namespace": "weboffice",
      "category": "Office Productivity"
    },
    {
      "name": "stylus_render_mermaid_diagram",
      "description": "Render raw Mermaid flowchart/graph markdown syntax directly into clean, self-contained vector SVG markup with zero manual JSON schema effort.",
      "parameters": {
        "type": "object",
        "properties": {
          "mermaid_code": {
            "type": "string",
            "description": "Raw Mermaid markdown syntax (e.g. \"graph LR\\n A[User] --> B[API]\")"
          },
          "title": {
            "type": "string",
            "description": "Diagram title"
          },
          "theme": {
            "type": "string",
            "enum": [
              "dark",
              "light",
              "blueprint"
            ],
            "description": "Visual theme"
          }
        },
        "required": [
          "mermaid_code"
        ]
      },
      "namespace": "stylus",
      "category": "Digital Canvas & PDF"
    },
    {
      "name": "stylus_generate_diagram_template",
      "description": "Generate complete, beautifully rendered vector SVG diagrams and Mermaid syntax from pre-baked architecture templates (RAG AI pipeline, OAuth2 auth flow, agent MCP mesh, microservices, CI/CD pipeline).",
      "parameters": {
        "type": "object",
        "properties": {
          "template": {
            "type": "string",
            "enum": [
              "rag_ai_pipeline",
              "oauth2_login_flow",
              "agent_mcp_mesh",
              "microservices_architecture",
              "ci_cd_deployment_pipeline"
            ],
            "description": "Pre-baked architectural diagram template"
          },
          "direction": {
            "type": "string",
            "enum": [
              "TB",
              "LR"
            ],
            "description": "Layout direction"
          },
          "theme": {
            "type": "string",
            "enum": [
              "dark",
              "light",
              "blueprint"
            ],
            "description": "Visual theme"
          }
        },
        "required": [
          "template"
        ]
      },
      "namespace": "stylus",
      "category": "Digital Canvas & PDF"
    },
    {
      "name": "stylus_generate_accessible_palette",
      "description": "Generate a complete 7-token accessible design system (dark and light themes, background, card surface, borders, text, brand accent) with verified WCAG AAA/AA contrast ratings and ready-to-use CSS variables.",
      "parameters": {
        "type": "object",
        "properties": {
          "brand_color": {
            "type": "string",
            "description": "Primary brand hex color code (e.g. \"#8B5CF6\", \"#06B6D4\")"
          }
        },
        "required": [
          "brand_color"
        ]
      },
      "namespace": "stylus",
      "category": "Digital Canvas & PDF"
    },
    {
      "name": "stylus_bezier_stroke_math",
      "description": "Calculate smooth Catmull-Rom to cubic Bezier curve paths, apply Douglas-Peucker point decimation to reduce coordinate bloat by up to 80%, and produce clean SVG <path d=\"...\" /> markup.",
      "parameters": {
        "type": "object",
        "properties": {
          "points": {
            "type": "array",
            "description": "List of raw digitizer / mouse point samples with x and y coordinates"
          }
        },
        "required": [
          "points"
        ]
      },
      "namespace": "stylus",
      "category": "Digital Canvas & PDF"
    },
    {
      "name": "stylus_color_palette_and_contrast",
      "description": "Calculate WCAG 2.1 contrast ratios (AA/AAA pass/fail for normal and large text), color space conversions (HEX, RGB, HSL), and harmonic palettes (complementary, analogous, triadic, monochromatic).",
      "parameters": {
        "type": "object",
        "properties": {
          "color": {
            "type": "string",
            "description": "Foreground or primary color in Hex (#RRGGBB), rgb(), or hsl() format"
          },
          "background_color": {
            "type": "string",
            "description": "Background color to evaluate contrast ratio against"
          }
        },
        "required": [
          "color"
        ]
      },
      "namespace": "stylus",
      "category": "Digital Canvas & PDF"
    },
    {
      "name": "stylus_render_latex",
      "description": "Validate KaTeX / LaTeX mathematical formulas, detect syntax errors and unmatched braces, and convert to clean Unicode math notation or MathML for rendering.",
      "parameters": {
        "type": "object",
        "properties": {
          "latex": {
            "type": "string",
            "description": "Raw LaTeX formula string"
          },
          "format": {
            "type": "string",
            "enum": [
              "unicode",
              "mathml",
              "ascii"
            ],
            "description": "Output format"
          }
        },
        "required": [
          "latex"
        ]
      },
      "namespace": "stylus",
      "category": "Digital Canvas & PDF"
    },
    {
      "name": "stylus_generate_svg_diagram",
      "description": "Generate crisp, clean vector SVG diagrams (flowcharts, sequence flows, architectural boxes with connecting arrows) from structured node and edge definitions.",
      "parameters": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Diagram title"
          },
          "direction": {
            "type": "string",
            "enum": [
              "TB",
              "LR"
            ],
            "description": "Layout direction"
          },
          "theme": {
            "type": "string",
            "enum": [
              "dark",
              "light",
              "blueprint"
            ],
            "description": "Visual theme"
          },
          "nodes": {
            "type": "array",
            "description": "List of diagram nodes/boxes"
          },
          "edges": {
            "type": "array",
            "description": "List of connections between nodes"
          }
        },
        "required": [
          "nodes",
          "edges"
        ]
      },
      "namespace": "stylus",
      "category": "Digital Canvas & PDF"
    },
    {
      "name": "utility_calculate_expression",
      "description": "Safely and deterministically evaluate arithmetic expressions, trigonometry (deg/rad), powers, logarithms, and statistical functions (mean, median, stddev, sum, min, max) on numeric arrays without rounding errors.",
      "parameters": {
        "type": "object",
        "properties": {
          "expression": {
            "type": "string",
            "description": "Mathematical expression (e.g. \"sin(45 deg) * 12 + sqrt(144)\", \"mean([15, 22, 38, 45, 90])\")"
          },
          "variables": {
            "type": "object",
            "description": "Optional dictionary of variable substitutions"
          },
          "precision": {
            "type": "number",
            "description": "Decimal precision for results (default: 6)"
          }
        },
        "required": [
          "expression"
        ]
      },
      "namespace": "utility",
      "category": "API & Dev Tools"
    },
    {
      "name": "utility_convert_units",
      "description": "Convert measurements with high precision across Digital Storage (B, KB, MB, GB, TB, KiB, MiB, GiB), Time (ms, sec, min, hr, day), Length (mm, cm, m, km, inch, ft, mile), Mass (g, kg, oz, lb), Temperature (C, F, K), and CSS units (px, rem, em, pt).",
      "parameters": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "description": "Numeric value to convert"
          },
          "from_unit": {
            "type": "string",
            "description": "Source unit symbol (e.g. \"GiB\", \"px\", \"celsius\", \"kg\", \"mile\")"
          },
          "to_unit": {
            "type": "string",
            "description": "Target unit symbol (e.g. \"MB\", \"rem\", \"fahrenheit\", \"lb\", \"km\")"
          },
          "root_base_px": {
            "type": "number",
            "description": "Root base pixel font size for CSS rem/em conversions (default: 16)"
          }
        },
        "required": [
          "value",
          "from_unit",
          "to_unit"
        ]
      },
      "namespace": "utility",
      "category": "API & Dev Tools"
    },
    {
      "name": "utility_convert_table",
      "description": "Seamlessly transform tabular data between Markdown Table, JSON Array of Objects, CSV, TSV, and HTML table markup with automatic column alignment.",
      "parameters": {
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "description": "Raw input data (Markdown table with | pipes, JSON array string, or CSV/TSV text)"
          },
          "source_format": {
            "type": "string",
            "enum": [
              "auto",
              "markdown",
              "json",
              "csv",
              "tsv"
            ],
            "description": "Source data format (default: auto)"
          },
          "target_format": {
            "type": "string",
            "enum": [
              "markdown",
              "json",
              "csv",
              "tsv",
              "html"
            ],
            "description": "Desired output table format"
          }
        },
        "required": [
          "data",
          "target_format"
        ]
      },
      "namespace": "utility",
      "category": "API & Dev Tools"
    },
    {
      "name": "utility_generate_diff",
      "description": "Compare two text strings or code snippets and produce a standard unified diff (diff -u) format with line markers, addition/deletion counts, and change summary.",
      "parameters": {
        "type": "object",
        "properties": {
          "original_text": {
            "type": "string",
            "description": "Original text or code string before edits"
          },
          "modified_text": {
            "type": "string",
            "description": "Updated text or code string after edits"
          },
          "file_name": {
            "type": "string",
            "description": "File name header for unified diff patch (default: \"file.txt\")"
          }
        },
        "required": [
          "original_text",
          "modified_text"
        ]
      },
      "namespace": "utility",
      "category": "API & Dev Tools"
    },
    {
      "name": "utility_regex_match",
      "description": "Test regular expressions against target text, extract matched substrings and capture groups, and check for regex syntax errors.",
      "parameters": {
        "type": "object",
        "properties": {
          "pattern": {
            "type": "string",
            "description": "Regular expression pattern string"
          },
          "flags": {
            "type": "string",
            "description": "Regex flags (e.g. \"g\", \"i\", \"m\", \"s\", default: \"g\")"
          },
          "text": {
            "type": "string",
            "description": "Target text to evaluate and extract matches from"
          }
        },
        "required": [
          "pattern",
          "text"
        ]
      },
      "namespace": "utility",
      "category": "API & Dev Tools"
    },
    {
      "name": "utility_crypto_hash",
      "description": "Generate cryptographic hashes (SHA-256, SHA-512, SHA-1), unique UUIDv4 tokens, Base64 encode/decode, and URL safe encoding.",
      "parameters": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "sha256",
              "sha512",
              "sha1",
              "uuid",
              "base64_encode",
              "base64_decode",
              "url_encode",
              "url_decode"
            ],
            "description": "Cryptographic or encoding operation"
          },
          "text": {
            "type": "string",
            "description": "Input string to hash or encode/decode"
          }
        },
        "required": [
          "action"
        ]
      },
      "namespace": "utility",
      "category": "API & Dev Tools"
    }
  ]
}
