sql_query
Run SQL queries against a SpacetimeDB database to inspect or modify data, with optional JSON or markdown output.
Instructions
Run a SQL query against the database to inspect or modify data.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"database": "<database>",
"query": "<query>"
},
"name": "sql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The SQL query (e.g., SELECT * FROM users LIMIT 10) | |
| format | No | Optional output format: json (default) or markdown | |
| database | Yes | The database name. Required if no default is set. |