Skip to main content
Glama
BACH-AI-Tools

Power Assist MCP Server

mode

Identifies the most frequently occurring number from an array, treating numeric strings as numbers, and falls back to the last value when no number repeats.

Instructions

Calculates the mode (the number that occurs most often) from an Array of numbers. Strings that can be converted to numbers are allowed, but formatting such as commas are NOT supported. If multiple instances of the same number are passed in separately, one as a string and one as a number, they will be counted as instances of the same number. If no numbers occur more than once, the last number in the array will be returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description carries the full burden of behavioral disclosure, and it does so thoroughly. It reveals that strings convertible to numbers are accepted, formatting like commas is unsupported, string/number duplicates are counted together, and the last number is returned when no repeats exist. This is excellent transparency.

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 three sentences long, with every sentence providing essential behavioral information. It is front-loaded with the primary purpose and then adds necessary edge-case details without waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the empty schema and no output schema, the description covers most essential behavioral aspects: input type, string conversion, duplicates, and tie behavior. However, it does not specify behavior for an empty array or non-convertible strings, leaving minor gaps in edge-case handling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema is empty, so the description fully compensates by explaining that the input is an array of numbers, the conversion rules for strings, and duplicate handling. This goes well beyond the baseline 4 for zero-parameter tools.

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 'Calculates' and identifies the resource ('the mode ... from an Array of numbers'), clearly distinguishing it from sibling tools like median and average. It fully defines what the tool does in its first sentence.

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 provides clear context on when to use this tool: for calculating the mode, and it explains input constraints (strings convertible to numbers are allowed, formatting is not supported) and tie behavior. However, it does not explicitly mention alternatives or when not to use it, though the purpose is unambiguous.

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/BACH-AI-Tools/bachai-power-assist'

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