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?

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, destructiveHint. The description adds details about embedding model (BGE-base-en), similarity metric (cosine), window size (500-char overlapping), and character cap (200K chars) with truncation/flagging, significantly enhancing transparency.

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 thorough yet concise, with each sentence adding value. It front-loads the main purpose and then efficiently explains usage, mechanics, and pairings without 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 full schema coverage and the detailed behavioral disclosure, the description is complete. It addresses return values (passages with offsets and scores) despite no output schema, making it fully informative for an AI agent.

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% with adequate descriptions. The description adds extra meaning by specifying the character cap for 'text' and providing example queries for 'query', going beyond what the schema alone offers.

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 INSIDE a fetched record') and clearly identifies the resource (a source/record). It distinguishes from siblings by referencing ask_pipeworx_grounded and the context of large records.

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?

Explicitly states when to use: 'Use when the record is too big to cram into the prompt.' Also describes benefits (saves context, returns relevant passages with offsets) and pairs with another tool.

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

Several tool families heavily overlap: ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded, deep_research, discover_tools, and suggest_questions all serve 'find/query Pipeworx data' with blurry boundaries, and the six Polymarket tools (bet_research, polymarket_edges, polymarket_edge_tracker, polymarket_arbitrage, polymarket_fill_risk, polymarket_kalshi_spread) have overlapping purposes. An agent could easily pick the wrong one without reading every description.

Naming Consistency3/5

Most tools follow snake_case verb_noun patterns (list_dataflows, get_data, compare_entities, resolve_entity), and families share prefixes (pipeworx_*, polymarket_*, ask_pipeworx_*). However, the server is named 'Unicef' while almost all tool names reference Pipeworx/Polymarket, and verb choices vary widely, so the overall set lacks a unified naming story.

Tool Count1/5

34 tools is already on the high side, but the real problem is scope: only 3 tools (list_dataflows, dataflow_structure, get_data) relate to the server's stated UNICEF purpose, while the other 31 are an unrelated grab bag of Pipeworx research, prediction-market betting, memory utilities, npm scanning, and llms.txt generation. This is a severe mismatch between count and purpose.

Completeness2/5

For the UNICEF domain implied by the server name, the surface is minimal: browse, structure, and fetch data cover read-only access but nothing else, and the overwhelming majority of tools are off-domain. If the inferred domain is instead 'Pipeworx + prediction markets', coverage is broad, but then the server name is fundamentally misleading and the UNICEF subset is an incomplete afterthought.