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

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

Even with annotations declaring readOnly, openWorld, and idempotent, the description adds meaningful behavioral details: every passage carries an offset for verification, uses BGE-base-en embeddings + cosine over 500-char windows, and truncates inputs over 200K chars with a flag. These go well beyond annotations and disclose implementation behavior.

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 front-loaded with the core function, then flows logically into usage, pairing, and technical details. Every sentence adds unique value—no filler or repetition. Despite its length, it remains concise and well-structured, appropriate for the tool's complexity.

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 specifying return format: 'top-N passages with character offsets and similarity scores.' It also covers edge cases (200K char cap, truncation) and provides a strong pairing suggestion. For a search tool, this is thorough and self-contained.

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 coverage is 100% with clear descriptions for all three parameters. The tool description adds example queries ('supply-chain risk', 'fiscal year 2024 revenue') and clarifies the 'top-N passages' behavior, but most parameter semantics remain in the schema. This meets the baseline of 3 without substantial additional value.

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 clearly states the tool's purpose with a specific verb and resource. It distinguishes itself from siblings by emphasizing it operates on already-fetched text, contrasting with broader Q&A tools like ask_pipeworx.

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?

It explicitly states when to use: 'Use when the record is too big to cram into the prompt' and provides a concrete alternative: 'Pairs with ask_pipeworx_grounded: fetch with the gateway, ground over the relevant passages instead of the whole document.' This gives clear context and even names the sibling, satisfying 5-level criteria.

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

C2.9/5.0
Disambiguation2/5

The tools fall into two unrelated domains (Ticketmaster event discovery and Pipeworx data research), and within the Pipeworx set there are near-duplicate tools like ask_pipeworx, ask_pipeworx_beta, and ask_pipeworx_grounded, plus multiple overlapping prediction-market tools (polymarket_edges, polymarket_arbitrage, polymarket_fill_risk, etc.). An agent would struggle to choose among these overlapping options and may not realize that most tools are unrelated to the server's stated name.

Naming Consistency3/5

Naming uses consistent snake_case, but the pattern is mixed: Ticketmaster resource fetchers are bare nouns (event, venue, attraction, classification) while search tools use verb_noun (event_search, venue_search). Pipeworx tools vary between verb phrases (ask_pipeworx, validate_claim) and descriptive noun phrases (entity_profile, polymarket_kalshi_spread). This inconsistency makes predicting tool names harder, though each name is still readable.

Tool Count2/5

41 tools is excessive for a server titled 'Ticketmaster' when only about 10 are Ticketmaster-related; the other 30 cover an entirely different service (Pipeworx). The count is far beyond a focused scope and suggests the server should be split into two separate, well-scoped MCP servers.

Completeness4/5

For the Ticketmaster half, the surface is complete for read-only event discovery (search events/venues/attractions, get single resources, classifications, autocomplete). For the Pipeworx half, the tool suite is extensive, covering lookup, research, prediction markets, memory, subscriptions, and feedback. The only notable gap is the lack of any write operations, but this is consistent with the read-only nature of the underlying APIs.