Skip to main content
Glama

get

Retrieve current metadata for Chrome Web Store items including title, description, category, and listing details using the v1.1 API.

Instructions

Get the current metadata of a Chrome Web Store item (v1.1 API). Returns title, description, category, and other listing fields. Note: v1 API is deprecated and will be removed after Oct 15, 2026.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdNoExtension item ID (defaults to CWS_ITEM_ID env var)
projectionNoMetadata projection to fetch (defaults to DRAFT)

Implementation Reference

  • Handler implementation for the "get" tool. It resolves the item ID, prepares the URL with the provided projection, makes a GET request, and formats the response.
    server.tool(
      "get",
      "Get the current metadata of a Chrome Web Store item (v1.1 API). Returns title, description, category, and other listing fields. Note: v1 API is deprecated and will be removed after Oct 15, 2026.",
      {
        itemId: z
          .string()
          .optional()
          .describe("Extension item ID (defaults to CWS_ITEM_ID env var)"),
        projection: z
          .enum(["DRAFT", "PUBLISHED"])
          .optional()
          .describe("Metadata projection to fetch (defaults to DRAFT)"),
      },
      async ({ itemId, projection }) => {
        try {
          const id = resolveItemId(itemId);
          const p = projection || "DRAFT";
          const url = `${V1_BASE}/items/${id}?projection=${encodeURIComponent(p)}`;
          const result = await apiCall(url, { method: "GET" });
    
          return formatResponse(result);
        } catch (e: any) {
          return {
            content: [{ type: "text" as const, text: `Error: ${e.message}` }],
            isError: true,
          };
        }
      },
    );

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/cws-mcp'

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