Skip to content
LogoLogo

MCP server

Control your Picked workspace from an AI tool that writes code, with the Model Context Protocol (MCP).

Tools

Discovery

ToolDescription
list_projectsLists your organizations and projects
list_workspacesLists the workspaces in a project
get_workspace_overviewReads the live version and the workspace draft
get_schema_infoReads the documentation for Picked concepts and the data model
list_picked_docsLists every Picked documentation page with its URL
read_picked_docReads one documentation page, or one section of it

Experiences

ToolDescription
create_experienceCreates an experience
get_experienceReads an experience, with its flow graph
list_experiencesLists your experiences
update_experience_flowCreates, updates, or deletes steps, conditions, actions, fields, nodes, and edges as one operation

Steps, fields, conditions, and actions

ToolDescription
get_step / list_stepsRead steps
update_stepRenames a step, or binds it to the content entry that it renders
get_field / list_fieldsRead fields
get_condition / list_conditionsRead conditions
get_action / list_actionsRead actions

Feature flags

ToolDescription
create_featureCreates a feature flag
get_featureReads a feature flag
list_featuresLists your feature flags
update_featureUpdates the name, description, state, or weight

Workflows

A workflow runs a graph of nodes when its trigger occurs. The trigger is a domain event or one action.

ToolDescription
list_workflowsLists the workflows in a workspace, with search and sort
get_workflowReads a workflow, with its trigger, graph, warnings, and the paths that its nodes use
list_workflow_toolsLists the tools that a tool node can run, with the arguments of each tool
create_workflowCreates a workflow with its trigger. You cannot change the trigger after this step
update_workflowRenames a workflow
update_workflow_graphCreates, updates, or deletes nodes and edges as one operation
guide_delete_workflowGives the link to the workflow in the dashboard, where you delete it
list_workflow_runsLists the runs of a workflow, with the newest run first
get_workflow_runReads the status of a run and the reason for a failure
list_workflow_run_tasksLists the nodes that a run started, and the leads and labels that each node changed
test_run_workflowRuns the draft of a workflow one time as a test, and shows what each node did

If update_workflow_graph refuses a change, it saves nothing. The result names each node or edge that has a problem. If the origin node does not connect to a node, the change is saved, and the result gives a warning for that node.

A workflow run uses the published version of the workflow. Publish the workspace to apply a change.

test_run_workflow runs the draft, so you can test a change before you publish it. Give the responses of the action, or the entity_id of the event. The result shows the input, the output, the status, and the branch of each node.

A tool that reads, such as search_leads or an http GET, runs. A tool that writes does not run: the result shows what it would send. A wait node does not wait. The test run saves nothing. You must have each scope that the workflow uses.

Analytics

ToolDescription
query_pickedqlRuns a PickedQL analytics query and returns the rows as a table

Call get_schema_info with the topic pickedql to see the tables, the virtual functions, and the dimension columns before you write a query.

Publish

ToolDescription
get_preview_urlMakes a preview URL for your unpublished work
guide_publish_workspaceGives the link to publish the workspace in the dashboard
list_workspace_versionsLists the published versions of a project, and shows the live one
compare_workspace_versionsShows the differences between the live version, a version, and a draft

The list_* and get_* tools read the workspace draft. The draft can be different from the live version that visitors see. Use compare_workspace_versions to see what is live and what changes when you publish.

Example prompts

  • "List my Picked projects and show me the options on each one"
  • "Create a feature flag called 'new-checkout' at 50% traffic"
  • "Create an experience with a step that collects an email address"
  • "Show me control and variant users by the device type for the last 30 days"
  • "Make a preview URL for my workspace on https://example.com"
  • "Create a workflow that adds the label plan.pro to each lead from the sign-up action"
  • "Show me why the last run of my workflow failed"
  • "Test my sign-up workflow with the email a@example.com and show me what each node does"

Tips

  • Ask your agent for a list of your projects first. Then ask it to read your workspace and report the options on each record.
  • For a large experience, ask your agent about flow graphs and JSON Logic. The agent can read the documentation for you.
  • An update to an experience flow is atomic. Your agent can create steps, fields, nodes, and edges in one operation.
  • See a preview of your work on your site before you publish, to check that each page is correct.
  • The create_workflow prompt tells your agent how to build a workflow. The resource picked://workflow/{workflowId}/graph gives the graph of a workflow as JSON.
  • Ask your agent to run a PickedQL query on your analytics data. The agent can read the schema, write the SQL, and explain the rows.