Skip to main content
Glama
Alidade MCP

Alidade MCP

Official
by alidade-ai

Propose a saved search

propose_saved_search
Read-only

Preview a saved search before creation: returns comparison groups with entity names and organizations, and lets users rename groups, adjust entities, then create it without saving first.

Instructions

Propose a saved search for the user to review before it is created. Takes the same input as create_saved_search but writes nothing: it returns the comparison groups with each entity's name and organization, and in clients that display MCP Apps it also shows a form where the user can rename groups, move, remove, or add entities, and then create the search. Use this instead of create_saved_search whenever you chose the entities yourself (for example, to set up a comparison with one group per competitor), since the whole workspace sees saved searches. Holds at most 100 entities.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "groups": "<groups>"
    },
    "name": "propose_saved_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSaved search name.
groupsYesComparison groups (max 8). Analytics responses are keyed by group.
keywordsNoKeywords to filter post content by. Cannot be combined with `booleanQuery`.
dateRangeNoDate range filter. Omit or null = all time.
platformsNoPlatforms to include. Omit or empty = all platforms.
visibilityNoWorkspace visibility: `team_edit` (default — any workspace member can edit) or `team_view` (view-only for members; also not editable via the API afterwards).team_edit
descriptionNoOptional description.
booleanQueryNoBoolean keyword query matching the app's advanced search mode (e.g. `"net zero" AND (solar OR wind)`). Syntax: AND/OR/NOT (upper case), parentheses, quoted phrases with optional proximity (`"health care"~3` = up to 3 words between, any phrase length, max 20), NEAR/N (either order) and THEN/N (ordered) between terms or groups, wildcards (`elect*`, `wom?n`), fuzzy (`medicaid~1`, max 2). Always use explicit operators between terms. Mixing AND or NOT with OR at the same depth is an error — parenthesize to make precedence explicit (`(a AND b) OR c`, `(a OR b) NOT c`). NEAR/THEN bind tighter than AND/OR — parenthesize a proximity expression that sits next to AND/OR (`(a NEAR/5 b) OR c`, `(a OR b) NEAR/5 c`). NOT is not allowed inside NEAR/THEN; exclude outside the proximity expression. Matching is exact-token, case- and accent-insensitive (no stemming) — cover word variants with OR or a wildcard (`tariff OR tariffs`, `tariff*`). Korean attaches particles to words, so put a trailing wildcard on each Korean term (`검색*`). Hindi is written in Devanagari and romanized, so OR both forms (`(दोस्त OR dost)`); Devanagari and Tamil matching ignores vowel signs, so expect some unrelated matches. Comments are ignored by search: `//` to the end of the line, `<<< >>>` inline or across lines. Full syntax: https://docs.alidade-ai.com/search-syntax. Cannot be combined with the keyword parameters.
keywordMatchNoWhether posts must match `any` (default) or `all` of `keywords`.
excludeKeywordsNoKeywords that matching posts must not contain (exact word/phrase match). Cannot be combined with `booleanQuery`.
topicSearchModeNo`shared`: the top-level keyword parameters apply to every group. `perGroup`: each group's own keyword parameters apply to that group only, and the top-level ones must be omitted. Defaults to `perGroup` when any group has keyword parameters, `shared` when top-level keyword parameters are given, and otherwise (on update) the search's current mode. Switching an update from `perGroup` to `shared` requires the top-level keyword parameters (empty arrays for no filter).
keywordMatchTypeNo`exact` (default) matches the exact words or phrases only; `stemmed` also matches English word variants (run/running). Applies to `keywords`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.3

TDQS

A4.4/5.0
Behavior4/5

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

readOnlyHint=true is already declared, and the description adds real value beyond it: it explains that nothing is written, what is returned (comparison groups with each entity's name and organization), the MCP Apps form behavior, and a 100-entity cap. The gap is what happens in clients without MCP Apps – whether the agent must then call create_saved_search itself is left implicit, and the '100 entities' cap sits in mild tension with the schema's maxItems of 15,000 per group.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, none redundant, with the non-persistence guarantee and the when-not-to-use rule front-loaded. The middle sentence about the MCP Apps form is long and could be split, but every clause carries information.

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 12-parameter tool with no output schema, the description supplies the missing return-value semantics (groups plus entity names and organizations), the write-nothing contract, the entity ceiling, and the sibling routing. An agent has what it needs to call it correctly and interpret the result.

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 description coverage is 100% and the nested group schema is already heavily documented, so the schema carries parameter meaning. The description only adds 'Takes the same input as create_saved_search' and the entity cap, without clarifying name, groups, visibility, or topicSearchMode beyond what is already structured.

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 opening sentence names a specific verb and resource ('Propose a saved search ... before it is created') and immediately establishes that it is a non-persisting twin of create_saved_search. An agent can distinguish it from create_saved_search and update_saved_search without opening any schema.

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 selection rule: 'Use this instead of create_saved_search whenever you chose the entities yourself', with a concrete example (one group per competitor) and the reason (workspace-wide visibility). It states both when to use it and the alternative to use against.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.