Skip to main content
Glama

silhouette_score

Evaluate clustering quality by computing silhouette scores, interpreting values from -1 to 1 to identify good (>0.5) or poor (<0.25) clusters.

Instructions

Compute silhouette score to evaluate clustering quality. Score ranges from -1 to 1: higher is better. >0.5 = good, >0.7 = excellent, <0.25 = poor. Run after kmeans_cluster or dbscan_cluster. Example: silhouette_score(cluster_column="cluster", feature_columns=["Revenue","Weight"])

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
df_nameNo
cluster_columnYes
feature_columnsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the burden of disclosure. It explains the score range and interpretation thresholds, and gives a usage example. It does not explicitly state that the operation is read-only or mention potential side effects, but for a simple compute tool this is sufficient.

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 four sentences, front-loaded with purpose, followed by interpretation, usage guidance, and an example. Every sentence adds value and there is no wasted wording.

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 with 3 parameters and an output schema. The description covers purpose, when to use, and interpretation, but parameter semantics are weak, and the description does not explain the df_name parameter or the nature of feature_columns beyond the example. Overall, it is adequate but not complete.

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 0%, so the description must compensate. It provides an example that shows cluster_column and feature_columns usage, but does not explain what these parameters mean semantically, nor does it mention the optional df_name parameter. The example gives minimal insight but is not adequate.

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 uses a specific verb 'compute' with a clear resource 'silhouette score' and states it evaluates clustering quality. This distinguishes it from sibling tools like kmeans_cluster, dbscan_cluster, and cluster_profile.

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

Usage Guidelines4/5

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

The description explicitly states when to use it: 'Run after kmeans_cluster or dbscan_cluster.' It provides clear context for the intended workflow, though it doesn't mention when not to use it or alternative evaluation methods.

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/AstyanM/mcp-data-science'

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