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. First observed

TDQS

A5/5.0
Behavior5/5

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

Annotations only say readOnly/idempotent/openWorld, but the description adds concrete mechanics: 'BGE-base-en embeddings + cosine over 500-char overlapping windows; cap is 200K chars (longer inputs are truncated and flagged).' It also discloses that every passage carries an offset and similarity score, which is more than the annotations reveal. 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?

Three sentences, each earning its place: first the core action, second the usage scenario and pairing, third the technical details. Highly efficient and well-structured.

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?

For a tool with no output schema, the description fully prepares the agent: tells what to expect (passages, offsets, scores), how to use it with examples, technical limits (truncation), and integration with ask_pipeworx_grounded. No significant 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?

The schema describes all three params, but the description enriches them with real-world examples ('a SEC 10-K body, an article, a long tool result') and clarifies the query style ('natural-language query'). It also clarifies the limit as 'top-N passages' and ties the text param into the usage context.

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 action: 'Semantic search INSIDE a fetched record,' which clearly names a verb (search) and resource (record). It distinguishes itself from siblings like ask_pipeworx_grounded by explaining this tool is for searching within already-fetched text, not for a broader Q&A flow.

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 gives an explicit when-to-use: 'Use when the record is too big to cram into the prompt.' It also pairs directly with ask_pipeworx_grounded, telling the agent exactly how to combine it with a sibling tool: 'fetch with the gateway, ground over the relevant passages instead of the whole document.'

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
Disambiguation4/5

Most tools have distinct purposes, e.g., geology tools vs. Polymarket tools vs. memory tools. The main ambiguity is between ask_pipeworx and ask_pipeworx_grounded, but their descriptions clearly differentiate them (grounded vs. casual). Overall, an agent can reliably select the right tool.

Naming Consistency3/5

Names use snake_case consistently, but the structure varies: some are verb_noun (find_columns), some are noun_noun (entity_profile), some are single verbs (forget). This mix reduces predictability, though each name is still readable.

Tool Count3/5

With 29 tools, the server covers many domains (geology, finance, prediction markets, memory, subscriptions). This is a large surface for a server named 'Macrostrat', which implies a geology focus. The count feels bloated for a coherent set, though each tool individually seems justified.

Completeness4/5

The tool set is quite complete for its diverse sub-areas: geology has lookup tools, Pipeworx/Poly market has search, comparison, arbitrage, and memory/subscriptions have full CRUD. Minor gaps exist (e.g., no detailed geology unit edits), but overall coverage is strong.