Skip to main content
Glama

Vector Search AnythingLLM Workspace

vector_search_workspace
Read-onlyIdempotent

Run raw vector similarity search against a workspace's embedded chunks without LLM generation. Retrieve the most relevant chunks by semantic query, with optional topN and score threshold.

Instructions

Run raw vector similarity search against embedded chunks in a workspace without LLM generation (POST /api/v1/workspace/:slug/vector-search).

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": {
      "slug": "<slug>",
      "query": "<query>"
    },
    "name": "vector_search_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesUnique workspace slug to search.
topNNoMaximum number of vector chunks to return (default: workspace topN or 4).
queryYesSemantic search query text.
scoreThresholdNoMinimum similarity score between 0 and 1 (default: workspace similarityThreshold or 0.25).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

The annotations already disclose read-only, idempotent, open-world, non-destructive behavior. The description adds useful context that this is a raw vector search with no LLM generation and gives the HTTP endpoint, but it does not cover auth needs, rate limits, or response shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single, front-loaded sentence with no unnecessary wording. The core purpose comes first and the endpoint reference is compact supplementary detail.

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 simple read-only search tool with fully documented parameters and strong safety annotations, the description is largely complete. It implies that returned items are embedded chunks, though it does not describe pagination or response structure in detail.

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 100%, so the input schema already explains slug, query, topN, and scoreThreshold thoroughly. The description adds no parameter-level meaning beyond mentioning the slug in the endpoint path.

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?

The description states a specific verb and resource: "Run raw vector similarity search against embedded chunks in a workspace." It explicitly distinguishes the operation from LLM-backed chat by saying "without LLM generation," so an agent can differentiate it from siblings like chat_workspace.

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?

The phrase "without LLM generation" gives clear context for when to use this tool: retrieval-only semantic search rather than a chat completion. It does not explicitly name an alternative or state when not to use it, but the use case is strongly implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.