Skip to main content
Glama
webflow

Webflow

Official
by webflow

collections_get

Retrieve detailed schema and field definitions for a specific CMS collection in Webflow to understand its structure and data organization.

Instructions

Get detailed information about a specific CMS collection including its schema and field definitions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYesUnique identifier for the Collection.

Implementation Reference

  • Handler function for the 'collections_get' tool. Fetches detailed information about a specific CMS collection using the WebflowClient API and formats the response.
    async ({ collection_id }) => {
      try {
        const response = await getClient().collections.get(
          collection_id,
          requestOptions
        );
        return formatResponse(response);
      } catch (error) {
        return formatErrorResponse(error);
      }
    }
  • Input schema for the 'collections_get' tool, defining the required 'collection_id' parameter.
    {
      title: "Get Collection",
      description:
        "Get detailed information about a specific CMS collection including its schema and field definitions.",
      inputSchema: z.object({
        collection_id: z
          .string()
          .describe("Unique identifier for the Collection."),
      }),
    },
  • src/tools/cms.ts:49-72 (registration)
    Registration of the 'collections_get' MCP tool, including schema and handler within the registerCmsTools function.
    server.registerTool(
      "collections_get",
      {
        title: "Get Collection",
        description:
          "Get detailed information about a specific CMS collection including its schema and field definitions.",
        inputSchema: z.object({
          collection_id: z
            .string()
            .describe("Unique identifier for the Collection."),
        }),
      },
      async ({ collection_id }) => {
        try {
          const response = await getClient().collections.get(
            collection_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