Skip to main content
Glama

Cortex List Agents

cortex_list_agents
Read-onlyIdempotent

Lists Snowflake Cortex agents with optional pattern, database, and schema filters; returns quoted names and qualified names to identify agents for follow-up SQL.

Instructions

List Cortex agents. https://docs.snowflake.com/en/sql-reference/sql/show-agents Each row also has quoted_name, the name in double quotes, and, when the row has a database and schema, quoted_qualified_name.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cortex_list_agents"
  }
}

Input Schema

NameRequiredDescriptionDefault
patternNo
databaseNoQuote names that aren't all uppercase, exactly as list tools return them.
schema_nameNoQuote 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

B3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is handled. The description contributes the useful quoting nuance (quoted_name, quoted_qualified_name) but says nothing about whether an unfiltered call returns all agents in scope, how pattern matching behaves, or any result-size concerns.

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?

Purpose is front-loaded in the first sentence and the remainder is short and relevant. The standalone URL sentence is slightly awkward but points to genuinely useful reference material, and there is no padding.

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?

The tool is simple (three optional params, output schema present, rich annotations), so the bar is modest, and the description covers purpose and one return-field quirk. It still leaves the default unfiltered behavior and the pattern parameter's semantics unaddressed.

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 coverage is 67%, so the schema carries most of the load, but the description adds nothing about parameters. Critically, 'pattern' — the only undocumented parameter — is left entirely unexplained, so an agent must guess its matching semantics (LIKE vs regex vs prefix).

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 concrete verb+resource ('List Cortex agents'), which is immediately distinguishable from siblings like cortex_run_agent or cortex_list_models. It does not explicitly name or contrast an alternative tool, keeping it at 4 rather than 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 statement of when to use this versus cortex_run_agent or the other cortex_list_* tools, and no guidance on when filters should be applied. The only usage-adjacent content is the doc link and the quoting note, which are not selection 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