API reference
Tools
Priced tools a request or agent can call.
On this page
GET/
Every tool, its input schema and its price.
Auth: None
| Name | Type | Required | Description |
|---|---|---|---|
q | string | No | Query. Words in a tool's id, title or description. |
limit | integer | No | Query. How many tools to return. |
cursor | string | No | Query. The next page's cursor (page.next). |
GET /v1/tools
curl
curl https://api.usdf.fi/v1/tools
POST/
Runs one tool. The body is the tool's input, as its input_schema in GET /v1/tools describes it; each tool takes its own fields. The sample calls chain.prices.
Auth: API key: Authorization: Bearer sk_
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Path. The tool's id from GET /v1/tools. |
(the tool's fields) | object | Yes | The input the tool's input_schema requires, for example symbols for chain.prices, query for web.search, url for web.scrape, language and code for code.run. |
POST /v1/tools/{id}
curl
curl -X POST https://api.usdf.fi/v1/tools/chain.prices \ -H "Authorization: Bearer $USDF_API_KEY" \ -H "Content-Type: application/json" \ -d '{"symbols": ["ETH", "USDG"]}'
Foundry documentation