Skip to main content
Glama

sites_add

Add a website property to Google Search Console for tracking search performance and indexing status.

Instructions

Add a site (property) to Google Search Console. Verification may still be required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteUrlYesThe site URL to add (e.g. 'https://example.com/' or 'sc-domain:example.com')

Implementation Reference

  • The implementation of the `sites_add` tool handler, which uses `apiCall` to perform a PUT request to the Webmasters API.
    // ── sites_add ──
    server.tool(
      "sites_add",
      "Add a site (property) to Google Search Console. Verification may still be required.",
      {
        siteUrl: z
          .string()
          .describe(
            "The site URL to add (e.g. 'https://example.com/' or 'sc-domain:example.com')",
          ),
      },
      async ({ siteUrl }) => {
        try {
          const result = await apiCall(
            `${WEBMASTERS_BASE}/sites/${encodeSiteUrl(siteUrl)}`,
            { method: "PUT" },
          );
          return {
            content: [
              {
                type: "text" as const,
                text: result.ok
                  ? `Site "${siteUrl}" added successfully.`
                  : result.body,
              },
            ],
            isError: !result.ok,

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