list_sites
Retrieve all websites and properties registered in your Google Search Console account to manage and analyze search performance data.
Instructions
List all sites in Google Search Console
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/search-console.ts:189-192 (handler)Core implementation of the list_sites tool. Calls Google Webmasters API's sites.list() method via authenticated client to retrieve list of verified sites.async listSites() { const webmasters = await this.getWebmasters(); return webmasters.sites.list(); }
- src/index.ts:44-47 (registration)Registration of the list_sites tool in the MCP list_tools response handler, including name, description, and JSON schema for empty input (no parameters).name: 'list_sites', description: 'List all sites in Google Search Console', inputSchema: zodToJsonSchema(z.object({})), },
- src/index.ts:279-289 (handler)MCP call_tool dispatch case for list_sites that instantiates the SearchConsoleService, calls its listSites method, and returns the response as formatted text content.case 'list_sites': { const response = await searchConsole.listSites(); return { content: [ { type: 'text', text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/index.ts:46-46 (schema)Input schema definition for list_sites tool: empty object schema indicating no input parameters are required.inputSchema: zodToJsonSchema(z.object({})),