Skip to main content
Glama
ahonn

Google Search Console MCP Server

by ahonn

index_inspect

Check if a URL is indexed or can be indexed in Google Search Console to verify search visibility and identify indexing issues.

Instructions

Inspect a URL to see if it is indexed or can be indexed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteUrlYesThe site URL as defined in Search Console. Example: sc-domain:example.com (for domain resources) or http://www.example.com/ (for site prefix resources)
inspectionUrlYesThe fully-qualified URL to inspect. Must be under the property specified in "siteUrl"
languageCodeNoAn IETF BCP-47 language code representing the language of the requested translated issue messages, such as "en-US" or "de-CH". Default is "en-US"en-US

Implementation Reference

  • Core handler function that executes the index inspection using the Google Search Console API's urlInspection.index.inspect method.
    async indexInspect(requestBody: IndexInspectRequest) {
      const searchConsole = await this.getSearchConsole();
      return searchConsole.urlInspection.index.inspect({ requestBody });
    }
  • Dispatch handler in the main tool request switch that parses arguments, prepares the request body, calls the core indexInspect function, and formats the response.
    case 'index_inspect': {
      const args = IndexInspectSchema.parse(request.params.arguments);
      const requestBody = {
        siteUrl: args.siteUrl,
        inspectionUrl: args.inspectionUrl,
        languageCode: args.languageCode,
      };
      const response = await searchConsole.indexInspect(requestBody);
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(response.data, null, 2),
          },
        ],
      };
  • Zod schema defining the input parameters for the index_inspect tool: siteUrl, inspectionUrl, and optional languageCode.
    export const IndexInspectSchema = GSCBaseSchema.extend({
      inspectionUrl: z
        .string()
        .describe(
          'The fully-qualified URL to inspect. Must be under the property specified in "siteUrl"',
        ),
      languageCode: z
        .string()
        .optional()
        .default('en-US')
        .describe(
          'An IETF BCP-47 language code representing the language of the requested translated issue messages, such as "en-US" or "de-CH". Default is "en-US"',
        ),
    });
  • src/index.ts:63-67 (registration)
    Tool registration in the ListTools response, defining the name, description, and input schema for index_inspect.
    {
      name: 'index_inspect',
      description: 'Inspect a URL to see if it is indexed or can be indexed',
      inputSchema: zodToJsonSchema(IndexInspectSchema),
    },
  • Type definition for the IndexInspectRequest body used in the core handler, derived from Google API types.
    type IndexInspectRequest =
      searchconsole_v1.Params$Resource$Urlinspection$Index$Inspect['requestBody'];
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the action ('inspect') and outcome ('see if it is indexed or can be indexed'), but lacks details on permissions, rate limits, response format, or error handling. For a tool with no annotations, this is insufficient to fully inform an agent about its behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence that directly states the tool's purpose without any fluff. It's front-loaded and efficiently communicates the core function, making it easy for an agent to parse quickly. Every word earns its place, achieving optimal conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (3 parameters, no output schema, no annotations), the description is incomplete. It doesn't cover behavioral aspects like what 'indexed' means in practice, how results are returned, or error scenarios. Without annotations or an output schema, the description should provide more context to be fully helpful for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, so the schema already documents all parameters thoroughly. The description adds no additional meaning beyond what's in the schema, such as explaining relationships between 'siteUrl' and 'inspectionUrl' or practical use cases. With high schema coverage, the baseline is 3, as the description doesn't compensate but doesn't detract either.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Inspect a URL to see if it is indexed or can be indexed.' It specifies the verb ('inspect') and resource ('URL') with a clear outcome. However, it doesn't explicitly differentiate from sibling tools like 'detect_quick_wins' or 'enhanced_search_analytics', which might also involve URL analysis, so it doesn't reach a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools or contexts where this inspection is preferred over other methods, such as 'detect_quick_wins' for broader analysis or 'submit_sitemap' for indexing actions. This lack of comparative context limits its utility for an agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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

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