Skip to main content
Glama

Programmability Invoke Function

programmability_invoke_function
Read-onlyIdempotent

Calls a Snowflake function with literal arguments, enabling UDFs and external functions to run and reach outside services.

Instructions

Call a function with literal arguments. External functions and UDFs with external access can reach outside services. 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_signature": "<function_signature>"
    },
    "name": "programmability_invoke_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseNoQuote names that aren't all uppercase, exactly as list tools return them.
argumentsNo
schema_nameNoQuote names that aren't all uppercase, exactly as list tools return them.
function_signatureYesQuote 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

A3.6/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, and the description usefully elaborates the open-world aspect: external functions and UDFs with external access "can reach outside services," warning that a nominally read-only call may have outbound side effects. It does not cover permissions, cost/latency, or what happens on signature mismatch, which keeps it below a 5.

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 terse sentences with the core action front-loaded and the risk disclosure immediately after; nothing is padded. The trailing link points at CREATE FUNCTION docs rather than function invocation, which is a small relevance misstep but not enough to break conciseness.

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 annotations carry the safety profile. For an invocation tool with argument-typing and overload-resolution subtleties, though, the definition never says how positional arguments must match the signature or what errors surface on mismatch, leaving a meaningful gap.

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 coverage is 75%, so three of four parameters are already documented in the schema, and the description adds only the notion that argument values must be literals (not expressions or subqueries) rather than explaining ordering versus the function signature. The undocumented arguments array gets no help from the description either, so this sits at the baseline plus a small increment.

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?

"Call a function with literal arguments" names a specific verb (call/invoke) and resource (function), which cleanly separates it from the create/drop/describe/list function siblings. The qualifier "with literal arguments" adds a real constraint rather than restating the title, though it never names an alternative tool or scope (e.g. procedures) explicitly.

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?

Usage is only implied by the verb: an agent can infer 'use this to execute a function you already know the name of,' but there is no explicit when-to-use versus when-not, no mention of prerequisites (function must exist, caller needs USAGE), and no pointer to describe_function or list_functions for discovery first.

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