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

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

Annotations already declare idempotent, read-only, non-destructive. Description adds embedding model details (BGE-base-en, cosine, 500-char windows) and a 200K char cap with truncation flagging. No contradiction; valuable extra context beyond annotations.

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?

Three sentences: first defines core purpose, second provides usage guidance with alternatives, third gives technical details. No wasted words; efficient and information-dense.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Lacks output schema but description explains return type (passages with offsets and scores) and truncation behavior. Covers parameters and usage context well. Could mention if total count is returned, but not necessary for typical use.

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. Description adds value with natural-language query examples and clarifies text size limit (200K chars). However, limit parameter details are only in schema. Overall adds meaningful examples beyond schema.

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, returning top-N passages with offsets and scores. It distinguishes from sibling tools like ask_pipeworx_grounded by specifying it works on already-fetched text, making the purpose specific and differentiated.

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?

Explicit guidance: use when the record is too large for the prompt, saves context. Mentions pairing with ask_pipeworx_grounded for grounding over passages. Implicitly tells when not to use (small records). Clear alternatives provided.

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

The set contains several tightly overlapping clusters: ask_pipeworx vs ask_pipeworx_beta (currently identical) vs ask_pipeworx_grounded, five polymarket_* tools with related purposes, and entity_profile vs compare_entities vs recent_changes covering similar company-research ground. The four game tools are distinct but swamped by the unrelated Pipeworx majority, making correct tool selection genuinely difficult.

Naming Consistency2/5

No coherent naming scheme spans the set: snake_case verb_noun (get_game, list_platforms, scan_dependency) coexists with verb_prefix descriptors (ask_pipeworx, generate_llms_txt), domain-prefixed nouns (polymarket_edges, pipeworx_trending), and bare verbs like recall and forget. Even within the Pipeworx cluster, styles vary unpredictably (ask_pipeworx vs pipeworx_feedback vs scan_competitor_ai_presence).

Tool Count2/5

35 tools is far too many for a server named Thegamesdb, where only 4 of 35 tools relate to the game database at all. The remaining 31 tools constitute a broad Pipeworx data platform with heavy internal overlap, making the surface feel bloated rather than well-scoped.

Completeness2/5

For the declared TheGamesDB domain, coverage is minimal: search, get-by-id, and list genres/platforms, with no per-platform game listings, images/artwork, or updates/refresh functionality. If the true domain is Pipeworx data access, the surface is fairly complete, but as presented under Thegamesdb there are major gaps and a severe identity mismatch.