keyword_overview
Analyze keyword metrics like search volume, difficulty, and CPC to inform SEO strategy and content planning.
Instructions
Get keyword metrics including search volume, difficulty, and CPC
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phrase | Yes | ||
| database | No |
Implementation Reference
- src/index.ts:258-266 (handler)The handler logic for the 'keyword_overview' tool. It parses the input arguments using KeywordOverviewSchema and calls the Semrush API with the 'phrase_all' report type to retrieve keyword metrics.case 'keyword_overview': { const { phrase, database } = KeywordOverviewSchema.parse(args); data = await callSemrushAPI('phrase_all', { phrase, database, export_columns: 'Ph,Nq,Cp,Co,Nr,Td', }); break; }
- src/index.ts:67-70 (schema)Zod schema defining the input parameters for the keyword_overview tool: 'phrase' (required string) and 'database' (optional string, defaults to 'us').const KeywordOverviewSchema = z.object({ phrase: z.string().describe('Keyword phrase to analyze'), database: z.string().default('us').describe('Database code'), });
- src/index.ts:183-191 (registration)Registration of the 'keyword_overview' tool in the MCP server's tool list, specifying name, description, and input schema derived from KeywordOverviewSchema.{ name: 'keyword_overview', description: 'Get keyword metrics including search volume, difficulty, and CPC', inputSchema: { type: 'object', properties: KeywordOverviewSchema.shape, required: ['phrase'], }, },