API reference

Tools

Priced tools a request or agent can call.

On this page

GET/v1/tools

Every tool, its input schema and its price.

Auth: None

NameTypeRequiredDescription
qstringNoQuery. Words in a tool's id, title or description.
limitintegerNoQuery. How many tools to return.
cursorstringNoQuery. The next page's cursor (page.next).

GET /v1/tools

curl
curl https://api.usdf.fi/v1/tools

POST/v1/tools/{id}

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_…

NameTypeRequiredDescription
idstringYesPath. The tool's id from GET /v1/tools.
(the tool's fields)objectYesThe 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

Confirm it's you

Confirm to continue the action you started.

Checking confirmation options…