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?

The description discloses several behavioral details beyond what annotations provide: it uses BGE-base-en embeddings with cosine similarity over 500-char overlapping windows, has a 200K character limit with truncation and flagging for longer inputs, and returns character offsets and similarity scores. The read-only, idempotent nature is implied by the search operation and aligns with the annotations. There is no contradiction.

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 three sentences, each earning its place: the first states the core function, the second provides usage guidance, and the third gives technical implementation details. It is front-loaded with the most important information, uses intentional formatting (CAPS for 'INSIDE') to emphasize key constraints, and contains no filler or redundant content.

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?

Despite lacking an output schema, the description covers the essential return information (passages with offsets and similarity scores), the operational constraints (character cap, truncation), and the integration with a sibling tool. The tool is a straightforward search operation, and the description fully equips an agent to invoke it correctly and understand its output.

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?

The input schema already provides 100% coverage for all three parameters (text, limit, query) with clear descriptions, including examples for query. The description adds minor context (e.g., 'Pass the text you already pulled' for text, 'top-N passages' for limit) but does not substantially enhance parameter understanding beyond the schema. Per the rubric, a baseline of 3 is appropriate when schema coverage is high and the description adds marginal 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 a specific verb and resource: 'Semantic search INSIDE a fetched record.' It clearly distinguishes this from sibling tools by emphasizing that it operates on already-fetched text, provides concrete examples (SEC 10-K, article, long tool result), and explicitly describes the return value (top-N passages with character offsets and similarity scores). This goes far beyond the tool name and title, fully clarifying what the tool does.

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?

The description gives explicit when-to-use guidance: 'Use when the record is too big to cram into the prompt' and explains the benefit (saves context, returns only relevant passages, provides offsets for verifying quotes). It also names a complementary tool (ask_pipeworx_grounded) and describes the workflow (fetch with the gateway, ground over relevant passages). This is clear, actionable guidance on when to use this tool versus alternatives.

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

A4.1/5.0
Disambiguation3/5

Several tools have overlapping purposes (e.g., ai_visibility_check and scan_competitor_ai_presence; ask_pipeworx, ask_pipeworx_grounded, and deep_research). However, detailed descriptions and specific use cases help agents distinguish between them in most cases.

Naming Consistency5/5

All tools use snake_case naming consistently, e.g., ask_pipeworx, compare_entities, govcon_agency_landscape. The pattern is uniform across the entire set.

Tool Count4/5

With 33 tools, the set is slightly over the typical well-scoped range. While many tools serve distinct purposes, some seem redundant (e.g., memory tools, multiple research tools), making the count feel a bit heavy.

Completeness3/5

The tool surface covers a broad range of research and intelligence domains but lacks actionable tools for core government contracting tasks like submitting bids or tracking contract performance. Several obvious operations (e.g., user profile management, submission tools) are missing.

Resources