Skip to main content
Glama

naive_bayes_classify

Classify categorical data rows with Naive Bayes and optional Laplace smoothing, using labeled examples to predict a query's class.

Instructions

Naive Bayes classification from categorical data rows [attr values..., class], with optional Laplace smoothing.

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": {
      "attributes": "<attributes>",
      "data": "<data>",
      "query": "<query>"
    },
    "name": "naive_bayes_classify"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
queryYes
laplaceNo
attributesYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden but only partially does so. It discloses that rows follow [attr values..., class] and that Laplace smoothing is optional, but it does not clarify how data and query interact or whether the tool trains, classifies, or both.

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 description is a single front-loaded sentence with no filler. However, the bracket notation is compressed and somewhat cryptic, and the sentence omits information that would make the tool straightforward to invoke.

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?

The tool has nested objects, four parameters, and no annotation coverage, while the description is a single sentence. Although an output schema exists and return values need not be described, the missing explanation of query, attributes, and their relationship to data leaves the definition incomplete for correct invocation.

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 for four undocumented parameters. It partially explains data row structure and Laplace smoothing, but it says nothing about the required query object or the attributes parameter and how it aligns with the data columns.

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 states a specific algorithm and task: Naive Bayes classification from categorical data rows. It also summarizes the row format and optional smoothing, making the tool identifiable. It does not explicitly differentiate itself from the sibling kNN classifier or explain when Naive Bayes is the appropriate choice.

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 explicit guidance on when to use this tool versus alternatives such as knn_classify or bayes_net_query. The description implies classification usage but does not state prerequisites, restrictions, or selection criteria for the required query object.

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