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 discloses rich behavioral details beyond the readOnly annotations: returns char offsets and similarity scores, uses BGE-base-en embeddings with cosine similarity over 500-char overlapping windows, and has a 200K char truncation cap with a flag. No contradiction with the provided annotations; it fully describes the 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 compact yet information-dense: three sentences covering core purpose, usage context, output composition, algorithm, and edge-case handling. Every sentence contributes value with no filler, and the opening immediately anchors the tool's function.

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 no output schema, the description fully explains what the agent can expect: top-N passages with offsets and similarity scores. It also covers the input constraints (200K char cap), the technical approach, and the integration pattern with a sibling tool. The description is self-sufficient for correct invocation and result interpretation.

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%, so the baseline is 3. The description adds meaningful context for each parameter: 'text' is clarified as already-pulled content, 'query' gets concrete examples, and 'limit' maps to the 'top-N passages' concept. This enriches understanding beyond the schema's bare descriptions, earning a 4.

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', a specific verb-plus-resource phrasing that clearly distinguishes this tool from siblings like search_datasets or ask_pipeworx. It also explains the exact use case (searching within already-fetched text) and pairs it with ask_pipeworx_grounded, making the tool's niche explicit.

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'. Also provides a clear workflow alternative: pairs with ask_pipeworx_grounded, suggesting ground over relevant passages instead of the whole document. This gives the agent actionable selection criteria 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.6/5.0
Disambiguation2/5

Several tool clusters overlap heavily: ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded, and deep_research all serve research questions through the same router, and the five polymarket_* tools plus bet_research form a dense prediction-market cluster. Even with detailed descriptions, an agent choosing between these near-synonyms would frequently need extra reasoning or make the wrong pick.

Naming Consistency2/5

Names mix product-prefixed verbs (ask_pipeworx, polymarket_arbitrage), generic verbs (remember, forget, recall, subscribe), and noun phrases (entity_profile, layer_info, recent_alerts). There is no consistent verb_noun or prefix convention across the set, making the tool surface feel patchwork rather than systematically named.

Tool Count2/5

With 34 tools, the count is already on the heavy side, but it is especially mismatched with the server name 'Arcgis Puyallup': only search_datasets, query_layer, and layer_info actually belong to that GIS domain. The rest are a broad Pipeworx research and prediction-market platform, so the set feels bloated and off-scope for the apparent purpose.

Completeness3/5

The ArcGIS read-only surface is minimally reasonable: search, schema inspection, and querying cover basic open-data consumption. The Pipeworx side is quite rich, with memory, subscriptions, lookups, grounded verification, and discovery, but the named GIS domain is thinly served and lacks obvious capabilities like listing all datasets or browsing layers without a keyword. Overall, coverage is uneven and hard to evaluate cleanly because the server mixes two unrelated purposes.