Skip to main content
Glama

seo_traffic

Analyze website traffic for any domain or URL using ReviewWeb.site API. Specify mode (subdomains or exact) and country code for precise insights on visitor data.

Instructions

Check traffic for a domain or URL using ReviewWeb.site API.

Input Schema

NameRequiredDescriptionDefault
api_keyNoYour ReviewWebsite API key
countryNoCountry code (default: None)
domainOrUrlYesThe domain or URL to check traffic for
modeNoMode to use (default: subdomains)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "api_key": { "description": "Your ReviewWebsite API key", "type": "string" }, "country": { "description": "Country code (default: None)", "type": "string" }, "domainOrUrl": { "description": "The domain or URL to check traffic for", "type": "string" }, "mode": { "description": "Mode to use (default: subdomains)", "enum": [ "subdomains", "exact" ], "type": "string" } }, "required": [ "domainOrUrl" ], "type": "object" }

Implementation Reference

  • MCP tool handler function that executes the 'seo_traffic' tool logic by calling the ReviewWebsite controller's getTraffic method and formatting the response.
    async function handleGetTraffic(args: SeoTrafficToolArgsType) { const methodLogger = Logger.forContext( 'tools/reviewwebsite.tool.ts', 'handleGetTraffic', ); methodLogger.debug(`Checking traffic:`, { ...args, api_key: args.api_key ? '[REDACTED]' : undefined, }); try { const result = await reviewWebsiteController.getTraffic( args.domainOrUrl, { mode: args.mode, country: args.country, }, { api_key: args.api_key, }, ); return { content: [ { type: 'text' as const, text: result.content, }, ], }; } catch (error) { methodLogger.error(`Error checking traffic`, error); return formatErrorForMcpTool(error); } }
  • Registration of the 'seo_traffic' tool with the MCP server, specifying name, description, input schema, and handler function.
    server.tool( 'seo_traffic', `Check traffic for a domain or URL using ReviewWeb.site API.`, SeoTrafficToolArgs.shape, handleGetTraffic, );
  • Zod schema definition for the input arguments of the 'seo_traffic' tool.
    export const SeoTrafficToolArgs = z.object({ domainOrUrl: z.string().describe('The domain or URL to check traffic for'), mode: z .enum(['subdomains', 'exact']) .optional() .describe('Mode to use (default: subdomains)'), country: z.string().optional().describe('Country code (default: None)'), 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