---
title: "tool si.ask.sql"
description: "a query, in a strategy: rows, with how many and whether a bound was reached."
section: reference
address: /reference/tools/si-ask-sql
contract: 0476e35e6e275db5
---

# tool si.ask.sql

a query, in a strategy: rows, with how many and whether a bound was reached.

[figure: Over MCP, si.ask.sql takes SqlInput and returns a card whose body is SqlAnswer.]

rows, with how many and whether a bound was reached. The call needs the ask grant at the strategy rung.



| | |
|---|---|
| input | [SqlInput](/concepts/sqlinput) |
| result | a card whose body is [SqlAnswer](/concepts/sqlanswer) |
| read-only | yes |
| destructive | no |
| card address | `ui://scale-intelligence/cards/SqlAnswer` |
| HTTP route | [`/v1/ask/sql`](/reference/ask/sql) |





| field | type | required | note |
|---|---|---|---|
| `query` | `text` | yes |  |
| `strategy` | `id` | yes |  |
| `bound` | `count` | no |  |
