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

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

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=true, and destructiveHint=false. The description adds substantial behavioral detail beyond these flags: returns top-N passages with character offsets and similarity scores, uses BGE-base-en embeddings with cosine similarity over 500-char overlapping windows, and caps input at 200K chars with truncation flagging. No contradiction 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is longer than minimal but every sentence contributes: purpose, use case, pairing with sibling tool, and technical details. It is front-loaded with the core semantic search action, then explains why to use it, and ends with implementation specifics. No redundancy or filler.

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?

With no output schema, the description bears responsibility for explaining return values, which it does explicitly: 'top-N passages with character offsets and similarity scores.' It also covers the full context: when to use, technical implementation, input limits, and integration with ask_pipeworx_grounded. This is a complete picture for a semantic search 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 description coverage is 100%, so the baseline is 3. The description adds value by giving concrete query examples ('supply-chain risk', 'fiscal year 2024 revenue'), clarifying the type of text expected (SEC 10-K, article, long tool result), and mentioning the 200K char limit. This goes beyond the schema descriptions and helps the agent craft appropriate inputs.

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 ('semantic search') and resource ('a fetched record') with explicit scope ('INSIDE a fetched record'). It gives concrete examples (SEC 10-K body, article) and clearly differentiates from broader search tools by focusing on searching within already-fetched text, not external sources.

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 explicitly states when to use this tool: 'Use when the record is too big to cram into the prompt.' It also explains the tradeoff (saves context) and pairs with ask_pipeworx_grounded, describing the workflow: 'fetch with the gateway, ground over the relevant passages instead of the whole document.' This provides clear usage context and relationship to an alternative.

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

Several tools overlap heavily: ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded, deep_research, and validate_claim all route questions to similar data sources, and ask_pipeworx_beta is explicitly identical to ask_pipeworx right now. The many polymarket tools also blur together despite detailed descriptions.

Naming Consistency3/5

Most names are snake_case, but there is no consistent verb_noun pattern: ask_pipeworx, bet_research, entity_profile, layer_info, pipeworx_trending, recent_changes, and validate_claim follow different stylistic conventions. The pattern is readable but feels like several naming vocabularies were merged.

Tool Count2/5

34 tools is well over the comfortable range and most of them are unrelated to the apparent ArcGIS Johnson City purpose. Only search_datasets, layer_info, and query_layer actually serve GIS needs; the remaining 31 tools form a sprawling Pipeworx meta-platform bolted onto the same server.

Completeness3/5

The ArcGIS portion covers discover-schema-query reasonably well for read-only open data, and the Pipeworx side has broad coverage with subscriptions, memory, feedback, and research workflows. However, the surface is defined by two unrelated domains, making it hard to judge true completeness for any one stated purpose.