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. First observed

TDQS

A4.9/5.0
Behavior5/5

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

The description reveals substantial behavioral detail beyond annotations: it returns top-N passages with character offsets and similarity scores, uses BGE-base-en embeddings and cosine similarity over 500-char overlapping windows, and has a 200K character cap with truncation flagged. This gives the agent a clear model of what to expect. No contradiction with the readOnly/idempotent 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?

The description is three sentences, each earning its place. The first sentence states the core function, the second gives the primary use case and return characteristics, and the third covers technical details and limits. There is no redundancy or fluff; the front-loaded phrase 'Semantic search INSIDE a fetched record' immediately conveys the purpose.

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?

The description covers the key aspects an agent needs: what it does, when to use it, what it returns (offsets, scores), how it works (embeddings, window size), and its limits (200K truncation). Since there is no output schema, the description compensates by summarizing the return structure. The guidance on pairing with ask_pipeworx_grounded also rounds out the usage context. This is complete for a tool of this complexity.

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?

The input schema already provides 100% coverage with descriptions for all three parameters, so the baseline is 3. The description adds value by providing concrete examples of valid inputs (SEC 10-K body, article, natural-language query examples) and framing the text parameter as a 'fetched record,' which enriches the schema's bare description. This extra context justifies a score above baseline.

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 'Semantic search INSIDE a fetched record,' clearly specifying the verb (search) and the resource (a fetched record). It distinguishes itself from siblings like search_markets and ask_pipeworx by emphasizing that it operates on text already pulled by the agent, not on external market data or general queries.

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 provides a concrete integration pattern with ask_pipeworx_grounded, showing how to fetch then ground over passages, which clarifies the intended workflow relative to siblings.

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

Multiple tools have overlapping or near-identical purposes: ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded, deep_research, and validate_claim all answer factual questions with varying degrees of grounding. The polymarket_* family (edges, arbitrage, fill_risk, edge_tracker) and bet_research also create boundary confusion. An agent would struggle to consistently select the correct tool without deep reading of each description.

Naming Consistency3/5

Most tools follow a verb_noun snake_case pattern (search_markets, get_market, compare_entities, resolve_entity), but there are clear outliers like pipeworx_trending, recent_alerts, top_markets, and pipeworx_feedback which use adjective_noun or noun_adjective forms. The pattern is mostly consistent but has enough deviations to feel mixed.

Tool Count2/5

With 34 tools, the surface is decidedly heavy. Many tools serve entirely different domains (memory, subscriptions, AI visibility, npm dependency scanning, cross-venue arbitrage) rather than a unified purpose. This feels like several server concepts merged into one, making the count inappropriate for a single coherent server.

Completeness3/5

The data-research side is fairly comprehensive: querying, grounding, comparisons, profiles, claim validation, entity resolution, change tracking, and memory are all covered. However, for the nominal Futuur prediction-market domain, only read-only market lookup exists — no trading, account management, or order placement. Subscription CRUD is also missing an update operation, and several research tools only cover US public companies and specific data sources.