execute_query
Run SQL queries on PostgreSQL, MySQL, or SQLite databases using a connection string. Enables direct database interactions via the SQL MCP Server's standardized protocol.
Instructions
Run a query to database
Input Schema
Name | Required | Description | Default |
---|---|---|---|
connection_string | Yes | ||
db_type | Yes | ||
query | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"connection_string": {
"type": "string"
},
"db_type": {
"enum": [
"postgres",
"mysql",
"sqlite"
],
"type": "string"
},
"query": {
"type": "string"
}
},
"required": [
"db_type",
"connection_string",
"query"
],
"type": "object"
}