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

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior. The description adds rich behavioral details: embedding model (BGE-base-en), similarity metric (cosine), chunk size (500-char overlapping windows), character cap (200K with truncation and flagging), and output structure (passages with offsets/scores). This fully informs the agent of side effects and limitations.

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 concise yet informative, covering purpose, usage, and technical details in a few sentences. It front-loads the core action ('Semantic search INSIDE a fetched record') and then adds context. Slightly verbose with the embedding detail could be trimmed, but overall well-structured.

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?

Without an output schema, the description adequately explains the return value (passages, offsets, similarity scores) and constraints (200K char limit, truncation flag). It also conveys the integration with ask_pipeworx_grounded, providing a complete picture for tool selection and invocation.

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 reinforces the schema's parameter descriptions but does not add significant new semantic information. The natural-language query usage is already implied in the schema description.

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, with specific examples like SEC 10-K and articles. It distinguishes the tool from siblings by emphasizing its role in reducing context size and pairing with ask_pipeworx_grounded. The purpose is specific and actionable.

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 advises using this tool when a record is too large for a prompt, providing a clear use case. It also mentions pairing with ask_pipeworx_grounded for grounded analysis. However, it does not specify when not to use it or list alternative tools for other scenarios.

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

B3.4/5.0
Disambiguation2/5

Many tools have overlapping purposes and similar names, especially the Pipeworx query tools (ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded, deep_research) and the Polymarket tools (polymarket_edges, polymarket_arbitrage, polymarket_fill_risk, etc.). The Guardian-specific tools are distinct but are outnumbered by these confusing clusters, making it hard for an agent to reliably select the right tool.

Naming Consistency1/5

Tool names follow no consistent pattern: some are snake_case (ai_visibility_check, ask_pipeworx), some are verbs without objects (item, tags, forget, recall), and some are inconsistent in style (compare_entities vs. bet_research). There is no unifying naming convention across the set.

Tool Count2/5

With 36 tools, the server is bloated for its implied purpose ('The Guardian' suggests a focused news outlet). Many tools belong to unrelated domains (Pipeworx data platform, Polymarket prediction markets), making the count feel excessive and unfocused. A news-specific server should have far fewer tools.

Completeness1/5

The tool set lacks a coherent domain. The Guardian news tools are complete (search, item, sections, etc.), but the massive inclusion of Pipeworx and Polymarket tools creates dead ends and gaps (e.g., no direct tool to list all prediction markets or search patents). The surface feels like a random collection rather than a designed whole.