Skip to content
BEAD

SQL Parameterizer

Replace inline values with ?, $1, or :p1 placeholders and emit the bind list.

Parameterized SQL
Bind values (4)
IndexTypeValue
$1string2024-01-01
$2stringactive
$3number18
$4string%@example.com
</>Use this tool programmaticallycurl · JavaScript · MCP

Same tool, callable from any HTTP client or from Claude (via MCP). Anonymous: 100 req/day per IP. Sign up for 1,000 req/day.

curl
curl https://api.b-e-a-d.com/tools/sql-parameterizer/run \
  -H "Content-Type: application/json" \
  -d '{
  "input": "your input here",
  "style": "dollar"
}'
JavaScript (fetch)
const res = await fetch("https://api.b-e-a-d.com/tools/sql-parameterizer/run", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "input": "your input here",
  "style": "dollar"
}),
});
const data = await res.json();
console.log(data.result);
MCP (Claude Desktop / Claude Code)
# In Claude Desktop / Claude Code, add to your MCP config:
{
  "mcpServers": {
    "bead": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.b-e-a-d.com"]
    }
  }
}

# Then ask Claude to call:
mcp__bead__bead_sql_parameterizer

Full reference: developer docs · OpenAPI spec

What it does

Replaces inline string and number literals in your query with the placeholder style of your driver — ?, $1…$N, or :p1…:pN — and emits the extracted values as an ordered list you can paste into the bind step.

Limits

This is a regex-aware tokenizer, not a full SQL parser. It will replace values inside VALUES lists, WHEREcomparisons, and function arguments. Identifiers (table/column names) are left alone.

You might also like

Used in these workflows