Skip to main content
Glama

Cortex Chat Completion

cortex_chat_completion

Generates OpenAI-compatible chat completions through Snowflake Cortex, enabling conversational AI responses; performs a write and is blocked in read-only mode.

Instructions

Cortex chat completions (OpenAI-compatible). This call is a write: it is open-world and is refused in read-only mode. https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-rest-api

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": {
      "request": "<request>"
    },
    "name": "cortex_chat_completion"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.3.0

TDQS

C2.9/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=false and openWorldHint=true, so 'this call is a write' and 'is open-world' largely restate structured data. The one genuinely additive detail is that the call is refused in read-only mode, which explains a concrete failure mode. Nothing is said about cost/token consumption, latency, streaming, or error behavior for an open-world generative endpoint.

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?

Three short sentences with the core identification front-loaded, followed by the operational constraint, then the reference link. Nothing is padded or redundant, though the bare URL occupies space without inline explanation of what it resolves.

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 not be described. However, for a generative open-world endpoint taking a fully undocumented nested request object, the definition should say more about the request payload (model selection, message format, required fields) rather than deferring entirely to an external URL. 'OpenAI-compatible' plus the docs link prevents this from being inadequate, but it is thin for a tool of this complexity.

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 0%: the single parameter is an opaque nested object with additionalProperties=true and no field documentation. The description partially compensates by saying the call is 'OpenAI-compatible', which tells the agent the request body follows the OpenAI chat completions shape (model, messages, etc.) and gives a docs link. It does not enumerate required fields such as model or messages, so the agent must consult external documentation to construct a valid request.

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 the resource precisely ('Cortex chat completions') and adds the qualifier 'OpenAI-compatible', so an agent knows this is a general-purpose chat/completion endpoint rather than an embedding or search call. It stops short of differentiating from close siblings such as cortex_complete, cortex_message_completion, or cortex_generate_response, leaving the agent to guess which completion flavor to pick.

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 guidance on when to choose this over the other completion tools in the sibling list. The only contextual statement is a restriction ('refused in read-only mode'), which tells the agent when the call will fail, not when it should be preferred. The bare docs URL is a pointer, not guidance.

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