Skip to main content
Glama

sentiment_analysis

Analyze text sentiment to determine emotional tone, returning scores, labels, and key phrases for data-driven insights.

Instructions

Analyze sentiment of text — returns score, label, and key phrases. Cost: $0.01 USDC per call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to analyze
languageNoLanguage of the texten
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively adds context by specifying the cost ('$0.01 USDC per call'), which is a key behavioral trait not covered by the schema. However, it doesn't mention other aspects like rate limits, error handling, or response format details.

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?

The description is front-loaded with the core purpose and efficiently adds cost information in a single, waste-free sentence. Every part of the description earns its place by providing essential information without redundancy.

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?

Given the tool's moderate complexity (2 parameters, no output schema, no annotations), the description is somewhat complete by stating the purpose and cost. However, it lacks details on output structure (e.g., format of 'score, label, and key phrases'), error cases, or usage context, leaving gaps for an AI agent.

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 100%, so the schema already documents both parameters ('text' and 'language') adequately. The description does not add any meaning beyond what the schema provides for these parameters, maintaining the baseline score of 3.

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

Purpose5/5

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

The description clearly states the tool's purpose with a specific verb ('Analyze') and resource ('sentiment of text'), and distinguishes it from siblings by specifying what it returns ('score, label, and key phrases'). It goes beyond the name to explain the output, making it highly specific and differentiated.

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 description provides no guidance on when to use this tool versus alternatives like 'pii_detect' or 'document_intelligence', nor does it mention any prerequisites or exclusions. It lacks context for tool selection among the sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ntriq-gh/ntriq-agentshop'

If you have feedback or need assistance with the MCP directory API, please join our Discord server