seo_backlinks
Analyze and retrieve backlinks for any domain using the ReviewWebsite API, helping optimize SEO strategies and track link-building performance.
Instructions
Get backlinks for a domain using ReviewWeb.site API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Your ReviewWebsite API key | |
| domain | Yes | The domain to get backlinks for |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"api_key": {
"description": "Your ReviewWebsite API key",
"type": "string"
},
"domain": {
"description": "The domain to get backlinks for",
"type": "string"
}
},
"required": [
"domain"
],
"type": "object"
}
Implementation Reference
- src/tools/reviewwebsite.tool.ts:671-698 (handler)MCP tool handler function that executes the seo_backlinks tool logic by calling reviewWebsiteController.getBacklinks.async function handleGetBacklinks(args: SeoBacklinksToolArgsType) { const methodLogger = Logger.forContext( 'tools/reviewwebsite.tool.ts', 'handleGetBacklinks', ); methodLogger.debug(`Getting backlinks:`, { ...args, api_key: args.api_key ? '[REDACTED]' : undefined, }); try { const result = await reviewWebsiteController.getBacklinks(args.domain, { api_key: args.api_key, }); return { content: [ { type: 'text' as const, text: result.content, }, ], }; } catch (error) { methodLogger.error(`Error getting backlinks`, error); return formatErrorForMcpTool(error); } }
- src/tools/reviewwebsite.tool.ts:818-823 (registration)Registration of the 'seo_backlinks' tool with the MCP server, specifying name, description, input schema, and handler function.server.tool( 'seo_backlinks', `Get backlinks for a domain using ReviewWeb.site API.`, SeoBacklinksToolArgs.shape, handleGetBacklinks, );
- Zod schema defining the input arguments for the seo_backlinks tool: domain (required) and api_key (optional).export const SeoBacklinksToolArgs = z.object({ domain: z.string().describe('The domain to get backlinks for'), api_key: z.string().optional().describe('Your ReviewWebsite API key'), });