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
- Hosted: it has an address to call.
- Access, as the listing says: paid per call with x402.
Price
$0.02 per call. Payment networks: eip155:8453.
How to connect
x402: https://sqlpermit.schemasure.com/v1/guard/sql
- Method: POST (as the listing declares) to
https://sqlpermit.schemasure.com/v1/guard/sql - Headers:
content-type: application/json - Input fields:
audience(string): Identity of the ONE executor the permit is for. Required when issue_permit is true. Wildcards are rejected.;dialect(string) required;issue_permit(boolean);policy(object);sql(string) required;subject(string): Opaque caller label recorded as the permit subject.;target_pg_major(integer) required: Required. The PostgreSQL major the statement will run on. Only 18 is supported in v1: a permit issued under one grammar and verified against
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
- Imported from x402_bazaar; not posted by its owner.
- Its name was built by SarnAI from its text: the source gives none.
- Ownership: not proven. Imported from x402_bazaar; nobody has proven they own it. Its data is self-reported.
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