Skip to main content
Glama

Tables Create View

tables_create_view
Destructive

Creates a Snowflake view from a read-only SQL query, with optional secure mode and confirmation before replacing an existing view.

Instructions

Create a view. The AS query must be read-only SQL. Requires confirmation, since or_replace replaces an existing view. https://docs.snowflake.com/en/sql-reference/sql/create-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": {
      "view_name": "<view_name>",
      "query": "<query>"
    },
    "name": "tables_create_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
secureNo
confirmNo
databaseNoQuote names that aren't all uppercase, exactly as list tools return them.
view_nameYesQuote names that aren't all uppercase, exactly as list tools return them.
or_replaceNo
schema_nameNoQuote names that aren't all uppercase, exactly as list tools return them.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.3.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description nevertheless adds real context beyond them by naming the destructive path (or_replace replaces an existing view) and the confirmation requirement. It also imposes the read-only SQL constraint on the query, which is behavioral guidance an agent would otherwise have to infer.

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?

Front-loaded with the core action, followed by constraints and a docs link, with no filler. The confirmation clause is slightly compressed and ambiguous in phrasing ('Requires confirmation, since or_replace replaces an existing view'), but the whole thing is four short sentences.

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?

An output schema exists, so return values need no explanation, and the destructive path is disclosed. Gaps remain for a 7-parameter create tool: the secure flag is undocumented, and namespace defaults for database/schema are not addressed in the description.

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 only 43%, so the description should compensate more than it does. It effectively explains the query, confirm, and or_replace semantics, but leaves 'secure' entirely unexplained, and view_name/database/schema_name quoting guidance lives only in the schema.

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?

States a specific verb and resource ('Create a view'), which is immediately actionable. It does not explicitly differentiate itself from close siblings such as tables_create_table or tables_drop_view, though the name and first sentence leave little ambiguity about what it does.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no mention of prerequisites, and no routing to or away from alternatives like tables_drop_view or tables_create_table. The read-only constraint on the AS query is a usage rule, but not a selection rule between tools.

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

Deploy Server

Other Tools