Fetch Yield.xyz OpenAPI Spec
yield_get_api_specBUILDER TOOL — fetches the live Yield.xyz OpenAPI spec (https://api.yield.xyz/docs.json). Use when you need: exact request body schemas, field constraints (min/max/enum), error response shapes, or operationIds for any endpoint. Accepts an optional endpoint filter (e.g. "/v1/actions/enter", "/v1/yields/{yieldId}/validators") and an optional query to search across paths. Returns structured field definitions, required flags, and all HTTP error codes for that endpoint. Use this instead of guessing field names — the spec is the ground truth. Also use this to look up: what errors can a specific endpoint return, what are the exact parameter constraints, what does a 400/403/422/429 response look like.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Optional: keyword search across path + operationId + summary. E.g. "validator", "balances", "enter". | |
| method | No | HTTP method filter. Default: all methods. | all |
| section | No | What to return: "endpoints" for path+method details, "schemas" for component schemas, "errors" for all error codes across the spec, "all" for endpoints + errors. Component schemas are large, so "all" excludes them — request "schemas" explicitly. | all |
| endpoint | No | Optional: filter to a specific path, e.g. "/v1/actions/enter" or "/v1/yields/{yieldId}/validators". Partial match works. |