Skip to main content
Glama
@odatano/nightgate-mcp

@odatano/nightgate-mcp

Official
by ODATANO

prepare_membership_set

Builds a deterministic membership-set tree from a public allow-list, returning a setRoot for verifying setMembership claims and optional inclusion paths for specific members.

Instructions

Build the canonical depth-6 membership-set tree over a public allow-list. Deterministic rule (digest each exact string, dedupe, sort ascending, pad by repeating the last member digest), so ANYONE recomputes the same setRoot from the published list alone: use the root to verify_predicate a setMembership claim. With value/valueDigest it additionally returns the member inclusion path (witness material, treat as sensitive); a non-member is a clean 400. Compute-only and synchronous.

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": {
      "allowedValues": "<allowedValues>"
    },
    "name": "prepare_membership_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNoOptional member string to get the inclusion path for (pass this OR valueDigest)
valueDigestNoOptional member digest (64 hex) instead of the raw value
allowedValuesYesThe public allow-list (up to 64 distinct values)
compiledArtifactRefNoContract artifact ref, defaults to 'attestation-vault-32'; 'attestation-vault' for a 16-slot vault

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.3

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations the description carries the full burden, and it does well: it declares the operation compute-only and synchronous, documents the deterministic digest/dedupe/sort/pad rule so the result is independently reproducible, flags witness material as sensitive, and specifies 400 on non-membership. Only the response shape itself is left implicit.

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?

Front-loads the action and result, then the determinism rule, then the optional-path behavior and error case — every clause carries information. It is dense with domain jargon, which costs a little readability but not correctness.

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?

For a compute-only tool with no output schema, the description covers inputs' effect, determinism, sensitivity, and error behavior. It never names the returned field (setRoot) explicitly as a return value, leaving the caller to infer the output shape.

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 coverage is 100%, so baseline is 3; the description adds real meaning by explaining that value/valueDigest is what triggers the inclusion-path return and by warning that the resulting witness is sensitive. compiledArtifactRef is left entirely to the schema, which keeps it from a 5.

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?

States a specific verb and resource ('Build the canonical depth-6 membership-set tree') plus scope ('over a public allow-list'), and names the downstream sibling verify_predicate so the agent can place it in the workflow without opening a schema.

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

Usage Guidelines4/5

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

Gives a clear context of use — produce setRoot, then pass it to verify_predicate for a setMembership claim — and states the non-member outcome ('a clean 400'). It does not name a competing alternative to avoid, so it stops short of explicit when-not guidance.

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