Skip to content
Eden Engine

Plain-English SQL Query Explainer

omnial/x402-sql-explain

Given a raw SQL query, returns a plain-language explanation of what it does, a step-by-step breakdown, the tables it references, potential performance issues, and concrete optimization suggestions. Your input is sent to an outside service for processing; remove secrets and personal data first.

activeper callv4

Price

Up to $0.0811 per call; you pay what the call used

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.00.

Data source

Anthropic

Generated by Anthropic's Claude from the inputs you provide.

Use it

Your AI assistant does the work: it finds this tool, shows you the price first, runs it, and you are charged when the run finishes. There is nothing to set up for this tool in particular.

Connect once and your AI can find and run this tool, and any other it needs.

For developers: the calls your assistant makes
agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "omnial/x402-sql-explain" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "omnial/x402-sql-explain" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "omnial/x402-sql-explain", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "omnial/x402-sql-explain", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0811
Updated
Oct 27, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "sql"
  ],
  "properties": {
    "sql": {
      "type": "string",
      "description": "The raw SQL query text to explain, e.g. a SELECT with joins and filters."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "properties": {
    "steps": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "An ordered, plain-language breakdown of how the query executes."
    },
    "dialect": {
      "type": "string",
      "description": "The detected SQL dialect, e.g. 'postgres'."
    },
    "sql_length": {
      "type": "number",
      "description": "Character length of the submitted SQL text."
    },
    "explanation": {
      "type": "string",
      "description": "A plain-language paragraph summarizing what the query does."
    },
    "potential_issues": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Plain-language performance or correctness concerns spotted in the query."
    },
    "tables_referenced": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The table names the query reads from or joins against."
    },
    "optimization_suggestions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Concrete suggestions (e.g. indexes to add) to improve the query."
    }
  },
  "description": "The query-explanation result.",
  "additionalProperties": true
}