Skip to main content
Glama

createGroup

Create a new group or list in the Clay MCP server, ensuring no duplicates unless specified. Manage contacts, notes, and reminders efficiently with organized groupings.

Instructions

Create a group or list for the user. If a group with the same name already exists, it will not create a duplicate unless explicitly requested to ignore the check.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesThe name of the group to create.

Implementation Reference

  • index.js:265-273 (registration)
    Registration of the MCP tool 'createGroup' using server.addTool, including name, description, input parameters schema, and execute handler.
    server.addTool({ name: "createGroup", description: "Create a group or list for the user. If a group with the same name already exists, it will not create a duplicate unless explicitly requested to ignore the check.", parameters: z.object({ title: z.string().describe("The name of the group to create."), }), execute: async (params) => callTool("/create-group", params), });
  • Input schema for the createGroup tool, requiring a 'title' string parameter.
    parameters: z.object({ title: z.string().describe("The name of the group to create."), }),
  • Handler function for createGroup tool that proxies the request to the external /create-group endpoint via the shared callTool function.
    execute: async (params) => callTool("/create-group", params),
  • Shared helper function callTool that handles HTTP requests to the external Clay API endpoints for all proxied tools, including createGroup.
    async function callTool(path, params, session) { console.log('Calling tool', path, session) return fetch(`https://nexum.clay.earth/tools${path}`, { body: JSON.stringify(params), headers: { Authorization: `ApiKey ${session.apiKey}`, "Content-Type": "application/json", }, method: "POST", }).then((res) => res.text()); }

Other Tools

Related Tools

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/clay-inc/clay-mcp'

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