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

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

Annotations provide readOnlyHint, openWorldHint, idempotentHint, destructiveHint. The description adds substantial behavioral context: embedding model (BGE-base-en), window size (500-char overlapping), character cap (200K chars), truncation with flag, and output includes offsets and similarity scores. No contradiction.

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 concise, single paragraph, front-loaded with the main action, then use case, then technical details. Every sentence adds value with no redundancy.

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 the tool's complexity (semantic search, chunking, embedding model), the description covers all essential aspects: when to use, how it works, technical limits, and output format. No output schema exists, but the description explains what is returned (passages, offsets, similarity scores). Context is complete.

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 coverage is 100%, so baseline is 3. The description adds meaning beyond the schema: for 'text' it specifies the max length ('max ~200K chars'), for 'query' it provides example queries, and for 'limit' it gives default (5) and range (1-20). This adds helpful context.

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 it performs 'Semantic search INSIDE a fetched record.' It gives concrete examples (SEC 10-K, article) and distinguishes from sibling tools like ask_pipeworx_grounded, indicating it is for searching within a single record, not for broader tasks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says when to use this tool: 'Use when the record is too big to cram into the prompt.' It also mentions a companion tool (ask_pipeworx_grounded) for grounding over passages. However, it does not explicitly state when not to use it, though the guidance is clear enough.

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 tools blur together: ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded, and deep_research all answer questions over the same data, and five polymarket_* tools overlap on edge detection and arbitrage. Descriptions help somewhat, but the boundaries are subtle and the server name 'Uk Food Hygiene' adds a layer of confusion.

Naming Consistency3/5

All names are lowercase snake_case, but conventions vary widely: brand-style names (ask_pipeworx, pipeworx_feedback), noun phrases (entity_profile, recent_changes), verb_noun pairs (list_subscriptions, validate_claim), and bare verbs (recall, forget). It is readable but does not follow one predictable pattern.

Tool Count1/5

A server named 'Uk Food Hygiene' has 33 tools, of which only two (uk_food_hygiene_search, uk_food_hygiene_details) relate to food hygiene. The rest are a grab-bag of Pipeworx platform utilities, prediction-market tools, memory helpers, and subscription features — an extreme mismatch between count and stated scope.

Completeness2/5

The two food hygiene tools cover search and detail lookup, which handles the core use case, but the broader tool surface has notable gaps: citation URIs are returned but no fetch/read tool exists, and the unrelated domains (prediction markets, company research, AI visibility) are deep in some places and absent in others. The overall surface feels like an incoherent collection rather than a complete domain toolkit.