Skip to main content
Glama

Search Within a Source

search_within
Read-onlyIdempotent

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).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe document text to search inside (max ~200K chars).
limitNoMax passages to return (1-20, default 5).
queryYesNatural-language query — what passages do you want? E.g. "supply-chain risk", "fiscal year 2024 revenue", "drug interactions with warfarin".

TDQS

A4.7/5.0
Behavior5/5

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

The description discloses key behaviors beyond annotations: truncation at 200K chars (with a flag), overlapping 500-char windows, BGE-base-en embeddings with cosine similarity, and that every passage includes an offset for verifiability. This adds significant context to the readOnly/idempotent hints.

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?

The description is detailed but every sentence adds value: purpose, use case, truncation behavior, algorithm, and pairing with a sibling tool. It is front-loaded with the core action and efficiently structured with semicolons and examples, earning its length.

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

Completeness5/5

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

Given there is no output schema, the description adequately covers return values (passages with character offsets and similarity scores). It also explains the technical specifics (window size, embedding model, truncation) and provides a clear use case, making the tool fully understandable for an AI agent without further information.

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% for all three parameters, so the baseline is 3. The description adds minor context (e.g., 'text you already pulled' as a usage nuance, 'top-N passages' reinforcing the limit parameter), but does not materially extend the parameter meanings provided by the schema.

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 clearly states the tool's function: semantic search inside a previously fetched text, returning top-N passages with offsets and scores. It distinguishes itself from siblings like search_wikipedia (external search) and ask_pipeworx_grounded (grounded QA) by emphasizing it operates on a passed-in text.

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

Usage Guidelines5/5

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

Explicit usage guidance is provided: 'Use when the record is too big to cram into the prompt.' It also names a complementary tool ('Pairs with ask_pipeworx_grounded') and explains the workflow: fetch with the gateway, then ground over passages. This directly informs when to choose this tool over alternatives.

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.

TDQS

A3.9/5.0
Disambiguation2/5

Several tool families have ambiguous boundaries: ask_pipeworx, ask_pipeworx_beta, and ask_pipeworx_grounded are three variants of the same router (with beta currently identical), and the six polymarket tools plus bet_research heavily overlap in scanning and pricing edges. discover_tools, suggest_questions, and deep_research also all function as 'what should I query' entry points. Agents will struggle to select the right tool without carefully reading long descriptions.

Naming Consistency3/5

Many tools follow a clear verb-first snake_case pattern (get_article_extract, resolve_entity, subscribe, validate_claim), and families like ask_pipeworx_* and polymarket_* are internally consistent. However, notable noun-phrase outliers such as entity_profile, deep_research, bet_research, recent_changes, pipeworx_feedback, and polymarket_edge_tracker break the convention. The naming is readable but not predictable across the full set.

Tool Count2/5

36 tools is well over the 25+ threshold for a typical MCP server, and for a server named 'wikipedia' it is especially disproportionate: only 5 tools actually deal with Wikipedia while 31 are Pipeworx data, prediction-market, memory, subscription, and feedback utilities. The count reflects a broad all-in-one platform crammed into a Wikipedia-labeled surface rather than a well-scoped server. This is a significant scope mismatch.

Completeness4/5

The Wikipedia portion is reasonably complete for read-only lookup: search, summary, sections, full extract, and random discovery cover common encyclopedic questions without dead ends. The broader Pipeworx surface is also extensive, with query, grounded verification, deep research, entity resolution/profile/comparison, claim validation, memory, and subscription lifecycle tools. Minor gaps remain (no article categories/history, no update for subscriptions, no direct fetch of a citation URI), but they are workable.