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

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

Goes beyond the annotations (readOnly, openWorld, idempotent, non-destructive) by disclosing the embedding model (BGE-base-en), windowing strategy (500-char overlapping), output features (character offsets, similarity scores), and truncation behavior with flagging. No contradictions with annotations.

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?

Every sentence earns its place: purpose, use case, workflow pairing, and technical details are packed efficiently. No redundancy or filler; the description is front-loaded with the core 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?

For a tool with no output schema, the description compensates by explaining what the agent gets back (top-N passages with offsets and scores), the operational constraints (200K cap, truncation flag), and the integration with another tool. This is fully complete for selecting and invoking the tool.

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 already covers all parameters with descriptions, so baseline is 3. The description adds meaningful examples for the query parameter and clarifies the 'text' parameter context (already-fetched record, size cap), enriching understanding beyond 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 (specific verb+resource), and explicitly contrasts with sibling tools by emphasizing it works on text already pulled. It distinguishes itself from broader search tools like box_search or ask_pipeworx by its 'INSIDE a fetched record' scoping and output of passages with offsets.

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 when-to-use guidance: 'Use when the record is too big to cram into the prompt' and pairs with ask_pipeworx_grounded for a workflow. It also sets expectations about input size cap, making the usage context clear.

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
Disambiguation4/5

Most tools have distinct purposes, aided by detailed descriptions (e.g., ask_pipeworx vs. ask_pipeworx_grounded). However, some overlap exists among Pipeworx-based tools (compare_entities, entity_profile, recent_changes, validate_claim) that could cause confusion without careful reading.

Naming Consistency3/5

Snake_case is used, but naming patterns are mixed: some start with verbs (ask_pipeworx, validate_claim), others with nouns or prefixes (box_get_file, entity_profile). This inconsistency makes it harder to predict tool names.

Tool Count3/5

At 31 tools, the server covers an unusually broad set of domains (cloud storage, data queries, betting, memory, subscriptions). This is on the heavy side and could benefit from splitting into more focused servers.

Completeness3/5

Gaps exist: Box storage lacks create/update/delete, Polymarket tools offer analysis but no execution, and some data domains (e.g., weather) have only indirect coverage. The surface feels uneven across the wide scope.