Skip to main content
Glama

Cortex Message Completion

cortex_message_completion

Sends Anthropic-compatible message completion requests to Snowflake Cortex to generate AI responses; requires a writable connection because the operation is refused in read-only mode.

Instructions

Cortex Anthropic-compatible messages. This call is a write 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_message_completion"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.3.0

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so "this call is a write" largely restates structured data. The added value is the operational detail that it is refused in read-only mode, plus a pointer to the REST API docs; however nothing is said about model selection, latency, token limits, or failure modes beyond the read-only refusal.

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 no filler, and the identifying statement comes first. The doc URL is the only arguably non-earning element, but it is a reasonable escape hatch given the undescribed request body.

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?

For a tool whose sole input is an opaque nested request object, the definition should at minimum sketch the accepted message format and how it differs from the OpenAI-style chat completion sibling. It offers neither, and the output schema is the only thing spared from explanation.

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 0% and the single parameter is a free-form nested object with additionalProperties=true, so the schema conveys almost no semantics. The description does not name any expected request fields (messages, model, max_tokens, system), leaving only the external doc link as a weak pointer — a real gap for an Anthropic-format payload.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Cortex Anthropic-compatible messages" identifies the resource and hints at the payload format, but there is no verb (generate/complete) and no explicit statement that this produces a model completion. The "Anthropic-compatible" qualifier implicitly contrasts with the sibling cortex_chat_completion, yet the definition never names that sibling or states which to choose.

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?

The only usage guidance is the constraint "refused in read-only mode" — a prerequisite, not a when-to-use rule. Nothing tells the agent when this is preferable to cortex_chat_completion or cortex_complete, nor what happens on refusal (error type, fallback).

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