Skip to main content
Glama

collection_fields_update

Modify field properties in Webflow CMS collections to update requirements, display names, or help text for improved content management.

Instructions

Update properties of an existing field in a CMS collection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYesUnique identifier for the Collection.
field_idYesUnique identifier for the Field.
requestYesRequest schema to update collection field metadata.

Implementation Reference

  • The handler function that executes the tool logic by calling the Webflow API to update a specific field in a collection and handles the response or error.
    async ({ collection_id, field_id, request }) => { try { const response = await getClient().collections.fields.update( collection_id, field_id, request, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } }
  • Zod schema defining the request body for updating collection field metadata (isRequired, displayName, helpText). Used in the tool's inputSchema.
    export const WebflowCollectionsFieldUpdateSchema = z .object({ isRequired: z .boolean() .optional() .describe("Indicates if the field is required in a collection."), displayName: z.string().optional().describe("Name of the field."), helpText: z.string().optional().describe("Help text for the field."), }) .describe("Request schema to update collection field metadata.");
  • MCP tool registration for 'collection_fields_update', including name, title, description, composed inputSchema (with collection_id, field_id, and WebflowCollectionsFieldUpdateSchema), and inline handler.
    server.registerTool( "collection_fields_update", { title: "Update Collection Field", description: "Update properties of an existing field in a CMS collection.", inputSchema: z.object({ collection_id: z .string() .describe("Unique identifier for the Collection."), field_id: z.string().describe("Unique identifier for the Field."), request: WebflowCollectionsFieldUpdateSchema, }), }, async ({ collection_id, field_id, request }) => { try { const response = await getClient().collections.fields.update( collection_id, field_id, request, 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