Skip to main content
Glama

Cortex Create Search Service

cortex_create_search_service

Create a Cortex Search service from read-only SQL, specifying search columns, attributes, warehouse, and target lag to enable indexed search over Snowflake data.

Instructions

Create a Cortex Search service. The AS query must be read-only SQL. https://docs.snowflake.com/en/sql-reference/sql/create-cortex-search

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": {
      "service_name": "<service_name>",
      "search_column": "<search_column>",
      "attributes": "<attributes>",
      "warehouse": "<warehouse>",
      "target_lag": "<target_lag>",
      "query": "<query>"
    },
    "name": "cortex_create_search_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
databaseNoQuote names that aren't all uppercase, exactly as list tools return them.
warehouseYesQuote names that aren't all uppercase, exactly as list tools return them.
attributesYes
target_lagYes
schema_nameNoQuote names that aren't all uppercase, exactly as list tools return them.
service_nameYesQuote names that aren't all uppercase, exactly as list tools return them.
if_not_existsNo
search_columnYesQuote 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

C2.9/5.0
Behavior3/5

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

Annotations already establish the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false). The description meaningfully adds the constraint that the AS query must be read-only SQL, which an agent could not infer from the schema. It still omits what failure looks like, whether creation is blocking/long-running, and privilege requirements for a create operation.

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?

The definition is three short sentences, with purpose front-loaded and the SQL constraint placed before the reference link. Nothing is wasted. It is efficient, though the brevity edges toward under-specification for a tool with nine parameters.

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 nine-parameter, six-required creation tool with no output-schema explanation needed but a mutation side effect, the description is too thin: it explains neither the required structural parameters (search_column, attributes, target_lag) nor prerequisites or post-creation state. The agent must fall back on external Snowflake docs to fill the gap.

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 only 56%, and the description compensates for just one parameter: query, via the read-only SQL constraint. Key undocumented parameters such as attributes, target_lag, and search_column receive no explanation in either place, and warehouse/database/schema_name only carry the generic quoting hint from the schema.

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 opens with a specific verb+resource: "Create a Cortex Search service." That is unambiguous and clearly distinct from the read/list/drop/suspend siblings by verb alone. It stops short of explicitly naming those alternatives, so it is a strong 4 rather than a 5.

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 when-to-use guidance: no prerequisites (privileges, warehouse requirement), no statement of when to prefer this over compute_services_create_service, and no note about what happens if the service already exists. The only usage-adjacent content is the validation rule that the AS query must be read-only SQL.

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