Skip to main content
Glama

Cortex Complete

cortex_complete
Read-onlyIdempotent

Run LLM text completions via Snowflake AI_COMPLETE using a chosen model and prompt, with optional temperature and max_tokens, returning a string response.

Instructions

Run LLM completion via Snowflake AI_COMPLETE (e.g., 'llama3.3-70b', 'llama3.1-8b'). Optional temperature (0 to 1) and max_tokens are sent as model_parameters only when set; with neither set the call stays AI_COMPLETE(model, prompt) and still returns a string.

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": {
      "prompt": "<prompt>"
    },
    "name": "cortex_complete"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNollama3.3-70b
promptYes
max_tokensNo
temperatureNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv3.1.1
    • addedInput schema / properties / max_tokens / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / max_tokens / default
      Previous value: -1024New value: +null
    • removedInput schema / properties / max_tokens / type
      Removed value: -"integer"
    • addedInput schema / properties / temperature / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / temperature / default
      Previous value: -0New value: +null
    • removedInput schema / properties / temperature / type
      Removed value: -"number"
  2. Addedv2.0.4

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/openWorld annotations, the description discloses real behavioral detail: temperature and max_tokens are only forwarded as model_parameters when actually set, and the call degrades to AI_COMPLETE(model, prompt) otherwise while still returning a string. It does not mention rate limits, cost, or latency for open-world model calls, which would be the next useful layer.

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 dense sentences with the primary action front-loaded followed by the optional-parameter behavior. No filler, though the second sentence packs three distinct facts (range, conditional sending, fallback form) into one long clause.

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

Completeness4/5

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

For a simple four-parameter generation tool with an output schema present, the description covers what matters: which models, how optional params are applied, and that a string is returned even in the minimal form. Nothing critical for correct invocation is missing, though the prompt argument's expected content is not characterized.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry all meaning, and it does add value: it explains the conditional-passing semantics of the two optional parameters and bounds temperature at 0 to 1, plus gives example values for model. The required 'prompt' parameter is left to be inferred from its name, which is the residual gap.

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?

Names a specific verb and resource ('Run LLM completion') and pins the backend implementation ('Snowflake AI_COMPLETE') with example model identifiers. It does not explicitly contrast with siblings like cortex_summarize or cortex_translate, so the differentiation is only implicit in the generic 'completion' framing.

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 implied by 'LLM completion' and the example model names, which tell an agent this is the generic text-generation entry point. There is no explicit when-to-use/when-not guidance nor any named alternative for summarization or translation tasks, so the agent must infer the boundary itself.

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