Skip to main content
Glama
BACH-AI-Tools

Power Assist MCP Server

objecttoarray

Turns an object into an array of its keys for looping. Returns empty array for null/empty objects.

Instructions

Accepts an Object and returns an Array based on the Object's keys, allowing looping on the Object. If Null or an empty object is passed in, an empty Array will be returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

The description discloses edge-case behavior by stating that Null or an empty object yields an empty array. However, it doesn't clarify the structure of the resulting array (e.g., array of keys vs. values) or the ordering of elements, which are important behavioral aspects not covered by annotations (since none are present).

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 composed of two concise sentences with no extraneous content. It front-loads the main purpose and includes a key edge case, earning a high score for efficiency.

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?

For a simple conversion tool with no params and no output schema, the description conveys the core function and one edge case. However, the ambiguity about the array's contents (keys vs. values) leaves a gap that could lead to incorrect usage. Given the tool's simplicity, a score of 3 reflects that it's adequate but not fully complete.

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

Parameters4/5

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

The tool has zero parameters, so baseline is 4. The description adds context by specifying the input type (an Object) and the null/empty handling behavior, which enriches the implicit input semantics beyond the empty schema.

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 clearly states the tool accepts an Object and returns an Array based on the Object's keys, which is a specific transformation. It distinguishes itself from siblings like reverse or filter by focusing on object-to-array conversion. However, it doesn't explicitly specify whether the array contains keys, values, or key-value pairs, creating slight ambiguity.

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?

The phrase 'allowing looping on the Object' implies the tool is useful when iteration over an object is needed. No explicit alternatives or when-not-to-use scenarios are provided, so the guidance remains implied rather than explicit.

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