Home / Servers / OpenAI API / search_vector_store

Search vector store

An MCP tool from the OpenAI API server, hosted on mcp.hjlabs.in.

Search vector store Search a vector store for relevant chunks based on a query and file attributes filter. [POST /vector_stores/{vector_store_id}/search]

Name on the gateway: openai_api__search_vector_store · may change things.

Parameters

NameTypeDescription
vector_store_id requiredstringThe ID of the vector store to search.
query requiredstringA query string for a search
rewrite_querybooleanWhether to rewrite the natural language query for vector search.
max_num_resultsintegerThe maximum number of results to return. This number should be between 1 and…
filtersobjectA filter to apply based on file attributes.
ranking_optionsobjectRanking options for search.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "openai_api__search_vector_store",
  "arguments": {
    "vector_store_id": "…",
    "query": "…"
  }
}

Or connect the OpenAI API server directly, which lists 371 tools including this one:

Run in your terminal
claude mcp add --transport http hj-openai-api https://mcp.hjlabs.in/mcp/openai-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the search vector store tool with vector_store_id set to ….

More from OpenAI API