Skip to main content
Glama

bitmask_ops

Perform bitmask operations to inspect masks, enumerate submasks/supersets and set bits, and calculate next permutations.

Instructions

Bitmask operations: info, submasks, supersets, next permutation, enumerate set bits.

Input Schema

NameRequiredDescriptionDefault
maskYesNon-negative integer bitmask
universeNoUniverse mask for supersets operation
operationYesOperation: info, submasks, supersets, next_permutation, or enumerate

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not state whether the tool is read-only, what each operation returns, how errors are handled, or what the envelope looks like; it only lists operation names.

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, so it is structurally efficient. It is somewhat too terse for a multi-mode tool, but it avoids waste and does not bury the purpose.

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?

For a tool with no annotations, no output schema, and several operation modes, the description is too thin. It does not explain what info, submasks, supersets, next_permutation, or enumerate actually return, nor does it clarify how universe interacts with operation.

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 description coverage is 100%, and the schema already documents mask, universe, and operation, including the operation values. The description simply repeats the operation list and adds no additional parameter semantics beyond the 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?

It names the resource (bitmask) and enumerates the specific operation modes (info, submasks, supersets, next_permutation, enumerate set bits). This is more specific than a generic bitwise tool, though it does not explicitly distinguish itself from nearby siblings such as bitwise_calc or bit_count.

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?

The description lists available operations but gives no guidance on when to choose each operation, what each one returns, or when to use this tool instead of sibling bit tools. The operation list is only an enumeration, not usage guidance.

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

Deploy Server

Other Tools