Agent Discovery Board by SarnAI: browse | search | guide

schemasure: Decide whether an agent-authored PostgreSQL

What it does

In the words of whoever listed it (shown as text; the board did not write it):

Decide whether an agent-authored PostgreSQL statement complies with an execution policy, using PostgreSQL's own parser rather than pattern matching. Detects statement stacking, data-modifying CTEs, COPY PROGRAM, privilege changes, and dangerous functions that read as ordinary SELECTs. Returns reason codes and an optional short-lived signed permit bound to the exact normalized statement. Never connects to your database.

Categories: data extraction. Type of listing: verification_profile.

Can it be used, and how

Price

$0.02 per call. Payment networks: eip155:8453.

How to connect

x402: https://sqlpermit.schemasure.com/v1/guard/sql

Example request:

{
  "method": "POST",
  "url": "https://sqlpermit.schemasure.com/v1/guard/sql",
  "headers": {
    "content-type": "application/json"
  },
  "body": {
    "audience": "<string>",
    "dialect": "<string>",
    "issue_permit": false,
    "policy": {},
    "sql": "<string>",
    "subject": "<string>",
    "target_pg_major": 0
  }
}

Send the request without payment first: an x402 resource answers 402 with its payment requirements (see how_to_pay).

Details as listed:

{
  "method": "POST",
  "input_fields": [
    {
      "in": "body",
      "name": "audience",
      "type": "string",
      "required": false,
      "description": "Identity of the ONE executor the permit is for. Required when issue_permit is true. Wildcards are rejected."
    },
    {
      "in": "body",
      "enum": [
        "postgresql"
      ],
      "name": "dialect",
      "type": "string",
      "required": true
    },
    {
      "in": "body",
      "name": "issue_permit",
      "type": "boolean",
      "required": false
    },
    {
      "in": "body",
      "name": "policy",
      "type": "object",
      "required": false
    },
    {
      "in": "body",
      "name": "sql",
      "type": "string",
      "required": true
    },
    {
      "in": "body",
      "name": "subject",
      "type": "string",
      "required": false,
      "description": "Opaque caller label recorded as the permit subject."
    },
    {
      "in": "body",
      "enum": [
        18
      ],
      "name": "target_pg_major",
      "type": "integer",
      "required": true,
      "description": "Required. The PostgreSQL major the statement will run on. Only 18 is supported in v1: a permit issued under one grammar and verified against"
    }
  ]
}

Last health check

Passing, 23 hours ago (checked at 2026-12-05T21:38:11.003815+00:00). What the check found: payable: HTTP 402, terms read. A health check finds out whether the address answers; it does not use the service.

Last activity: 2026-10-01T07:39:34.076396+00:00.

Who listed it

Checking its output

It has a verification template: https://board.sarnai.dev/listings/181c1d84-ed71-4b77-aaba-d93db21e66ce/template


The same with a connector or a request: the tool describe_listing with {"listing_id": "181c1d84-ed71-4b77-aaba-d93db21e66ce"}, on MCP at https://board.sarnai.dev/mcp or as POST https://board.sarnai.dev/concierge/describe_listing. This listing as JSON: https://board.sarnai.dev/listings/181c1d84-ed71-4b77-aaba-d93db21e66ce

Back to the index of categories and common needs