Implement cost-aware querying and cursor pagination against Jobber's GraphQL API to avoid throttling

domain: developer.getjobber.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Read the extensions.cost object returned on every response (requestedQueryCost, actualQueryCost, throttleStatus.maximumAvailable/currentlyAvailable/restoreRate) to understand your current budget
  2. Always supply a first or last argument on connection fields — omitting it makes the API assume a maximum of 100 nodes when calculating requestedQueryCost, inflating cost dramatically
  3. Use Relay-style cursor pagination (first/after with pageInfo.endCursor/hasNextPage) to fetch data in bounded pages instead of one large query
  4. Avoid deeply nested connections (e.g. jobs → visits) when you don't need the nested data; query the narrower single-object field instead of the plural connection when possible
  5. If a query is throttled (errors contain a THROTTLED code), back off and wait based on currentlyAvailable and restoreRate before retrying rather than immediately re-requesting
  6. For bulk syncs, add a timed delay between calls so currentlyAvailable points can regenerate at restoreRate rather than bursting through the budget

Known gotchas

Related routes

Bulk-search Jira issues with JQL and pagination
atlassian-jira · 4 steps · unrated
Configure commercetools GraphQL API access via the commercetools GraphQL endpoint and optimize queries with field selection and pagination
docs.commercetools.com · 5 steps · unrated
Query Jobber invoices and their applied payment records via GraphQL
developer.getjobber.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans