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

A5/5.0
Behavior5/5

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

Discloses embedding model (BGE-base-en), similarity metric (cosine), window size (500-char overlapping), character cap (200K), and truncation behavior. Annotations already show readOnly/openWorld/idempotent; description adds rich behavioral details.

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?

Two sentences pack purpose, usage, behavioral details, and pairing advice. No unnecessary words, structure is front-loaded.

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 no output schema, description thoroughly explains return values (top-N passages with offsets and scores). Annotations and schema are fully complemented; no gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All 3 parameters are described in schema (100% coverage) and description adds meaningful context: max length for 'text', valid range and default for 'limit', and examples for 'query'. Adds value 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?

States clearly 'Semantic search INSIDE a fetched record' with specific verb and resource. Distinguishes from sibling tools like ask_pipeworx_grounded by focusing on searching within already-fetched text.

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 says when to use: 'when the record is too big to cram into the prompt'. Provides alternative: 'Pairs with ask_pipeworx_grounded' and explains the workflow.

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 occupy nearly identical roles: ask_pipeworx, ask_pipeworx_beta (explicitly identical right now), ask_pipeworx_grounded, and deep_research all answer research questions; polymarket_edges, bet_research, and polymarket_arbitrage overlap heavily on prediction-market opportunities; entity_profile, compare_entities, and recent_changes overlap on company research. The detailed descriptions help, but the clusters create real misselection risk.

Naming Consistency4/5

Nearly all tools follow a readable snake_case convention, many with verb_noun structure (resolve_entity, list_subscriptions, validate_claim, scan_dependency). Minor deviations exist: tankerkoenig_stations_nearby plural vs tankerkoenig_station_details/prices singular, plus noun-style names like pipeworx_feedback and pipeworx_trending, but the overall pattern is predictable.

Tool Count2/5

34 tools is heavy, and the problem is compounded by the server being named Tankerkoenig: only 3 of the 34 tools relate to German fuel prices while the other 31 are an unrelated Pipeworx/Polymarket/memory/subscription toolkit. This is a sprawling, unfocused surface rather than a well-scoped set.

Completeness3/5

For the nominal Tankerkoenig domain, stations_nearby + station_details + prices cover core lookups, though station search by name and price history are missing. For the broader bundled data/prediction-market domain, coverage is extensive but has notable gaps such as no trade execution, no general web search, and several redundant access paths that complicate the surface.