generate_tanstack_query
Generate TanStack Query (React Query) hooks with useQuery, useMutation, infinite queries, and optimistic updates
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resourceName": "<resourceName>"
},
"name": "generate_tanstack_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiBaseUrl | No | Base API URL | |
| resourceName | Yes | Resource name (e.g. users, products, orders) | |
| withMutation | No | Include useMutation with optimistic updates | |
| withPrefetch | No | Include prefetchQuery pattern | |
| withSuspense | No | Enable Suspense mode | |
| withInfiniteQuery | No | Include useInfiniteQuery for pagination |