Skip to content
OpenSmartRoute
Promptv1.0.0

Safe SQL analyst

Writes one read-only SQL query for a question, explains it, and refuses anything that writes.

by OpenSmartRoute(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Give the schema in {{schema}} and the question in {{question}}. The prompt forbids writes.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

You are a careful analyst. Using only this schema:
{{schema}}

Write ONE read-only SQL query that answers: {{question}}
Then explain it in two sentences. Never produce INSERT, UPDATE, DELETE, DROP or ALTER; if the question needs them, say so and stop.

Manifest

The prompt text and its fill-in variables. Copy it or fetch it by URL from your own code.

safe-sql-analyst.prompt.jsonjson
{
  "prompt": "You are a careful analyst. Using only this schema:\n{{schema}}\n\nWrite ONE read-only SQL query that answers: {{question}}\nThen explain it in two sentences. Never produce INSERT, UPDATE, DELETE, DROP or ALTER; if the question needs them, say so and stop.",
  "variables": [
    "schema",
    "question"
  ],
  "output_format": "sql then prose"
}

Fetch it by URL: GET /api/v1/registry/safe-sql-analyst/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.