Skip to main content
Glama

Affine Earth Math Court Remote

verify_bernstein_vazirani

Read-onlyIdempotent

QC-007 Bernstein-Vazirani verifier: certifies answers[i] == popcount(hidden AND query_i) mod 2 across semicolon-separated queries. Floats refused.

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": {
      "answers": "<answers>",
      "hidden": "<hidden>",
      "queries": "<queries>"
    },
    "name": "verify_bernstein_vazirani"
  }
}

Input Schema

NameRequiredDescriptionDefault
hiddenYes
answersYes
queriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / answers / description
      Removed value: -"one bit per query, concatenated in query order, e.g. 101 = popcount(s AND q_i) mod 2 for each query"
    • removedInput schema / properties / hidden / description
      Removed value: -"the hidden bit string s, length 1..8, e.g. 101"
    • removedInput schema / properties / queries / description
      Removed value: -"query bit strings of the same length as hidden, separated by ';' (a comma-separated list is REFUSED_SHAPE), e.g. 100;010;001"
  2. Changed3 schema fields changed
    • addedInput schema / properties / answers / description
      Added value: +"one bit per query, concatenated in query order, e.g. 101 = popcount(s AND q_i) mod 2 for each query"
    • addedInput schema / properties / hidden / description
      Added value: +"the hidden bit string s, length 1..8, e.g. 101"
    • addedInput schema / properties / queries / description
      Added value: +"query bit strings of the same length as hidden, separated by ';' (a comma-separated list is REFUSED_SHAPE), e.g. 100;010;001"
  3. Changed3 schema fields changed
    • removedInput schema / properties / answers / description
      Removed value: -"one bit per query, concatenated in query order, e.g. 101 = popcount(s AND q_i) mod 2 for each query"
    • removedInput schema / properties / hidden / description
      Removed value: -"the hidden bit string s, length 1..8, e.g. 101"
    • removedInput schema / properties / queries / description
      Removed value: -"query bit strings of the same length as hidden, separated by ';' (a comma-separated list is REFUSED_SHAPE), e.g. 100;010;001"
  4. Added
  5. Removed
  6. Changed4 schema fields changed
    • addedInput schema / properties / answers / description
      Added value: +"one bit per query, concatenated in query order, e.g. 101 = popcount(s AND q_i) mod 2 for each query"
    • addedInput schema / properties / hidden / description
      Added value: +"the hidden bit string s, length 1..8, e.g. 101"
    • addedInput schema / properties / queries / description
      Added value: +"query bit strings of the same length as hidden, separated by ';' (a comma-separated list is REFUSED_SHAPE), e.g. 100;010;001"
    • changedInput schema / required
      Previous value: -[]New value: +[
      +  "answers",
      +  "hidden",
      +  "queries"
      +]
  7. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the bar is lower; the description still adds real value by specifying the exact certification equation, the semicolon-separated query encoding, and that float inputs are rejected. It stops short of describing the response shape (e.g., per-index pass/fail vs. single boolean), which is the remaining behavioral gap.

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?

Two tight sentences with the core predicate front-loaded and the input constraint trailing as a short imperative. No filler, though the 'QC-007' identifier prefix is noise rather than signal.

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?

For a three-required-parameter tool with no output schema and no properties documented, the description covers the mathematical contract and one encoding detail but omits the string formats of 'hidden' and 'answers' and what the verifier actually returns. Adequate but with clear gaps for correct invocation.

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 0%, so the description must carry parameter meaning. It partially does: 'queries' is semicolon-separated and 'answers' is indexed in parallel with queries, and 'hidden' is the AND operand. However, the string encoding of 'hidden' and 'answers' is never specified, leaving half the semantics to guesswork.

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?

Names a specific verifier (Bernstein-Vazirani) and states the exact predicate certified: answers[i] == popcount(hidden AND query_i) mod 2. It does not explicitly contrast with algorithmic siblings like verify_deutsch_jozsa or verify_simon, but the formula itself is unambiguous about scope.

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

Usage Guidelines3/5

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

Usage is implied by the predicate: use this when checking BV circuit outputs against a hidden string. There is no explicit when-to-use/when-not guidance, no statement of prerequisites, and no routing to alternatives among the many verify_* siblings; only the 'Floats refused' constraint hints at input expectations.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources