Skip to main content
Glama

boolean_algebra_operation

Evaluate and analyze Boolean polynomials over GF(2): list variables, compute degree, test for zero/one, and reduce expressions.

Instructions

Boolean polynomials over GF(2): evaluate, list variables, degree, and zero/one tests. Prefer this over evaluate_sage for boolean algebra.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionNoNamed workspace to use. Workspaces have independent variables; omit for 'default'.default
operationYesOne of: evaluate, variables, degree, is_zero, is_one, reduce
expressionYesBoolean expression (e.g. 'x*y + x*z + y*z')
num_variablesNoNumber of boolean variables

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description carries the burden. It gives some context (GF(2), operations) but does not disclose session behavior, side effects, or edge cases. The operations appear non-mutating, so this is acceptable but minimal.

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?

Two sentences, concise and front-loaded. The core purpose and usage guidance are delivered without any wasted words.

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?

With an output schema and 100% schema coverage, the description doesn't need to explain return values or parameters. It covers purpose and usage, but omits mention of the 'reduce' operation and session semantics, leaving minor 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 covers all 4 parameters with descriptions (100% coverage). The description adds little beyond restating some operation names and grouping is_zero/is_one as 'zero/one tests', which is marginal value over the schema.

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 tool handles Boolean polynomials over GF(2) and lists specific operations (evaluate, list variables, degree, zero/one tests), distinguishing it from generic tools like evaluate_sage.

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?

Explicitly says 'Prefer this over evaluate_sage for boolean algebra', giving a direct comparison and selection rule for when to use this tool.

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/XBP-Europe/sagemath-mcp'

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