Skip to main content
Glama

pages_get_metadata

Retrieve page metadata including SEO settings, Open Graph data, and publication status from Webflow sites to manage content visibility and optimization.

Instructions

Get metadata for a specific page including SEO settings, Open Graph data, and page status (draft/published).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYesUnique identifier for the page.
localeIdNoUnique identifier for a specific locale. Applicable when using localization.

Implementation Reference

  • Registration of the 'pages_get_metadata' tool using server.registerTool, including title, description, input schema, and the handler function.
    "pages_get_metadata", { title: "Get Page Metadata", description: "Get metadata for a specific page including SEO settings, Open Graph data, and page status (draft/published).", inputSchema: z.object({ page_id: z.string().describe("Unique identifier for the page."), localeId: z .string() .optional() .describe( "Unique identifier for a specific locale. Applicable when using localization." ), }), }, async ({ page_id, localeId }) => { try { const response = await getClient().pages.getMetadata( page_id, { localeId, }, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } } );
  • The async handler function that executes the tool: fetches page metadata via WebflowClient.pages.getMetadata, formats the response or error.
    async ({ page_id, localeId }) => { try { const response = await getClient().pages.getMetadata( page_id, { localeId, }, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } }
  • Zod inputSchema for the tool, validating page_id (string) and optional localeId (string).
    inputSchema: z.object({ page_id: z.string().describe("Unique identifier for the page."), localeId: z .string() .optional() .describe( "Unique identifier for a specific locale. Applicable when using localization." ), }),

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