x402-constant-time-equal
Constant Time Equal: Constant time equal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | A to process | |
| b | No | B to process |
Constant Time Equal: Constant time equal.
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | A to process | |
| b | No | B to process |
Changes observed during successful MCP inspections.
Input schema / properties / aAdded value: +{
+ "description": "A to process",
+ "type": "string"
+}Input schema / properties / bAdded value: +{
+ "description": "B to process",
+ "type": "string"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full behavioral burden and delivers none of it. It does not state the return type (boolean?), how unequal-length inputs are handled, or the security rationale (no early-exit on mismatch). For a cryptographic primitive whose entire value is a behavioral property (constant-time execution), this is a critical omission.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
It is short, but only because it says the same thing twice; the second clause duplicates the title verbatim. Brevity here reflects under-specification rather than efficient front-loading.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no annotations, no output schema, and no stated return value, the definition leaves an agent unable to know it returns a boolean, how it handles unequal lengths, or why it differs from ordinary equality. For a security primitive with a real behavioral contract, this is inadequate.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The schema descriptions themselves are placeholders ('A to process', 'B to process'), and the tool description adds no meaning about what a and b represent or whether order/length matters, so it neither compensates nor regresses.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description is a tautology: 'Constant Time Equal: Constant time equal' restates the tool name/title without adding a verb+resource explanation. It never says this compares two values in constant time and returns whether they are equal, or why that matters (timing-attack resistance). An agent can guess the pairing semantics from the 'a'/'b' params, but the description itself contributes nothing.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No when-to-use, when-not-to-use, or alternative guidance is given, despite the sibling list containing string-compare, is-approximately, and other comparison tools. The agent gets no signal that this is the security-sensitive comparison to prefer over a plain equality check.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.