Create View
Describe how to create a new view for a NocoDB table. This plugin's MCP tools are data tools and do not create views, so guide the user through the NocoDB web interface -- or hand the schema work to the nocodb-dev plugin (/nocodb-dev:create-view), which builds views over MCP on Cloud / licensed servers and over REST otherwise.
Arguments
Parse from "$ARGUMENTS":
table-name(required): Name or ID of the tableview-type(required): grid, kanban, gallery, form, calendar, timeline, gantt, map, or listtitle(optional): Name for the new view
Process
- Run
getTablesListto resolve the table name. - Run
getTableSchemato list existing views and columns. - Based on view type, recommend:
- Grid: default working view, suggest useful filters and sorts
- Kanban: identify SingleSelect columns suitable for grouping
- Gallery: identify Attachment columns for cover images
- Form: suggest which fields to include as required
- Calendar / Timeline: identify Date/DateTime columns (a start and, optionally, an end)
- Gantt: identify start and end Date columns
- Map: identify a geographic (Geometry) column
- List: identify the linked tables to nest
- Provide step-by-step instructions for creating the view in the NocoDB UI.
- If the user wants it scripted, point to
/nocodb-dev:create-view(MCPcreateView, or thePOST /api/v3/meta/bases/{baseId}/tables/{tableId}/viewscurl recipe) -- there is nonccommand.
Example Usage
/create-view Deals kanban "Deal Pipeline"
/create-view Contacts form "New Contact Form"
/create-view Events calendar "Event Schedule"