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?

Annotations declare safe, idempotent, non-destructive. Description adds specific behavioral details: BGE-base-en embeddings, cosine similarity, 500-char overlapping windows, 200K char cap with truncation flag, and output format (offsets, similarity scores). No contradictions.

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?

Description is concise (~5 sentences), front-loaded with purpose, and every sentence adds unique value. No redundancy or filler.

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

Completeness4/5

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

Covers essential behavioral aspects (embedding model, windowing, truncation, output format) and pairs with a sibling tool. Lacks details on no-result behavior and pagination, but given no output schema, it provides sufficient completeness for an agent.

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% with clear param descriptions. The description adds value by explaining query examples and the 200K char limit, and hints at return format (offsets, scores) which is not in 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 it performs semantic search inside a fetched record, with specific examples (SEC 10-K body, article). It distinguishes itself from sibling tools like 'ask_pipeworx_grounded' by explicitly pairing with it.

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?

Explicitly advises when to use: 'Use when the record is too big to cram into the prompt.' Mentions saving context and returning only relevant passages. References a sibling tool for a workflow.

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

Several tool pairs have blurred boundaries: 'ask_pipeworx', 'ask_pipeworx_beta', and 'ask_pipeworx_grounded' serve overlapping routing purposes with minor differences in grounding or versioning, which can confuse an agent. Similarly, 'pipeworx_feedback' and the user feedback mechanism inside other tools lack clear tool-level distinction. Most other tools are distinct but the cluster of ask_pipeworx variants lowers overall clarity.

Naming Consistency4/5

Tool names largely follow a consistent verb_noun or prefix_noun pattern (e.g., ask_pipeworx, resolve_entity, scan_dependency). Some names like 'bet_research' and 'datasets' deviate from this pattern but remain readable. No chaotic mixing of conventions like camelCase and snake_case is present, so consistency is high overall.

Tool Count3/5

With 34 tools, the count is on the higher side for a single server, yet the tool set covers a broad domain of data access, analysis, and monitoring (data pipelines, prediction markets, compliance scans). Given the variety of distinct capabilities offered, 34 is borderline but not excessive enough to drop to a 2, as each tool addresses a concrete need.

Completeness5/5

The tool set offers a remarkably complete lifecycle for data operations: discovery (suggest_questions, discover_tools, datasets), entity resolution (resolve_entity, metadata), querying and retrieval (ask_pipeworx, deep_research, query), analysis and comparison (compare_entities, entity_profile, validate_claim), memory (remember, recall, forget), monitoring (subscribe, recent_alerts, polymarket_edge_tracker), and feedback (pipeworx_feedback). Niche tools like bet_research, scan_dependency, and generate_llms_txt further fill domain-specific gaps. No obvious missing operations for the stated purpose.