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. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint, but the description adds rich behavioral context beyond that: BGE-base-en embeddings, cosine similarity, 500-char overlapping windows, 200K character cap with truncation and flagging, and return details (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?

Although lengthy, every sentence contributes value: the core function, use case, return format, pairing guidance, and technical limits. It is front-loaded with the main purpose and avoids fluff, earning its length.

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?

For a tool with no output schema, the description adequately covers input constraints, algorithm, truncation behavior, and return format (character offsets and similarity scores). It also provides integration context with ask_pipeworx_grounded, making it highly complete for its complexity.

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 adds some context for the query parameter with examples (e.g., 'supply-chain risk') and clarifies the text is 'already pulled,' but it largely echoes the schema. It doesn't provide significant new semantic meaning beyond the schema definitions.

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 uses a specific verb phrase 'Semantic search INSIDE a fetched record' and clearly identifies the resource (the text parameter). It differentiates from siblings by explicitly pairing with ask_pipeworx_grounded and noting the use case of reducing context load.

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?

Provides explicit guidance: 'Use when the record is too big to cram into the prompt' and explains how it pairs with ask_pipeworx_grounded. This distinguishes when to use search_within versus alternatives, satisfying the when-to-use requirement.

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

Multiple query-router tools overlap heavily: ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded, deep_research, and bet_research all serve as entry points into the same underlying data, with ask_pipeworx_beta explicitly described as currently identical to ask_pipeworx. Prediction-market tools (bet_research, polymarket_edges, polymarket_arbitrage, polymarket_fill_risk) also have fuzzy boundaries that an agent could easily mis-select.

Naming Consistency3/5

Most tools follow a readable lower_snake_case verb_noun pattern (compare_entities, get_climate_projection, resolve_entity), but conventions are mixed: pipeworx_feedback, pipeworx_trending, recent_alerts, and recent_changes are noun-first/non-imperative, and the ask_pipeworx family uses a verb-plus-variant-suffix style. The pattern is predictable enough to navigate but not consistent.

Tool Count2/5

33 tools is heavy for a single MCP server, and the server name 'climate' does not match the broad data-research, prediction-market, memory, subscription, and web-utility scope actually covered. Several tools could be consolidated (ask_pipeworx variants, discover_tools/suggest_questions, multiple polymarket scanners), which would reduce cognitive load without losing capability.

Completeness4/5

As a general data-access and research surface, the tool set is quite complete: it covers lookup, grounded verification, deep research, entity resolution, comparisons, recent changes, memory, subscriptions, alerts, feedback, and tool discovery. Minor gaps exist — the climate-specific coverage is limited to projections and model comparison despite the server name, and there is no direct tool to page through the full catalog — but for its inferred broad purpose there are no major dead ends.