You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ahrefs): align tool coverage and outputs with the Ahrefs API v3 (#5367)
* fix(ahrefs): align tool coverage and outputs with the Ahrefs API v3
- 5 of 8 tools were missing the required `select` param (API v3 rejects
list-endpoint requests without it) and 3 sent a `date` param the
endpoint doesn't accept
- all list endpoints sent an `offset` param that doesn't exist on any
Ahrefs v3 site-explorer endpoint (only `limit` is supported)
- domain_rating and backlinks_stats read response fields at the wrong
nesting level and always returned zeros; several other tools mapped
output fields to column names the API doesn't return (position, url,
traffic, backlinks, dofollow_backlinks, http_code) instead of the
real ones (best_position, best_position_url, sum_traffic,
links_to_target, dofollow_links, http_code_target)
- keyword_overview used the wrong endpoint param entirely (`keyword`
instead of `keywords`) so it always returned empty
- added ahrefs_metrics (site-explorer/metrics) and
ahrefs_organic_competitors (site-explorer/organic-competitors) tools
- fixed docsLink to point at docs.sim.ai instead of ahrefs.com
* fix(ahrefs): default metrics country to us like every other tool
Greptile and Cursor Bugbot both flagged that ahrefs_metrics omitted
the country when unset, unlike every other country-accepting Ahrefs
tool, which silently returns global data instead of US data on
direct tool calls.
* fix(ahrefs): default history to all_time on backlinks and referring domains
Cursor Bugbot flagged that history was only sent when explicitly set,
even though the block UI defaults it to all_time — same class of gap
as the metrics.ts country fix, applied for direct tool-call consistency.
* feat(ahrefs): expose search intent flags on keyword overview
Adds the real intents field (informational, navigational, commercial,
transactional, branded, local) from keywords-explorer/overview, which
was verified valid against the live API docs but not yet surfaced.
description: 'Date for historical data in YYYY-MM-DD format (defaults to today)',
31
-
},
32
-
limit: {
33
-
type: 'number',
34
-
required: false,
35
32
visibility: 'user-or-llm',
36
-
description: 'Maximum number of results to return. Example: 50 (default: 100)',
33
+
description:
34
+
'Historical scope: "live" (currently live backlinks), "all_time" (default, includes lost backlinks), or "since:YYYY-MM-DD" (backlinks found since a date).',
37
35
},
38
-
offset: {
36
+
limit: {
39
37
type: 'number',
40
38
required: false,
41
39
visibility: 'user-or-llm',
42
-
description: 'Number of results to skip for pagination. Example: 100',
40
+
description: 'Maximum number of results to return. Example: 50 (default: 1000)',
'Get backlink statistics for a target domain or URL. Returns totals for different backlink types including dofollow, nofollow, text, image, and redirect links.',
11
+
'Get backlink and referring domain totals for a target domain or URL, both currently live and across all time.',
0 commit comments