Skip to content

Document search_suggestions minimum 3-character query requirement - #876

Open
promptless[bot] wants to merge 1 commit into
mainfrom
promptless/search-suggestions-min-query
Open

Document search_suggestions minimum 3-character query requirement#876
promptless[bot] wants to merge 1 commit into
mainfrom
promptless/search-suggestions-min-query

Conversation

@promptless

@promptless promptless Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Open in Promptless

Source PR Promptless/promptless#4654 changes the behavior of the search_suggestions MCP tool: query is now required and must be at least 3 characters (after trimming), and the tool no longer returns all of an organization's suggestions when called without a query. This corrects the MCP tool reference, which previously described query as optional and stated that calling with neither query nor status returned all suggestions.

Changes:

  • src/content/docs/docs/connect/triggers/mcp.mdx: the search_suggestions reference now describes query as required with a 3-character minimum, and drops the now-false "returns all your suggestions" sentence; a troubleshooting bullet covers the missing/too-short query rejection.
  • src/content/changelog/changelogs/august-2026.mdx: an Improvements entry noting the required-query change (folded into the existing MCP-related changelog rather than a standalone suggestion).

Trigger Events

Correct the search_suggestions MCP tool reference to reflect PR #4654:
query is now required and must be at least 3 characters; the tool no
longer returns all suggestions when called without a query. Adds a
troubleshooting bullet and an August 2026 changelog entry.
@vercel

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
promptless-docs Ready Ready Preview Aug 18, 2026 11:07pm

Request Review

### `search_suggestions`

Searches your existing suggestions by keyword and status, so you can check whether a change is already covered before starting a new task. `query` (optional) matches a suggestion's title and description; `status` (optional) restricts results to one of `draft`, `open`, `merged`, or `closed`. Both are optional—calling with neither returns all your suggestions. A `draft` or `open` suggestion is still live; a `merged` or `closed` one is already resolved.
Searches your existing suggestions by keyword and status, so you can check whether a change is already covered before starting a new task. `query` (required) matches a suggestion's title and description, and must be at least 3 characters; `status` (optional) restricts results to one of `draft`, `open`, `merged`, or `closed`. A `draft` or `open` suggestion is still live; a `merged` or `closed` one is already resolved.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

search_suggestions tool schema: query gains minLength 3 and moves into required; status stays optional with enum draft/open/merged/closed. Backs the doc's claim that query is now required and must be at least 3 characters, and status remains optional restricted to those four values.

Source: https://github.com/Promptless/promptless/blob/fc531946d6b64d39faf65ed1013c7e886b6a464a/runtime/mcp/tools.py#L142-L157

- **Empty `instructions`**: resubmit with a specific `instructions` string.
- **A `doc_collection_id` that isn't a valid ID (UUID)**: call `list_doc_collections` and pass an `id` from the returned list.
- **An unrecognized `search_suggestions` status**: use one of `draft`, `open`, `merged`, or `closed`.
- **A missing `search_suggestions` `query`, or one shorter than 3 characters after trimming**: provide a `query` of at least 3 characters.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_search_suggestions handler: rejects a missing/non-string query ("query is required and must be a string") and a trimmed query under 3 characters ("query must be at least 3 characters"). Backs the new Troubleshooting bullet describing this rejection and remedy.

Source: https://github.com/Promptless/promptless/blob/fc531946d6b64d39faf65ed1013c7e886b6a464a/runtime/mcp/tools.py#L327-L332


* **Research breakdown now reads Knowledge Base inline and attributes delegated research:** Each trigger's research breakdown—on the Triggers page and a suggestion's **Triggers & Analysis** tab—now shows Knowledge Base reads inline, in the sequence the agent read them, instead of grouped at the end. Delegated research appears as an attributed branch labeled with the subagent type and its tool-call count. A "research agents" callout appears next to the summary when Promptless delegates research. See [Research breakdown](/docs/work-the-queue/web-interface#research-breakdown).

* **`search_suggestions` now requires a search query:** The MCP `search_suggestions` tool now requires a `query` of at least 3 characters and no longer returns all your suggestions when you call it without one. See [MCP triggers](/docs/connect/triggers/mcp).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SuggestionStore.search_dashboard_rows_for_org: query parameter loses its = None default (now required), strips and rejects queries under 3 characters, and the title/description ilike filter is now unconditional (previously only applied when a query was given). Backs the changelog claim that search_suggestions now requires a query of at least 3 characters and no longer returns all suggestions when called without one.

Source: https://github.com/Promptless/promptless/blob/fc531946d6b64d39faf65ed1013c7e886b6a464a/runtime/stores/suggestions.py#L472-L498

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant