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

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint. The description adds significant behavioral details beyond annotations: embedding model (BGE-base-en), similarity metric (cosine), chunking (500-char overlapping windows), character offsets in results, and a 200K char cap with truncation flag. No contradiction.

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 concise and well-structured. It starts with the core purpose, then provides usage conditions, examples, and technical details. Every sentence adds value. Formatting with bold and capitalization aids readability without excess.

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 no output schema, the description fully explains return values (top-N passages with offsets and scores) and internal algorithm. For a tool with 3 parameters and moderate complexity, this covers all necessary information for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the description adds context beyond schema. It explains the max size for 'text', provides example queries for 'query', and specifies the range and default for 'limit'. This adds meaningful context for an agent to select appropriate values.

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 performs semantic search inside a fetched record, using specific verbs like 'Semantic search INSIDE' and provides examples (SEC 10-K). It distinguishes from siblings by mentioning its pairing with ask_pipeworx_grounded and its focus on local text retrieval rather than external search.

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: when the record is too large for the prompt, and provides an alternative strategy: fetch with gateway and ground over passages. It gives concrete examples of queries and explains the benefit (saving context, returning relevant passages with offsets for verification).

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

Multiple tools have overlapping purposes, particularly the various data query tools (ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded, deep_research, bet_research, etc.) that share similar functionality with subtle differences. The detailed descriptions help but the boundaries are not always clear, making it hard for an agent to reliably select the correct tool.

Naming Consistency3/5

The naming follows a mix of patterns: some tools use consistent verb_noun (subscribe, unsubscribe, remember, recall) but others are inconsistent (ask_pipeworx vs deep_research vs entity_profile). The main data tools have a common prefix but diverge in style, and the presence of tools like passive_aggression_detect and generate_llms_txt adds further inconsistency.

Tool Count2/5

With 32 tools, the server feels bloated. Many tools could be consolidated (e.g., the ask_pipeworx variants, the Polymarket tools). The inclusion of tangential tools like passive_aggression_detect and generate_llms_txt suggests scope creep. A typical well-scoped server would have 10-15 tools.

Completeness3/5

The server covers a wide range of data access and some auxiliary functions (memory, subscriptions, feedback), but there are notable gaps like user authentication and data visualization. The addition of an unrelated sentiment analysis tool makes the surface feel incomplete for a focused data server.