search_within
ActiveTool of Gitlab Public
Semantic search INSIDE a fetched record. Pass the text you already pulled (e.g. a SEC 10-K body, an article, a long tool result) plus a natural-language query; get back the top-N passages with character offsets and similarity scores. Use when the record is too big to cram into the prompt — search_within saves context, returns only the passages that matter, and every passage carries an offset so the agent can verify a verbatim quote. Pairs with ask_pipeworx_grounded: fetch with the gateway, ground over the relevant passages instead of the whole document. BGE-base-en embeddings + cosine over 500-char overlapping windows; cap is 200K chars (longer inputs are truncated and flagged).
Parameters schema
{
"type": "object",
"required": [
"text",
"query"
],
"properties": {
"text": {
"type": "string",
"description": "The document text to search inside (max ~200K chars)."
},
"limit": {
"type": "number",
"description": "Max passages to return (1-20, default 5)."
},
"query": {
"type": "string",
"description": "Natural-language query — what passages do you want? E.g. \"supply-chain risk\", \"fiscal year 2024 revenue\", \"drug interactions with warfarin\"."
}
}
}Parent server
Gitlab Public
https://github.com/pipeworx-io/mcp-gitlab-public
1/7 registries