Home / Servers / Vercel API / create_flag_segment

Create a segment

An MCP tool from the Vercel API server, hosted on mcp.hjlabs.in.

Create a segment Create a new feature flag segment. [PUT /v1/projects/{projectIdOrName}/feature-flags/segments]

Name on the gateway: vercel_api__create_flag_segment · may change things.

Parameters

NameTypeDescription
projectIdOrName requiredstringThe project id or name
teamIdstringThe Team identifier to perform the request on behalf of.
slugstringThe Team slug to perform the request on behalf of.
body_slug requiredstring
createdBystringThe entity who created the segment
label requiredstring
descriptionstring
data requiredobjectThe data of the segment
hint requiredstring

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "vercel_api__create_flag_segment",
  "arguments": {
    "projectIdOrName": "…",
    "body_slug": "…",
    "label": "…",
    "data": "…",
    "hint": "…"
  }
}

Or connect the Vercel API server directly, which lists 472 tools including this one:

Run in your terminal
claude mcp add --transport http hj-vercel-api https://mcp.hjlabs.in/mcp/vercel-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a segment tool with projectIdOrName set to ….

More from Vercel API