Skip to main content
Glama

Programmability Create Function

programmability_create_function
Destructive

Creates a Snowflake function with specified arguments, return type, language, and body; supports confirmed replacement of an existing function.

Instructions

Create a function. Requires confirmation, since or_replace replaces an existing function. https://docs.snowflake.com/en/sql-reference/sql/create-function

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": {
      "function_name": "<function_name>",
      "arguments": "<arguments>",
      "returns": "<returns>",
      "body": "<body>"
    },
    "name": "programmability_create_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
confirmNo
handlerNo
returnsYes
databaseNoQuote names that aren't all uppercase, exactly as list tools return them.
languageNoSQL
argumentsYes
or_replaceNo
schema_nameNoQuote names that aren't all uppercase, exactly as list tools return them.
function_nameYesQuote names that aren't all uppercase, exactly as list tools return them.
runtime_versionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.3.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true. The description earns credit for explaining the reason behind the destructive flag — or_replace overwrites an existing function — and for flagging that confirmation is required, which the annotations do not convey. It says nothing about the execution model or what an existing function loses on replacement.

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 short sentences plus a reference link, with the core action front-loaded and the confirmation warning second. The closing URL is a reasonable pointer rather than filler, though the second sentence's phrasing ("since or_replace replaces...") is slightly awkward.

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

Completeness2/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 not be explained. But for an 11-parameter creation tool with only 27% schema coverage, the description omits the language/handler/returns/body relationship that determines whether a call can succeed at all, leaving a substantial gap.

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

Parameters2/5

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

Schema description coverage is only 27%, so the description must carry the burden for the remaining parameters. It adds real meaning for exactly two of them (the confirmation requirement and or_replace's replacement effect), but leaves language, body, handler, returns, arguments, runtime_version, database, and schema_name completely unexplained beyond their bare names.

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 opens with a specific verb+resource ("Create a function") that immediately identifies the operation. It is clear enough to separate from describe/drop/invoke siblings by name alone, but it does not explicitly contrast with adjacent create tools such as create_procedure or create_code_bundle.

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?

The description states a usage precondition ("Requires confirmation") and implies when the destructive path is taken via or_replace, which gives the agent a behavioral cue. However, it never states when to choose this tool over another create-style sibling, nor when to avoid it.

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