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?

Beyond annotations (readOnly, idempotent, non-destructive), the description discloses the search mechanism (BGE-base-en embeddings + cosine over 500-char overlapping windows), the output structure (passages with character offsets and similarity scores), and a critical truncation behavior (200K char cap, flagged when truncated). This enriches the agent's understanding beyond the structured annotations.

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?

Three sentences deliver purpose, usage guidance, and technical specifics without redundancy. The first sentence front-loads the core function, the second explains when and why to use it, and the third gives essential operational constraints. Every sentence earns its place.

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?

For a tool with no output schema, the description adequately explains the return value (top-N passages with offsets and similarity scores), key constraints (200K char limit, truncation flag), and a clear use case. It also connects to a sibling tool, providing the agent with a complete decision and invocation context.

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?

The input schema already fully describes all three parameters (text, limit, query) with 100% coverage, so the baseline is 3. The description adds minimal parameter-specific context beyond examples of text types and query phrasings, which the schema also includes. It does not substantially increase understanding of parameter semantics.

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 opens with a specific verb and resource: 'Semantic search INSIDE a fetched record.' It distinguishes from siblings by emphasizing the tool operates on text already pulled, not on external data sources, and explicitly contrasts with ask_pipeworx_grounded's workflow. This leaves no ambiguity about the tool's unique function.

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?

The description explicitly states when to use the tool: 'Use when the record is too big to cram into the prompt.' It also names a complementary alternative, ask_pipeworx_grounded, and explains the pairing workflow ('fetch with the gateway, ground over the relevant passages'), giving the agent clear decision guidance.

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.5/5.0
Disambiguation2/5

Many tools overlap in purpose: ask_pipeworx and ask_pipeworx_beta are identical, while ask_pipeworx_grounded, deep_research, discover_tools, and suggest_questions all serve as query/entry-point tools. The two tax-specific tools are distinct, but the sheer number of generic data-access tools makes it difficult for an agent to select the right one.

Naming Consistency2/5

Naming is a mix of snake_case (ask_pipeworx, tax_search), camelCase (ask_pipeworx_beta, compare_entities, discover_tools), and inconsistent verb styles (resolve_entity vs entity_profile vs scan_competitor_ai_presence). No clear pattern is discernible.

Tool Count1/5

The server is named 'Tax Regulations' but only 2 of 33 tools are tax-related. The other 31 tools are unrelated Pipeworx data-access, memory, subscription, and Polymarket tools, making the count wildly excessive and mismatched with the apparent purpose.

Completeness3/5

For the tax regulation domain, tax_search and tax_regulation cover keyword discovery and full-text retrieval, which is a functional core. However, the set lacks any other tax-specific operations (e.g., updates, comparisons, planning), and the majority of the tool surface is irrelevant to the stated server purpose, leaving notable gaps for an agent expecting a coherent tax toolset.