Skip to main content
Glama

create_view

Creates a saved database view with filters, sorts, and display options; use kanban with groupBy on a status/select column to build a board.

Instructions

Create a saved view with filters, sorts, and display options. Use type "kanban" with groupBy set to a status/select column ID to create a board view.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace": "<workspace>",
      "databasePath": "<databasePath>",
      "view": "<view>"
    },
    "name": "create_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewYesView configuration
workspaceYesWorkspace path or name
databasePathYesPath to the database folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.19.0
    • addedInput schema / properties / view / properties / mapLocationColumn
      Added value: +{
      +  "description": "Column ID holding locations (map views; defaults to the first location/text/url column). Values can be city/address names, \"lat, lng\" coordinates, or Google Maps links. Rows render as pins, or as boundary areas automatically when the place has a city-scale outline.",
      +  "type": "string"
      +}
    • addedInput schema / properties / view / properties / mapStyle
      Added value: +{
      +  "description": "Map views: base tile style — \"colorful\" (default — low-clutter with solid colors), \"minimal\" (low-clutter grayscale), \"detailed\" (classic OpenStreetMap), or \"nolabels\" (plain geography)",
      +  "enum": [
      +    "minimal",
      +    "colorful",
      +    "detailed",
      +    "nolabels"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / view / properties / type / description
      Previous value: -"View type. Defaults to \"table\" if not specified."New value: +"View type. Defaults to \"table\" if not specified. Map views plot rows with a location column on a world map. For a Custom view (an HTML tool rendering the rows — cards, charts…) use add_tool_view instead."
    • changedInput schema / properties / view / properties / type / enum
      Previous value: -[
      -  "table",
      -  "kanban",
      -  "gallery",
      -  "chart"
      -]New value: +[
      +  "table",
      +  "kanban",
      +  "gallery",
      +  "calendar",
      +  "chart",
      +  "gantt",
      +  "dashboard",
      +  "map"
      +]
    • addedInput schema / properties / view / properties / widgets
      Added value: +{
      +  "description": "Dashboard widgets (dashboard views only): { id, kind: chart|stat|recent-docs|upcoming, title, size: single|double|full, height: 1-3, filters, config }",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. First observedv0.6.0

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden. It implicitly signals a persistent mutation (a "saved" view) but says nothing about required permissions, what happens on a duplicate name, or what the call returns; the one concrete behavior it adds is the kanban/groupBy pairing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core action, and the second sentence is a useful non-obvious hint rather than filler. Nothing is padded, though it is on the thin side for a tool with a deeply nested view object.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a create tool with three required parameters and a nested view configuration, the description is adequate but minimal. The rich schema covers parameter detail, yet the description leaves unaddressed what success looks like, collision behavior, and how the view types relate to the create_database/open_view siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the nested view object, sort/filter shapes, and map options are already documented. The description adds minor value by tying kanban type to a status/select column for groupBy, but otherwise restates what the schema provides; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("Create a saved view") and enumerates the configuration surface (filters, sorts, display options). It does not differentiate from siblings like add_tool_view or open_view, though the schema does carry the add_tool_view distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives one genuine conditional guideline: use type "kanban" with groupBy pointing at a status/select column to get a board. Beyond that there is no when-to-use vs when-not framing, and the alternative for HTML-tool views (add_tool_view) appears only in the schema, not the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.