Skip to main content
Glama

x402-constant-time-equal

Constant Time Equal: Compare two strings a and b in constant time (length check, then crypto.timingSafeEqual) for tokens, MACs and secrets. Returns true or false. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
aNo
bNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / a / description
      Removed value: -"A to process"
    • removedInput schema / properties / b / description
      Removed value: -"B to process"
  2. Changed2 schema fields changed
    • addedInput schema / properties / a
      Added value: +{
      +  "description": "A to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / b
      Added value: +{
      +  "description": "B to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does reasonably well: it discloses the algorithm, the intermediate length check (which implies unequal lengths short-circuit and thus leak length), the boolean return, and the paid/trial access model. It does not cover error behavior when a or b is omitted, even though the schema marks both as optional.

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 behavior and return value front-loaded, followed by the pricing note. The trial-call line is promotional but still conveys billing-relevant information, so it earns enough of its place to avoid a penalty.

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 two-parameter pure comparison function with no output schema and no nested structures, the description covers what it does, how it does it, and what it returns. The remaining gap is the optional-vs-required status of a and b, which is inside the schema's domain but unresolved anywhere.

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 description coverage is 0%, so the description must compensate; it names both parameters a and b and declares them strings, which is the minimum. It adds nothing about requiredness, encoding, byte vs. character comparison, or whether inputs may be hex/base64 encoded secrets.

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 ('Compare two strings a and b in constant time') and names the exact mechanism (length check, then crypto.timingSafeEqual), which plainly separates it from the sibling x402-string-compare. The intended domain (tokens, MACs, secrets) removes any ambiguity about what it is for.

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 usage context — compare secrets, MACs, and tokens — which tells an agent when this tool is appropriate instead of a plain string comparison. It stops short of explicit exclusions or naming the alternative tool, so it falls below the top band.

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