Skip to main content
Glama

remove_hierarchy_level

Removes a specified hierarchy level and automatically renumbers the rest. Blocks the final level removal to keep hierarchies non-empty.

Instructions

Remove a level from a hierarchy (remaining levels are renumbered densely). Refuses to remove the LAST level - a hierarchy cannot be empty; use delete_hierarchy instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelYesthe level to remove
tableYes
hierarchyYesthe hierarchy
sessionIdYes
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. It discloses two important behaviors: remaining levels are renumbered densely, and the last level cannot be removed. This goes beyond the obvious 'remove' semantics. It doesn't mention permissions or reversibility, but for a removal operation, the disclosed behaviors are key.

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 a single, dense sentence that front-loads the core purpose ('Remove a level from a hierarchy') and packs in crucial behavioral details without any fluff. Every clause earns its place.

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?

For a simple mutation tool with no output schema and no annotations, the description covers purpose, key side effects, error condition, and an alternative tool. It doesn't mention return values, but that's not critical for a remove operation. It adequately addresses the main contextual gaps.

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 coverage is 50%, with descriptions for 'level' and 'hierarchy' but not for 'sessionId' and 'table'. The description adds context to 'level' by explaining the renumbering and refusal behavior, but it doesn't clarify the role of sessionId or table. It provides some value beyond the schema's tautological 'the level to remove', but doesn't fully compensate for the missing parameter docs.

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 action: 'Remove a level from a hierarchy' with a specific verb and resource. It also distinguishes from the sibling tool delete_hierarchy by noting the refusal to remove the last level and pointing to the alternative.

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

Usage Guidelines5/5

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

The description explicitly says when not to use this tool: 'Refuses to remove the LAST level - a hierarchy cannot be empty; use delete_hierarchy instead.' This provides a clear exclusion and names the alternative tool for that case.

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/cyphonica/powerbi-pbix-mcp'

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