Skip to main content
Glama

url_inspection_inspect

Check Google Search Console indexing status for a URL. View crawl details, rich results, AMP status, and mobile usability to verify search visibility.

Instructions

Inspect a URL in Google's index. Returns indexing status, crawl info, rich results, AMP status, and mobile usability for a specific URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inspectionUrlYesThe fully-qualified URL to inspect (must be under the site)
siteUrlYesThe site URL (property) the inspected URL belongs to
languageCodeNoOptional BCP-47 language code for localized results (e.g. 'en-US', 'ko')

Implementation Reference

  • The handler logic for the 'url_inspection_inspect' tool, which performs an API call to inspect a URL.
      async ({ inspectionUrl, siteUrl, languageCode }) => {
        try {
          const body: Record<string, string> = { inspectionUrl, siteUrl };
          if (languageCode) body.languageCode = languageCode;
    
          const result = await apiCall(
            `${INSPECTION_BASE}/urlInspection/index:inspect`,
            {
              method: "POST",
              headers: { "Content-Type": "application/json" },
              body: JSON.stringify(body),
            },
          );
          return toolResult(result);
        } catch (e) {
          return errorResult(e);
        }
      },
    );
  • src/index.ts:493-530 (registration)
    Registration of the 'url_inspection_inspect' tool using server.tool.
    server.tool(
      "url_inspection_inspect",
      "Inspect a URL in Google's index. Returns indexing status, crawl info, rich results, AMP status, and mobile usability for a specific URL.",
      {
        inspectionUrl: z
          .string()
          .describe("The fully-qualified URL to inspect (must be under the site)"),
        siteUrl: z
          .string()
          .describe(
            "The site URL (property) the inspected URL belongs to",
          ),
        languageCode: z
          .string()
          .optional()
          .describe(
            "Optional BCP-47 language code for localized results (e.g. 'en-US', 'ko')",
          ),
      },
      async ({ inspectionUrl, siteUrl, languageCode }) => {
        try {
          const body: Record<string, string> = { inspectionUrl, siteUrl };
          if (languageCode) body.languageCode = languageCode;
    
          const result = await apiCall(
            `${INSPECTION_BASE}/urlInspection/index:inspect`,
            {
              method: "POST",
              headers: { "Content-Type": "application/json" },
              body: JSON.stringify(body),
            },
          );
          return toolResult(result);
        } catch (e) {
          return errorResult(e);
        }
      },
    );

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/mikusnuz/gsc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server