Redwood Agent Supply Redwood Agent Supply

SQL lint and table extraction

Classify SQL text, flag risky constructs and extract table and CTE references, with a SHA-256 output digest.

$0.03

One call: the result comes back in the paid request.

Sample product output

{
  "ctes": [
    "active"
  ],
  "findings": [],
  "limits": [
    "Max 32768 UTF-8 bytes. This lexical classifier covers a subset of SQL syntax.",
    "No SQL is executed. Function effects, permissions and database settings are not evaluated.",
    "PRAGMA and executable comments are conservatively excluded from read-only classification."
  ],
  "output_sha256": "27f83c4569c7629f5811d5c8297c1295ac1d0bd47ad8b3c98f9c6b2e091a23e6",
  "read_only_safe": true,
  "statement_count": 1,
  "statements": [
    {
      "index": 1,
      "kind": "WITH",
      "read_only": true
    }
  ],
  "tables": [
    "accounts"
  ]
}

Input fields

{
  "example": {
    "sql": "WITH active AS (SELECT id FROM accounts) SELECT id FROM active;"
  },
  "properties": {
    "dialect": {
      "default": "standard",
      "description": "SQL lexical dialect.",
      "enum": [
        "standard",
        "postgres",
        "sqlite",
        "mysql"
      ],
      "example": "standard",
      "maxLength": 8,
      "minLength": 1,
      "type": "string",
      "x-preserve-whitespace": true
    },
    "sql": {
      "description": "SQL text, up to 32768 UTF-8 bytes.",
      "example": "WITH active AS (SELECT id FROM accounts) SELECT id FROM active;",
      "maxLength": 32768,
      "minLength": 1,
      "type": "string",
      "x-preserve-whitespace": true
    }
  },
  "required": [
    "sql"
  ],
  "type": "object"
}

One-step x402 buy

POST https://redwoodagentsupply.com/api/v1/buy/utility-sql-lint-extract
Content-Type: application/json

{
  "inputs": {
    "sql": "WITH active AS (SELECT id FROM accounts) SELECT id FROM active;"
  }
}

Paid orders settle before background work starts. A failed job is run again once, free and automatically. If it fails twice, ask the operator to run it again using the order ID. Keep your order credential private. All sales are final.

Catalog at /api/v1/catalog

API documentation

Assistant instructions

Read the catalog and request a quote using the example below.
Create an order with that quote and a unique Idempotency-Key.
Keep the order credential private. Send it as Bearer authorization.
Request a payment attempt, then fetch the result after settlement.

Quote request example

POST /api/v1/quotes
Content-Type: application/json

{
  "slug": "utility-sql-lint-extract",
  "inputs": {
    "sql": "WITH active AS (SELECT id FROM accounts) SELECT id FROM active;"
  }
}