Skip to main content
Glama

Cortex Sentiment

cortex_sentiment
Read-onlyIdempotent

Analyzes text sentiment via Snowflake AI_SENTIMENT, returning overall and optional aspect categories instead of a legacy numeric score.

Instructions

Analyze sentiment via Snowflake AI_SENTIMENT. Returns an object with a categories array (overall plus optional aspects), not a legacy -1.0..1.0 float score.

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": {
      "text": "<text>"
    },
    "name": "cortex_sentiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.4

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds a valuable warning that the response is a categories array rather than a legacy float score, but it says nothing about input limits, language coverage, latency, or what the optional aspects actually are.

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

Conciseness5/5

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

Two short sentences, front-loaded with the action and immediately followed by the return-shape caveat. Nothing is redundant or padded.

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 the return-value explanation is a bonus rather than a requirement, and annotations cover safety. However, the description references 'optional aspects' while the input schema exposes only 'text', leaving an unexplained discrepancy and no guidance on how aspects are produced.

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 description coverage is 0%, so the description should carry the burden, and it never mentions the single 'text' parameter — no guidance on format, length, or language. A lone required string named 'text' is largely self-evident, which keeps this from being a serious gap.

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 a specific verb and resource ('Analyze sentiment') and identifies the underlying engine ('Snowflake AI_SENTIMENT'), which is enough for an agent to distinguish it from the other cortex_ text tools. It stops short of explicitly contrasting with siblings like cortex_complete or cortex_extract_answer.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the verb 'Analyze sentiment' — there is no explicit statement of when to pick this over cortex_complete or cortex_extract_answer, and no prerequisites or exclusions. An agent can infer the domain but must decide selection on its own.

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