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

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds substantial behavioral detail beyond that: the embedding model (BGE-base-en), cosine similarity over 500-char overlapping windows, the 200K char cap with truncation flagging, and the output structure (character offsets, similarity scores). It also notes 'every passage carries an offset so the agent can verify a verbatim quote,' which is extra transparency about output verifiability. 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?

The description is five sentences, each earning its place: the core action, the input/output contract, the primary use case, the sibling pairing, and the technical embedding/limit details. It is front-loaded with the most important information and avoids redundancy with the schema. 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 no output schema, the description appropriately explains the return values (top-N passages with character offsets and similarity scores). It covers the complete workflow, including the input source, the query, the limit default (mentioned in schema), the max text size, truncation behavior, and the companion tool. For a search tool with three simple parameters, this description is fully sufficient to invoke 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 description coverage is 100%, so the baseline is 3. The description adds contextual meaning beyond the schema: it clarifies that 'text' is the previously fetched record (e.g., SEC 10-K body), that 'query' is a natural-language request with examples, and it reinforces the limit's purpose with 'top-N passages.' The description also mentions the 'truncated and flagged' behavior tied to the text cap, which enriches the parameter semantics beyond raw schema constraints.

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 a specific verb+resource: 'Semantic search INSIDE a fetched record.' It clearly distinguishes itself from siblings by emphasizing that it operates on already-fetched text, and it explicitly differentiates from ask_pipeworx_grounded by framing this as the passage-level search companion. The purpose is unambiguous and not tautological.

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 states exactly when to use this tool: 'Use when the record is too big to cram into the prompt.' It explicitly names the alternative workflow with ask_pipeworx_grounded, explaining how to fetch with the gateway and then ground over relevant passages. This is clear, actionable guidance and gives an exclusion (when you don't need full-text grounding).

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

The 7 NOAA-specific tools (stations, station_metadata, water_level, currents, met_obs, predictions, datums) are clearly distinct, but they are buried among ~31 Pipeworx platform tools with heavy internal overlap: ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded, and deep_research all route factual queries, while polymarket_edges, polymarket_edge_tracker, polymarket_arbitrage, polymarket_fill_risk, and polymarket_kalshi_spread all analyze prediction-market opportunities. An agent cannot easily tell whether the generic question-answering or prediction-market tools are the right choice without reading long descriptions.

Naming Consistency2/5

Most tools use snake_case, but the naming conventions are inconsistent: some use descriptive nouns (stations, datums, predictions), some use noun_verb pairs (water_level, met_obs), and the Pipeworx batch mixes vendor-prefixed names (pipeworx_feedback, pipeworx_trending), bare verbs (remember, forget, recall, subscribe, unsubscribe), and multi-word verbs (generate_llms_txt, scan_competitor_ai_presence, ask_pipeworx_grounded). No predictable pattern unifies the set.

Tool Count1/5

38 tools is far too many for a server named 'Noaa Tides' — only 7 tools relate to NOAA tide/current data, and the other 31 are an unrelated general-purpose data platform (SEC filings, prediction markets, npm packages, AI visibility scanning, memory storage). The overwhelming majority of the surface has nothing to do with the server's stated purpose, making the count and composition a severe mismatch.

Completeness4/5

For the nominal NOAA tides domain, the surface is reasonably complete: station listing, metadata, observed water levels, currents, meteorological observations, tide predictions, and datums cover the core workflows. Minor gaps exist (e.g., no harmonic constituents or extreme water-level statistics tool), but the essential operations are present. The unrelated tools do not fill gaps in the NOAA domain — they are clutter rather than coverage.