Skip to main content
Glama

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

NameRequiredDescriptionDefault
api_keyNoYour ReviewWebsite API key
domainYesThe 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

  • 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); } }
  • 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'), });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mrgoonie/reviewwebsite-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server