indexing_get_metadata
Retrieve indexing notification metadata for URLs to check URL_UPDATED and URL_DELETED timestamps from Google Search Console.
Instructions
Get the latest indexing notification metadata for a URL. Returns the latest URL_UPDATED and URL_DELETED notification timestamps.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The fully-qualified URL to check notification status for |
Implementation Reference
- src/index.ts:564-583 (handler)The tool "indexing_get_metadata" is registered and handled directly in src/index.ts. It calls the Indexing API's metadata endpoint.
server.tool( "indexing_get_metadata", "Get the latest indexing notification metadata for a URL. Returns the latest URL_UPDATED and URL_DELETED notification timestamps.", { url: z .string() .describe("The fully-qualified URL to check notification status for"), }, async ({ url }) => { try { const result = await apiCall( `${INDEXING_BASE}/urlNotifications/metadata?url=${encodeURIComponent(url)}`, { method: "GET" }, ); return toolResult(result); } catch (e) { return errorResult(e); } }, );