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
| Name | Type | Description |
|---|---|---|
vector_store_id required | string | The ID of the vector store to search. |
query required | string | A query string for a search |
rewrite_query | boolean | Whether to rewrite the natural language query for vector search. |
max_num_results | integer | The maximum number of results to return. This number should be between 1 and… |
filters | object | A filter to apply based on file attributes. |
ranking_options | object | Ranking 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:
{
"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:
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 ….