Skip to main content
Glama

walksat_step

Computes one WalkSAT step for a chosen false clause: lists false clauses, scores each possible flip, selects the greedy choice, and returns all one-step reachable assignments.

Instructions

One WalkSAT step: which clauses are false, the satisfied-clause count after each possible flip, the greedy choice, and every assignment reachable in one step. clause_index (1-based) fixes which false clause is picked.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "clauses": "<clauses>",
      "model": "<model>"
    },
    "name": "walksat_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
pNo
modelYes
clausesYes
clause_indexNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden. It does disclose what the step yields (false clauses, satisfied-clause count per flip, greedy choice, one-step-reachable assignments), which is real behavioral content, but it says nothing about whether the call mutates state, whether randomness is involved, or what p controls — significant for a stochastic search step.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence that front-loads the name's subject and then lists outputs. It is efficient but reads as a run-on, and it spends most of its length on return content that the output schema already covers.

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?

An output schema exists, so enumerating return values was not required, while the genuinely missing pieces — the semantics of p and the clause/model encodings — are absent. With no annotations and 0% schema coverage, the definition is under-specified for a four-parameter algorithm step.

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?

Schema description coverage is 0% across four parameters, so the description must compensate. It does explain clause_index (1-based indexing and what it fixes) but never explains p (apparently the noise probability, default 0.5), the clause-string format, or the model object's meaning. That leaves most parameters undocumented in both places.

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?

States a specific action and resource: "One WalkSAT step," and enumerates the results it produces, so it is distinguishable from a full run such as walksat_run. It is not tautological, though the verb is implied rather than stated (the tool computes/performs the step).

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?

No guidance on when to call this instead of walksat_run, or why one would fix clause_index versus letting it be null. The note that clause_index "fixes which false clause is picked" hints at one usage mode but never states the condition that should select it.

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