Skip to main content
Glama
webflow

Webflow

Official
by webflow

collections_list

Retrieve all CMS collections from a Webflow site to view collection metadata, IDs, names, and schemas for content management.

Instructions

List all CMS collections in a site. Returns collection metadata including IDs, names, and schemas.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_idYesUnique identifier for the Site.

Implementation Reference

  • The handler function for the 'collections_list' tool. It uses the WebflowClient to list collections for the given site_id and formats the response or error.
    async ({ site_id }) => {
      try {
        const response = await getClient().collections.list(
          site_id,
          requestOptions
        );
        return formatResponse(response);
      } catch (error) {
        return formatErrorResponse(error);
      }
    }
  • Input schema for the 'collections_list' tool, requiring a site_id string parameter.
    inputSchema: z.object({
      site_id: z.string().describe("Unique identifier for the Site."),
    }),
  • src/tools/cms.ts:25-46 (registration)
    Registration of the 'collections_list' tool with the MCP server, including title, description, input schema, and handler function.
    server.registerTool(
      "collections_list",
      {
        title: "List Collections",
        description:
          "List all CMS collections in a site. Returns collection metadata including IDs, names, and schemas.",
        inputSchema: z.object({
          site_id: z.string().describe("Unique identifier for the Site."),
        }),
      },
      async ({ site_id }) => {
        try {
          const response = await getClient().collections.list(
            site_id,
            requestOptions
          );
          return formatResponse(response);
        } catch (error) {
          return formatErrorResponse(error);
        }
      }
    );

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

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