Tools API
Tools catalog
Browse the Tools API's categories, groups and tools, read one tool's input, output and price, and quote a run before starting it.
This edition is written for AI agents: complete, explicit and ready to paste. Give it to your agent, or point the agent at its address and it reads the page itself.
# Tools catalog
> Browse the Tools API's categories, groups and tools, read one tool's input, output and price, and quote a run before starting it.
- Human-readable page: https://dashboard.sproutsdata.ai/docs/api-reference/tools-catalog
- This document: https://dashboard.sproutsdata.ai/docs/agents/api-reference/tools-catalog
- Index of every agent document: https://dashboard.sproutsdata.ai/llms.txt
- API base URL: https://api.sproutsdata.ai
## Summary
The Tools API (`/tools/v1`) runs single-purpose data tools. These six free routes describe the catalog: categories, groups (one per source), tools, one tool in full, and a quote for one input. Find a tool here, then run it with `POST /tools/v1/runs`.
## Rules
- Free. Scope `dsp.tools.read`.
- Tool ids are `area/name` (lowercase slugs, e.g. `amazon/product`), at most 80 characters. In paths the id spans two segments: `https://api.sproutsdata.ai/tools/v1/tools/amazon/product`, `https://api.sproutsdata.ai/tools/v1/tools/amazon/product/quote`. Send the slash as a plain `/`.
- To find a tool: `GET /tools/v1/tools?q=<need in plain words>` ranks by relevance; filter with `category`, `group`; `limit` caps the list. Without `q`: ordered by category, group, name.
- `GET /tools/v1/tools/{tool_id}`: `input_schema`, `output_schema`, `example_output`, `price`, `latency` (`typical_seconds`, `max_seconds`), `mode`, `status` (`enabled`, `hidden`, `retired`, `paused`), `available`, `personal_data`, `alternatives`.
- Retired, paused and hidden tools still answer by id. `available: false` (including a tool with no price): it cannot run; `POST /tools/v1/runs` answers 503 `tools.not_priced` for an unpriced tool. Try an id from `alternatives`.
- `price`: `basis` (`per_10_records`: `credits` per `record_block` (10) records returned, a run of n records costs ceil(n / 10) × `credits`; a run returns all its records in one answer and there is no paging; `per_call`: a single-response tool, `credits` a call), `record_block`, `max_credits` (the most a run can be charged), `charged`.
- `POST /tools/v1/tools/{tool_id}/quote` with `{input}`: the most a run with that input can cost (`max_credits`), which is what a run holds. Free; calls no source. Validate input against `input_schema` before quoting or running.
- `GET /tools/v1/groups`: `category` and `q` filters; each group has `min_credits` (its cheapest tool's price per 10 records or per call).
- Request bodies are limited to 64 KiB (413 `request.too_large`).
## Operations
### GET /tools/v1/categories
List Categories
- URL: `GET https://api.sproutsdata.ai/tools/v1/categories`
- Scopes (any one): `dsp.tools.read`
- Cost: free
Categories with at least one listed tool, for the sidebar.
Response 200 (application/json): Successful Response
Response fields:
- `items` (array of object, required)
- `name` (string, required)
- `slug` (string, required)
- `tool_count` (integer, required)
Errors:
- 401: No usable credential (`auth.unauthorized`).
- 403: Not allowed: the workspace (`auth.tenant_not_allowed`) or the key's scope.
- 429: Too many requests (`rate_limit.exceeded`), runs in flight (`tools.too_many_runs`) or today's spend (`tools.spend_cap_exceeded`).
- 501: Tools are not served by this deployment (`not_implemented`).
- 503: Tools could not be reached (`upstream.unavailable`), or a tool is switched off (`tools.tool_disabled`, `service.unavailable`).
- 504: Tools did not answer in time (`upstream.timeout`). A run may still finish.
Example request:
```bash
curl "https://api.sproutsdata.ai/tools/v1/categories" \
-H "X-API-Key: $SPROUTS_API_KEY"
```
### GET /tools/v1/groups
List Groups
- URL: `GET https://api.sproutsdata.ai/tools/v1/groups`
- Scopes (any one): `dsp.tools.read`
- Cost: free
The cards on the Tools page. `q` keeps groups whose name or tools match.
Query parameters:
- `category` (string or null): Limits: at most 40 characters.
- `q` (string or null): Limits: 1 to 200 characters.
Response 200 (application/json): Successful Response
Response fields:
- `count` (integer, required)
- `items` (array of object, required)
- `category` (string, required)
- `min_credits` (number, required)
- `name` (string, required)
- `slug` (string, required)
- `summary` (string, required)
- `tool_count` (integer, required)
- `logo` (string or null)
Errors:
- 401: No usable credential (`auth.unauthorized`).
- 403: Not allowed: the workspace (`auth.tenant_not_allowed`) or the key's scope.
- 422: Validation Error
- 429: Too many requests (`rate_limit.exceeded`), runs in flight (`tools.too_many_runs`) or today's spend (`tools.spend_cap_exceeded`).
- 501: Tools are not served by this deployment (`not_implemented`).
- 503: Tools could not be reached (`upstream.unavailable`), or a tool is switched off (`tools.tool_disabled`, `service.unavailable`).
- 504: Tools did not answer in time (`upstream.timeout`). A run may still finish.
Example request:
```bash
curl "https://api.sproutsdata.ai/tools/v1/groups?category=e-commerce" \
-H "X-API-Key: $SPROUTS_API_KEY"
```
### GET /tools/v1/groups/{slug}
Get Group
- URL: `GET https://api.sproutsdata.ai/tools/v1/groups/{slug}`
- Scopes (any one): `dsp.tools.read`
- Cost: free
Path parameters:
- `slug` (string, required): Limits: at most 40 characters.
Response 200 (application/json): Successful Response
Response fields:
- `category` (string, required)
- `min_credits` (number, required)
- `name` (string, required)
- `slug` (string, required)
- `summary` (string, required)
- `tool_count` (integer, required)
- `tools` (array of object, required)
- `available` (boolean, required)
- `category` (string, required)
- `group` (string, required)
- `id` (string, required)
- `latency` (object, required)
- `max_seconds` (integer, required)
- `typical_seconds` (integer, required)
- `name` (string, required)
- `personal_data` (boolean, required)
- `price` (object, required): What a run costs, before it is made.
- `basis` (string, required): `per_10_records`: `credits` is the price of `record_block` (10) records the tool returns; a run is charged per 10 records returned, rounded up (11 records cost it twice). `per_call`: a tool that answers with one record, `credits` a call. `max_credits` is the most a run can be charged. One of: `"per_10_records"`, `"per_call"`.
- `charged` (boolean, required)
- `credits` (number, required)
- `max_credits` (number, required)
- `record_block` (integer): Records one price buys: 10.
- `summary` (string, required)
- `tags` (array of string, required)
- `logo` (string or null)
Errors:
- 401: No usable credential (`auth.unauthorized`).
- 403: Not allowed: the workspace (`auth.tenant_not_allowed`) or the key's scope.
- 404: No such tool, group or run for this workspace (`tools.*_not_found`).
- 422: Validation Error
- 429: Too many requests (`rate_limit.exceeded`), runs in flight (`tools.too_many_runs`) or today's spend (`tools.spend_cap_exceeded`).
- 501: Tools are not served by this deployment (`not_implemented`).
- 503: Tools could not be reached (`upstream.unavailable`), or a tool is switched off (`tools.tool_disabled`, `service.unavailable`).
- 504: Tools did not answer in time (`upstream.timeout`). A run may still finish.
Example request:
```bash
curl "https://api.sproutsdata.ai/tools/v1/groups/amazon" \
-H "X-API-Key: $SPROUTS_API_KEY"
```
### GET /tools/v1/tools
List Tools
- URL: `GET https://api.sproutsdata.ai/tools/v1/tools`
- Scopes (any one): `dsp.tools.read`
- Cost: free
Listed tools. With `q`, ranked by relevance to a plain-language need;
without it, ordered by category, group and name. This is what an agent uses
to find a tool.
Query parameters:
- `category` (string or null): Limits: at most 40 characters.
- `group` (string or null): Limits: at most 40 characters.
- `q` (string or null): Limits: 1 to 500 characters.
- `limit` (integer): Default `50`. Limits: 1 to 500.
Response 200 (application/json): Successful Response
Response fields:
- `count` (integer, required)
- `items` (array of object, required)
- `available` (boolean, required)
- `category` (string, required)
- `group` (string, required)
- `id` (string, required)
- `latency` (object, required)
- `max_seconds` (integer, required)
- `typical_seconds` (integer, required)
- `name` (string, required)
- `personal_data` (boolean, required)
- `price` (object, required): What a run costs, before it is made.
- `basis` (string, required): `per_10_records`: `credits` is the price of `record_block` (10) records the tool returns; a run is charged per 10 records returned, rounded up (11 records cost it twice). `per_call`: a tool that answers with one record, `credits` a call. `max_credits` is the most a run can be charged. One of: `"per_10_records"`, `"per_call"`.
- `charged` (boolean, required)
- `credits` (number, required)
- `max_credits` (number, required)
- `record_block` (integer): Records one price buys: 10.
- `summary` (string, required)
- `tags` (array of string, required)
Errors:
- 401: No usable credential (`auth.unauthorized`).
- 403: Not allowed: the workspace (`auth.tenant_not_allowed`) or the key's scope.
- 422: Validation Error
- 429: Too many requests (`rate_limit.exceeded`), runs in flight (`tools.too_many_runs`) or today's spend (`tools.spend_cap_exceeded`).
- 501: Tools are not served by this deployment (`not_implemented`).
- 503: Tools could not be reached (`upstream.unavailable`), or a tool is switched off (`tools.tool_disabled`, `service.unavailable`).
- 504: Tools did not answer in time (`upstream.timeout`). A run may still finish.
Example request:
```bash
curl "https://api.sproutsdata.ai/tools/v1/tools?group=amazon" \
-H "X-API-Key: $SPROUTS_API_KEY"
```
### GET /tools/v1/tools/{tool_id}
Get Tool
- URL: `GET https://api.sproutsdata.ai/tools/v1/tools/{tool_id}`
- Scopes (any one): `dsp.tools.read`
- Cost: free
One tool in full: input and output schemas, an example, price, latency.
Retired, paused and hidden tools still answer by id, so a stored id always
resolves to an explanation.
Path parameters:
- `tool_id` (string, required): Limits: at most 80 characters.
Response 200 (application/json): Successful Response
Response fields:
- `alternatives` (array of string, required)
- `available` (boolean, required)
- `category` (string, required)
- `description` (string, required)
- `example_output` (object or null, required)
- `group` (string, required)
- `id` (string, required)
- `input_schema` (object, required)
- `latency` (object, required)
- `max_seconds` (integer, required)
- `typical_seconds` (integer, required)
- `mode` (string, required): One of: `"sync"`, `"async"`.
- `name` (string, required)
- `output_schema` (object or null, required)
- `personal_data` (boolean, required)
- `price` (object, required): What a run costs, before it is made.
- `basis` (string, required): `per_10_records`: `credits` is the price of `record_block` (10) records the tool returns; a run is charged per 10 records returned, rounded up (11 records cost it twice). `per_call`: a tool that answers with one record, `credits` a call. `max_credits` is the most a run can be charged. One of: `"per_10_records"`, `"per_call"`.
- `charged` (boolean, required)
- `credits` (number, required)
- `max_credits` (number, required)
- `record_block` (integer): Records one price buys: 10.
- `status` (string, required): One of: `"enabled"`, `"hidden"`, `"retired"`, `"paused"`.
- `summary` (string, required)
- `tags` (array of string, required)
Errors:
- 401: No usable credential (`auth.unauthorized`).
- 403: Not allowed: the workspace (`auth.tenant_not_allowed`) or the key's scope.
- 404: No such tool, group or run for this workspace (`tools.*_not_found`).
- 422: Validation Error
- 429: Too many requests (`rate_limit.exceeded`), runs in flight (`tools.too_many_runs`) or today's spend (`tools.spend_cap_exceeded`).
- 501: Tools are not served by this deployment (`not_implemented`).
- 503: Tools could not be reached (`upstream.unavailable`), or a tool is switched off (`tools.tool_disabled`, `service.unavailable`).
- 504: Tools did not answer in time (`upstream.timeout`). A run may still finish.
Example request:
```bash
curl "https://api.sproutsdata.ai/tools/v1/tools/amazon/product" \
-H "X-API-Key: $SPROUTS_API_KEY"
```
### POST /tools/v1/tools/{tool_id}/quote
Quote
- URL: `POST https://api.sproutsdata.ai/tools/v1/tools/{tool_id}/quote`
- Scopes (any one): `dsp.tools.read`
- Cost: free
The price of running this tool with this input, before running it. Free,
and calls no vendor.
Path parameters:
- `tool_id` (string, required): Limits: at most 80 characters.
Request body (JSON, required):
- `input` (object)
Response 200 (application/json): Successful Response
Response fields:
- `available` (boolean, required)
- `max_credits` (number, required)
- `price` (object, required): What a run costs, before it is made.
- `basis` (string, required): `per_10_records`: `credits` is the price of `record_block` (10) records the tool returns; a run is charged per 10 records returned, rounded up (11 records cost it twice). `per_call`: a tool that answers with one record, `credits` a call. `max_credits` is the most a run can be charged. One of: `"per_10_records"`, `"per_call"`.
- `charged` (boolean, required)
- `credits` (number, required)
- `max_credits` (number, required)
- `record_block` (integer): Records one price buys: 10.
- `tool` (string, required)
Errors:
- 401: No usable credential (`auth.unauthorized`).
- 403: Not allowed: the workspace (`auth.tenant_not_allowed`) or the key's scope.
- 404: No such tool, group or run for this workspace (`tools.*_not_found`).
- 410: A retired tool (`tools.tool_disabled`).
- 413: The body is too large (`request.too_large`).
- 422: Validation Error
- 429: Too many requests (`rate_limit.exceeded`), runs in flight (`tools.too_many_runs`) or today's spend (`tools.spend_cap_exceeded`).
- 501: Tools are not served by this deployment (`not_implemented`).
- 503: Tools could not be reached (`upstream.unavailable`), or a tool is switched off (`tools.tool_disabled`, `service.unavailable`).
- 504: Tools did not answer in time (`upstream.timeout`). A run may still finish.
Example request:
```bash
curl -X POST "https://api.sproutsdata.ai/tools/v1/tools/amazon/product/quote" \
-H "X-API-Key: $SPROUTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"asin": "B0CP9YB3Q4"
}
}'
```
## See also
- https://dashboard.sproutsdata.ai/docs/agents/guides/tools
- https://dashboard.sproutsdata.ai/docs/agents/api-reference/tools-runs