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

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

Beyond the annotations (readOnlyHint, idempotentHint, destructiveHint), the description discloses concrete behavioral details: BGE-base-en embeddings, cosine similarity over 500-char overlapping windows, a 200K character cap with truncation-plus-flag, and offsets for verifying verbatim quotes. This adds substantial operational context the agent needs to use the tool correctly.

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 efficiently front-loaded with the purpose, then gives a usage scenario, a sibling pairing, and technical parameters—all in a single dense paragraph. Every sentence adds value: no filler, no repetition of schema or annotations, and it stays easily scannable.

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 adequately covers what the agent will receive (top-N passages, offsets, similarity scores) and important input constraints (200K truncation). It also explains the algorithmic approach and how the tool fits into a broader workflow (fetch → search within → ground), making it complete for the given complexity.

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?

The input schema already covers all params at 100%, and the description adds meaning by explaining that 'text' is content already pulled from elsewhere (e.g., a 10-K body) and that 'query' is a natural-language request. It reinforces the limit default without needing to restate the schema, so it provides extra context rather than redundancy.

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,' a specific verb+resource+scope that clearly differentiates this from siblings like ask_pipeworx or ask_pipeworx_grounded. It also specifies the return format (top-N passages with offsets and similarity scores), removing any ambiguity about 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?

Explicitly states when to use it ('Use when the record is too big to cram into the prompt') and names a direct alternative/companion ('Pairs with ask_pipeworx_grounded'), telling the agent to fetch with the gateway and ground over relevant passages. This gives clear decision-making context for choosing this tool over siblings.

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

Many tools have overlapping purposes, especially the ask_pipeworx family (4 variants) and polymarket tools (5 variants). The memory tools (remember/recall/forget) and subscription tools also overlap with each other. While descriptions provide some differentiation, the sheer number of similar tools makes it hard for an agent to quickly distinguish the right one.

Naming Consistency2/5

Most names use snake_case, but there is no consistent verb_noun pattern. Some are verb_noun (ask_pipeworx, resolve_entity), some are noun_noun (bet_research, entity_profile), and others are adjective_noun (recent_changes, pipeworx_trending). The naming is arbitrary and doesn't follow a predictable convention.

Tool Count2/5

At 33 tools, the count is high but not extreme for a broad data platform. However, the server is named 'mathjs', implying a math focus, yet only 2 tools (evaluate, convert_units) are math-related. The vast majority of tools belong to a completely different domain (data lookups, prediction markets, subscriptions), making the count inappropriate for the server's apparent purpose.

Completeness1/5

For a math server, the tool surface is severely incomplete—missing basic operations like plotting, equation solving, calculus, etc. For the actual data integration and prediction market functionality, the set is more complete, but the server name misleads. The mismatch between name and content makes the completeness score very low based on the implied domain.