domain_overview
Analyze domain performance by retrieving organic traffic data, keyword rankings, and authority metrics for SEO assessment.
Instructions
Get domain analytics overview including organic traffic, keywords, and authority score
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| database | No |
Implementation Reference
- src/index.ts:248-256 (handler)Handler function for the 'domain_overview' tool. It parses the input arguments using DomainOverviewSchema and calls the Semrush API with the 'domain_ranks' report type, requesting specific columns like organic traffic (Or,Ot,Oc), ad traffic (Ad,At,Ac), authority score (Sh), and more.case 'domain_overview': { const { domain, database } = DomainOverviewSchema.parse(args); data = await callSemrushAPI('domain_ranks', { domain, database, export_columns: 'Db,Dn,Rk,Or,Ot,Oc,Ad,At,Ac,Sh,Sv', }); break; }
- src/index.ts:62-65 (schema)Zod schema for validating inputs to the domain_overview tool: requires 'domain' string, optional 'database' string defaulting to 'us'.const DomainOverviewSchema = z.object({ domain: z.string().describe('Domain to analyze'), database: z.string().default('us').describe('Database code (e.g., us, uk, ca)'), });
- src/index.ts:174-182 (registration)Registration of the 'domain_overview' tool in the MCP server's listTools response, including name, description, and input schema derived from DomainOverviewSchema.{ name: 'domain_overview', description: 'Get domain analytics overview including organic traffic, keywords, and authority score', inputSchema: { type: 'object', properties: DomainOverviewSchema.shape, required: ['domain'], }, },