Skip to main content
Glama

semantic-search

Rank a list of documents by MEANING closeness to a query (cosine similarity over embeddings). Ready-to-use RAG, no need for the agent to run its own vector DB. input='query || doc 1 || doc 2 || ...' (|| separated). [x402: 0.003 USDC on Base, pay-per-use]

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": {
      "input": "<input>"
    },
    "name": "semantic-search"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes'query || doc1 || doc2 || ...'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / input / description
      Previous value: -"'consulta || doc1 || doc2 || ...'"New value: +"'query || doc1 || doc2 || ...'"
  2. First observed

TDQS

B3.4/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 behavioral burden; it does disclose the scoring method (cosine similarity) and the cost model (x402, 0.003 USDC on Base, pay-per-use), which are genuinely useful beyond-schema facts. However, it says nothing about the shape of the result (ranked order only, or scores too), limits on document count/size, or failure behavior, and no output schema covers those gaps.

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?

Three tight sentences with the core operation front-loaded and the format and pricing details trailing in parentheses, so nothing is buried. The 'Ready-to-use RAG' line leans promotional, but it is short enough to earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter tool with no output schema, the description omits what an agent most needs after calling it: whether the response is just an ordering or includes similarity scores, and any cap on document length or count. Method, input format, and pricing are covered, so it is adequate but not complete.

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 coverage is 100% and the schema already documents the 'query || doc1 || doc2 || ...' format, so the description largely repeats it. The added value is modest: explicitly labeling the first segment as the query and confirming the '||' separator, which reinforces the ordering convention.

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?

States a concrete verb and resource ('Rank a list of documents by MEANING closeness to a query') and names the underlying method (cosine similarity over embeddings). The 'Ready-to-use RAG, no need for the agent to run its own vector DB' clause hints at why this exists versus building your own pipeline, but no sibling tool is named, so differentiation relies on inference.

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

Usage Guidelines3/5

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

Usage context is implied — you would reach for this to rank or retrieve documents for RAG — but there is no explicit when-to-use/when-not statement and no named alternative among the many semantic siblings (embeddings, busqueda-semantica). An agent must infer selection from the purpose line alone.

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.