Skip to main content
Glama

Cloudflare Edge Compute (Browser Run, Sandboxes & Vectorize RAG)

edge_ai_search_query

Query a tenant-isolated Cloudflare Vectorize & AI Search knowledge base with Workers AI Gateway synthesis and signed Ed25519 receipt. ($0.02 via Base USDC _meta["x402/payment"] or Atlas spend_key)

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": {
      "tenant_id": "<tenant_id>",
      "query": "<query>"
    },
    "name": "edge_ai_search_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
spend_keyNoOptional Atlas prepaid spend key (sbk_*).
tenant_idYes
max_resultsNo
payment_signatureNoOptional x402 v2 Base USDC PAYMENT-SIGNATURE.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and adds useful context: tenant isolation, Cloudflare Vectorize/AI Search, Workers AI Gateway synthesis, signed Ed25519 receipt, and $0.02 payment via Base USDC or Atlas spend_key. However, it omits important operational behavior such as what the response contains, whether the operation is read-only, payment failure behavior, and max_results semantics.

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?

The description is a single sentence that front-loads the purpose and avoids unnecessary preamble. It is dense with implementation and payment details, and the nested `_meta["x402/payment"]` syntax is somewhat clunky, but the content remains reasonably efficient.

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?

For a 5-parameter paid query tool with no annotations and no output schema, the description should explain required parameters, return behavior, and payment/auth requirements more fully. It covers the service stack and cost but leaves key operational details, especially tenant_id/query/max_results and the response shape, underspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 40%: spend_key and payment_signature are described in the schema, but tenant_id, query, and max_results are undocumented. The description only mentions spend_key and x402 payment indirectly and does not explain the required parameters or max_results, so it fails to compensate for the low coverage.

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?

The description states a clear verb and resource: querying a tenant-isolated Cloudflare Vectorize & AI Search knowledge base. It also names the synthesis and receipt behavior, which distinguishes it from the browser/compute/sandbox siblings, though it does not explicitly differentiate itself from any sibling.

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 description gives payment options and cost but no guidance on when to use this tool versus alternatives, nor any exclusions or prerequisites beyond the required tenant_id/query implied by the schema. The agent must infer usage from the tool name and resource description.

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