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

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

Beyond the annotations (which already mark it as read-only, idempotent, etc.), the description discloses the embedding model (BGE-base-en), similarity metric (cosine), chunking strategy (500-char overlapping windows), character limit (200K with truncation flag), and return schema (passages with offsets and scores). This fully informs the agent of behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences: purpose, usage guidance, and implementation details. It is front-loaded with the core action. While efficient, the third sentence is dense with technical detail; breaking it into two might improve readability. Still, no wasted words.

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 that there is no output schema, the description adequately explains what the agent will receive (passages with character offsets and similarity scores). It covers the use case, limitations (truncation), and pairing with other tools. The description is complete for a retrieval tool with clear annotations.

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 schema already covers all three parameters with descriptions (100% coverage). The description adds value by providing example queries and clarifying the meaning of 'text' (the document) and 'query' (natural language). It also mentions the 200K char cap, which is not in the schema description. This is above the baseline of 3.

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 starts with a specific verb+resource: 'Semantic search INSIDE a fetched record.' It immediately clarifies the scope (inside a record) and contrasts with neighboring tools like ask_pipeworx_grounded, clearly stating when this tool is appropriate (record too big for prompt) and how it pairs with others.

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 this tool ('when the record is too big to cram into the prompt') and what it saves (context). It also mentions pairing with ask_pipeworx_grounded, giving an alternative workflow, which helps the agent decide between 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

A4/5.0
Disambiguation5/5

Each tool has a clear, distinct purpose with detailed descriptions that differentiate overlapping capabilities (e.g., ask_pipeworx vs deep_research vs ask_pipeworx_grounded vs bet_research). No two tools appear redundant; even similar prediction-market tools (polymarket_arbitrage, polymarket_edges, polymarket_edge_tracker, polymarket_fill_risk) have specific scopes.

Naming Consistency5/5

Tool names consistently use lowercase snake_case (e.g., ai_visibility_check, compare_entities, pipeworx_trending, polymarket_kalshi_spread). Single-word exceptions (ephemeris, lookup, observers, recall, remember, vectors) are common short verbs and do not break the pattern. No mixing of camelCase or other conventions.

Tool Count4/5

35 tools is above the typical 3-15 range, but the server is a comprehensive data platform covering multiple domains (SEC, FDA, FRED, prediction markets, memory, subscriptions, feedback). The count is justified given the breadth; it feels slightly heavy but not bloated or redundant.

Completeness5/5

The tool surface covers the full lifecycle for a data/research platform: discovery (discover_tools, suggest_questions), entity resolution (resolve_entity), lookups (ask_pipeworx, entity_profile), comparison (compare_entities), validation (validate_claim), prediction-market operations (polymarket_*), memory (remember/recall/forget), subscriptions (subscribe/unsubscribe/list_subscriptions/recent_alerts), and meta/feedback (pipeworx_feedback, pipeworx_trending). No obvious gaps for typical workflows.