Skip to main content
Glama

sitemaps_get

Retrieve detailed information about a specific sitemap from Google Search Console to analyze its structure and status.

Instructions

Retrieve information about a specific sitemap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteUrlYesThe site URL
feedpathYesThe URL of the sitemap (e.g. 'https://example.com/sitemap.xml')

Implementation Reference

  • Implementation of the sitemaps_get tool in src/index.ts. It uses the apiCall helper to fetch sitemap data from the Google Search Console API.
    server.tool(
      "sitemaps_get",
      "Retrieve information about a specific sitemap.",
      {
        siteUrl: z.string().describe("The site URL"),
        feedpath: z
          .string()
          .describe("The URL of the sitemap (e.g. 'https://example.com/sitemap.xml')"),
      },
      async ({ siteUrl, feedpath }) => {
        try {
          const result = await apiCall(
            `${WEBMASTERS_BASE}/sites/${encodeSiteUrl(siteUrl)}/sitemaps/${encodeURIComponent(feedpath)}`,
            { method: "GET" },
          );
          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