athena_save_query
Save a SQL query to an Athena workspace for future reuse. Specify the workspace ID, a short name, and the SQL text to persist the query.
Instructions
Persist a SQL query under the caller's user, scoped to a workspace.
Args: workspace_id: The Athena workspace id this saved query belongs to. name: Short label for the saved query. sql: The SQL text to save.
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": {
"workspace_id": "<workspace_id>",
"name": "<name>",
"sql": "<sql>"
},
"name": "athena_save_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| name | Yes | ||
| workspace_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |