Skip to main content
Glama

Cortex Generate Response

cortex_generate_response

Generates AI responses from OpenAI models via Snowflake Cortex Responses API for write-mode agent operations, and is refused in read-only mode.

Instructions

Preview: Cortex Responses API (OpenAI models on AWS only). 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_generate_response"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.3.0

TDQS

C2.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so 'This call is a write' is largely redundant. The genuinely additive content is the read-only-mode refusal behavior and the preview/limited-availability status, both of which an agent needs. Still missing: cost/latency expectations, auth requirements, and whether calls are billed per token.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short clauses plus a URL, with no filler, but it is front-loaded with 'Preview' rather than the tool's purpose. The brevity here reflects under-specification rather than disciplined concision.

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 a complex open-world model-invocation tool with a nested unconstrained request object, the description leaves the agent without enough to construct a valid call. The documentation link is the only fallback and is not summarized.

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?

The single parameter is an opaque free-form object with additionalProperties=true and 0% schema description coverage, and the description adds nothing about its contents. An agent must infer the payload shape from the linked external documentation, which is a weak substitute for in-definition semantics on a nested, unconstrained object.

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

Purpose2/5

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

The description essentially restates the name: 'Cortex Responses API' tells an agent this wraps the OpenAI Responses-style endpoint, but never says what the call actually produces. Nothing distinguishes it from the highly similar siblings cortex_chat_completion, cortex_complete, or cortex_message_completion, so an agent cannot pick correctly from the name-plus-description alone.

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-relevant statement is the failure condition ('refused in read-only mode'), which tells the agent when the call will error, not when to prefer it. There is no guidance on choosing this over the other completion-style tools, nor on the 'AWS only' restriction's practical implications.

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