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

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

Annotations already declare readOnly, openWorld, and idempotent hints, but the description adds substantive behavior beyond that: returns passages with character offsets and similarity scores, uses BGE-base-en embeddings with cosine similarity over 500-character overlapping windows, and enforces a 200K character cap with truncation flags. These are valuable operational details not inferable from 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?

Four dense sentences deliver purpose, use case, companion tool, and technical caveats without fluff. The description is front-loaded with the core action, then progresses logically to when and how to use it, ending with constraints. Every sentence earns its place.

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?

With no output schema, the description compensates by explicitly stating the return payload: 'top-N passages with character offsets and similarity scores.' It also covers edge-case behavior (truncation over 200K chars) and the embedding/windowing approach, giving the agent a complete mental model for planning calls.

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 description coverage is 100%, so parameters are well-documented structurally. The description reinforces the meaning of 'text' ('you already pulled') and 'query' (natural-language with examples), adding pragmatic context. However, it doesn't elaborate on 'limit' beyond the schema, though the schema itself already explains its range and default.

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 immediately identifies a specific verb, resource, and scope. It clearly distinguishes this tool from siblings like 'search' and 'ask_pipeworx' by emphasizing that it operates on already-fetched text rather than external sources.

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 is provided: 'Use when the record is too big to cram into the prompt.' It also names a complementary tool, 'ask_pipeworx_grounded,' and explains the pairing: 'fetch with the gateway, ground over the relevant passages instead of the whole document.' This gives clear when-to-use and when-not-to-use context.

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

Several clusters of tools overlap heavily: ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded, and deep_research all answer data questions; entity_profile, compare_entities, and recent_changes all pull company data; polymarket_edges, polymarket_arbitrage, and bet_research all analyze prediction markets. Though descriptions are detailed, the boundaries are subtle and the beta variant is nearly identical to the stable one.

Naming Consistency3/5

Most names are snake_case, but there's no consistent verb_noun pattern: some are bare nouns (disease, target, drug, search), some are verb phrases (resolve_entity, validate_claim, generate_llms_txt), and some are domain-prefixed (ask_pipeworx_*, polymarket_*, target_*). The mixed conventions make it hard to predict tool names.

Tool Count2/5

38 tools is far beyond the typical well-scoped server, and the set mixes Open Targets lookup, a general data platform (Pipeworx), prediction markets, npm package checks, and AI-marketing utilities under the name 'Opentargets'. Many tools are unrelated to the server's apparent core purpose.

Completeness4/5

The Open Targets drug-discovery workflow is well covered: search for IDs, get disease/drug/target profiles, and get associations/known drugs. However, the broader platform lacks some lifecycle operations (no create/update/delete since it's read-only), and the unrelated utilities (generate_llms_txt, scan_dependency) appear tacked on rather than filling domain gaps.