Skip to main content
Glama

csp_ac3

Computes AC-3 arc consistency for constraint satisfaction problems, showing each arc revision, removed domain values, and re-queued arcs so you can trace pruning.

Instructions

AC-3 arc consistency: every arc revision, the values removed and the arcs re-queued.

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": {
      "variables": "<variables>",
      "domains": "<domains>"
    },
    "name": "csp_ac3"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainsYes
variablesYes
neighboursNo
constraintsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and does not meet it. It hints that the tool emits a per-arc-revision trace including removed values and re-queued arcs, but says nothing about whether input domains are mutated or copied, what happens on inconsistency detection (empty domain), or whether the run is exhaustive or bounded.

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 short sentence is maximally compact and front-loads the algorithm name, but it is a sentence fragment whose content is spent on return-value description that the output schema already covers. Brevity here is under-specification rather than economy.

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 four-parameter tool with nested objects, zero schema description coverage, and no annotations, the description should at minimum characterize the CSP inputs and failure behavior. Because an output schema exists, the description need not explain return values — yet that is the only thing it does explain, leaving the actual call contract underspecified.

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

Parameters1/5

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

Schema description coverage is 0% across four parameters, and the description adds no meaning for any of them. It never explains what `variables`, `domains`, `neighbours`, or `constraints` expect, nor what the null defaults on the two optional parameters mean (e.g., infer neighbors from constraints), even though 'arcs' in the text implicitly depends on that structure.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific algorithm (AC-3 / arc consistency), which a domain-aware agent can distinguish from siblings like csp_backtracking, but the sentence is a noun phrase with no verb stating what the tool actually does to the CSP (enforce? simulate? return a trace?). It reads as a description of output more than of action.

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 when-to-use guidance, no mention of the alternative csp_backtracking or forward_chaining propagation, and no stated prerequisites (e.g., requiring an already-consistent or partially assigned CSP). The agent must infer the place of AC-3 in a solving pipeline entirely from outside knowledge.

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