Skip to main content
Glama

x402-binary-search

Binary Search: Binary search a sorted array. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
targetNo
valuesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / target / description
      Removed value: -"Target to process"
    • removedInput schema / properties / values / description
      Removed value: -"Values to process"
  2. Changed2 schema fields changed
    • addedInput schema / properties / target
      Added value: +{
      +  "description": "Target to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / values
      Added value: +{
      +  "description": "Values to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

C2.2/5.0
Behavior2/5

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

No annotations exist, so the description must carry the full behavioral burden. It discloses only a commercial trait (5 free trial calls per signed wallet), which is genuinely useful context, but says nothing about the return shape, failure behavior, cost after the trial, or how payment is asserted.

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?

It is short and front-loaded, which is good, but the leading "Binary Search:" label duplicates the tool name and is dead weight, and the pricing sentence sits where the input-format guidance should be.

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?

The tool is simple (2 optional parameters, no output schema, no annotations), yet the one thing an agent must know — how to encode the array into the `values` string and what the result looks like — is entirely absent.

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% and both parameters (target, values) are undocumented. The description adds only "sorted array", which does not resolve the critical ambiguity that `values` is typed as a string — the agent cannot tell whether to send a comma-separated list, JSON, or a single element.

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?

It names a recognizable algorithm and its input precondition ("binary search a sorted array"), so the verb+resource is inferable. But it never says what the tool actually returns — an index, a boolean, or the element found — and the opening "Binary Search:" merely repeats the tool name.

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?

The only embedded guidance is the implicit precondition that the input must be sorted. There is no statement of when to pick this over the many obvious siblings (x402-linear-search, x402-find, x402-bin-lookup, x402-sorted-array), nor of what happens when the target is absent.

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