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?

Beyond the readOnly/openWorld/idempotent annotations, the description discloses the retrieval mechanism (BGE-base-en embeddings, cosine, 500-char overlapping windows) and the 200K char cap with truncation flag. It also specifies output contents (offsets and similarity scores), giving the agent a clear model of runtime behavior.

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 moderately long but every sentence contributes distinct information: purpose, use-case, pairing, and technical limitations. It is front-loaded with the core meaning and uses compact phrasing like 'top-N passages with character offsets and similarity scores'.

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?

Since there is no output schema, the description compensates by naming the return fields (passages with offsets and similarity scores). It also covers input limits, truncation behavior, and relationship to sibling tools, making it complete for a 3-parameter stateless search tool.

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?

All 3 parameters are already documented in the schema with type, required status, and descriptions, and the query parameter even includes examples. The description only reinforces input types without adding new parameter-specific semantics, so a baseline of 3 is appropriate given 100% schema coverage.

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 'Semantic search INSIDE a fetched record', which gives a specific verb, resource, and scope. It clearly states the input (text plus query) and output (top-N passages with offsets and similarity scores), and distinguishes it from siblings by explicitly contrasting with ask_pipeworx_grounded.

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?

It explicitly states when to use the tool: 'Use when the record is too big to cram into the prompt.' It also names the complementary alternative ask_pipeworx_grounded and describes a workflow ('fetch with the gateway, ground over the relevant passages instead of the whole document'), providing clear when-to-use guidance.

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

Multiple tools have blurry boundaries: ask_pipeworx, ask_pipeworx_beta, and ask_pipeworx_grounded are near-identical (beta is explicitly 'exactly' the stable version), and ai_visibility_check vs scan_competitor_ai_presence is a single-vs-batch duplicate. The six polymarket_* tools are differentiated by long descriptions, but their overlapping concerns (edges, arbitrage, fill risk, spread) would frequently misroute an agent, and discover_tools vs suggest_questions also compete.

Naming Consistency3/5

Names follow two coexisting conventions: verb_noun for actions (get_data, resolve_entity, validate_claim) and domain-prefixed families (polymarket_*, pipeworx_*, ask_pipeworx_*). Within each family the pattern is consistent, but mixing the two styles across the set, plus outliers like generate_llms_txt and bare verbs (remember, forget, recall), makes the overall scheme feel uneven though still readable.

Tool Count2/5

34 tools is well past the 'heavy' threshold and the count is not justified by the server's stated identity: a server named 'Statec Lu' (Luxembourg statistics) contains only 3 STATEC tools buried among general data-platform, prediction-market, AI-visibility, npm-scanning, and memory utilities. The sprawling, multi-domain surface would be more coherent split into separate servers.

Completeness3/5

The STATEC subset is complete (list_dataflows → dataflow_structure → get_data forms a full browse/fetch lifecycle), and the broader research surface covers entity resolution, grounded answers, comparison, claim verification, and subscription/alert/memory management. However, the overall domain is incoherent—a STATEC server missing nothing for statistics but carrying 31 unrelated tools—and there are notable gaps such as no tool to directly fetch a pipeworx:// citation URI and no execution side for the extensive Polymarket analysis tools.