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?

Annotations already declare readOnlyHint=true and idempotentHint=true, so safety is covered. The description adds valuable behavioral detail beyond annotations: truncation at 200K chars with unflagging, the use of BGE-base-en embeddings, 500-char overlapping windows, and cosine similarity. It also explains the return payload (top-N passages with offsets and similarity scores), which is not in the schema. This fully discloses operational behavior.

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 information-dense but every sentence earns its place: definition, use case, example, return fields, pairing with a sibling, and technical details. It is front-loaded with the core purpose and avoids redundancy with the annotations/schema. While longer than the two-sentence ideal, it packs substantial useful detail without being verbose.

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 tool has no output schema, so the description must explain return values – it does ('top-N passages with character offsets and similarity scores'). It also covers the truncation behavior and embedding methodology, and it places the tool within the broader workflow (pairs with ask_pipeworx_grounded). Given the tool's moderate complexity, the description is complete enough for an agent to select and invoke it correctly.

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 coverage is 100%, so the baseline is 3, but the description adds meaningful context for the 'text' parameter by specifying it must be a previously fetched record (e.g., SEC 10-K body, article, long tool result). It also reiterates the character cap, reinforcing the schema's max limit. The query and limit parameters are well-defined in the schema, and the description adds examples for query. Overall, it adds value over the 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 the tool performs semantic search inside a fetched record, with a specific verb ('Search Within a Source') and resource. It distinguishes from siblings by emphasizing 'inside a fetched record' vs. other search tools, and it explicitly names a complementary tool (ask_pipeworx_grounded) for grounding over passages.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives an explicit use case ('Use when the record is too big to cram into the prompt') and explains the pairing with ask_pipeworx_grounded. However, it does not explicitly mention when NOT to use it or name alternative search tools (like wgs_search) as substitutes, so it lacks a full when-not/alternatives matrix present in top-tier examples.

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

B3.4/5.0
Disambiguation2/5

Several tools have overlapping or poorly distinguished purposes. For instance, `ask_pipeworx` and `ask_pipeworx_beta` have nearly identical descriptions, and `ask_pipeworx_grounded` also shares the same routing but adds a different output format. The `ai_visibility_check` and `scan_competitor_ai_presence` tools also overlap significantly.

Naming Consistency3/5

There is some consistency with verb_noun patterns (e.g., `resolve_entity`, `search_within`, `subscribe`, `unsubscribe`). However, there are many deviations: `ask_pipeworx`, `pipeworx_feedback`, `pipeworx_trending`, `entity_profile`, `scan_dependency`, and `polymarket_edges` break the pattern, mixing descriptive names with non-standard prefixes.

Tool Count4/5

37 tools is slightly above the ideal range for a single MCP server, but the tools cover a very broad and varied domain (IETF data, company research, prediction markets, package scanning, memory, etc.). The count is high but still within a manageable scope for a multi-purpose utility server.

Completeness2/5

The server combines tools from two very different domains: IETF Datatracker (document/WG/person lookups) and Pipeworx (data retrieval, prediction markets, company analysis). The IETF-related tools are sparse and incomplete (only document search, document, person, wg, wgs_search, rfc are present—no ability to create or modify records). The Pipeworx side is extensive but leaves notable gaps (e.g., no tool for submitting comments or editing IETF documents).