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?

Adds substantial technical detail beyond annotations: BGE-base-en embeddings, cosine similarity over 500-char overlapping windows, 200K char cap with truncation and flag, and that each passage carries a character offset for verifying verbatim quotes. No contradiction with annotations (readOnlyHint, idempotentHint, etc.).

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?

Approximately four sentences, front-loaded with the core purpose in bold. Every sentence adds value: purpose, use case, pairing, technical details. No filler or redundancy.

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?

Despite lacking an output schema, the description explains return format (passages with offsets and similarity scores), truncation behavior, and pairing with a sibling. For a 3-param tool, this provides complete information for correct invocation.

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

Parameters3/5

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

Schema description coverage is 100%, so baseline is 3. The description repeats the 'max ~200K chars' for text and provides query examples, but does not add significant new semantic meaning beyond the schema's own descriptions.

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 'Semantic search INSIDE a fetched record' and gives concrete examples (SEC 10-K, article, long tool result). It distinguishes from siblings by explaining that it is used when the record is too large for the prompt, saving context, and pairs with ask_pipeworx_grounded.

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 states when to use: 'Use when the record is too big to cram into the prompt — search_within saves context, returns only the passages that matter'. Also mentions pairing with ask_pipeworx_grounded for grounding. Provides clear usage context without ambiguity.

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

The ask_pipeworx/ask_pipeworx_beta/ask_pipeworx_grounded trio are functionally near-identical to an agent (the beta is explicitly described as currently identical to stable), and the five polymarket_* tools (edges, arbitrage, edge_tracker, fill_risk, kalshi_spread) have heavily overlapping concerns around finding and validating prediction-market edges. The descriptions are detailed, but the boundaries require careful reading to pick correctly.

Naming Consistency4/5

All tools use snake_case and mostly follow a verb-first or noun-phrase convention, with recognizable family prefixes (ask_pipeworx_*, polymarket_*, pipeworx_*) that aid navigation. Minor deviations exist — bare nouns like categories and events, and the inconsistent verb placement in bet_research vs. validate_claim — but the overall pattern is predictable.

Tool Count1/5

33 tools is already heavy, but the fatal problem is that the server is named 'Nyc Parks' while ~31 of 33 tools are a generic Pipeworx data-retrieval/prediction-market toolkit. The count is egregiously mismatched to the stated purpose; only 2 tools relate to NYC Parks at all.

Completeness2/5

For the server's literal name, the surface is severely incomplete: categories and events exist, but there is no way to look up parks, facilities, permits, or event details, and no CRUD-lifecycle coverage. Viewed as a Pipeworx data toolkit the surface is quite thorough, but that is not what the server claims to be, so the stated NYC Parks domain is barely covered and creates dead ends.