Skip to main content
Glama

saved_searches_create

Persists a discovery query that can be re-run on demand (via saved_searches_add_now) or scheduled for daily drip. Useful when the user wants continuous prospecting into a segment without re-specifying the filters each time.

Compose params_json exactly like the query params you would pass to companies_search — the saved search replays those every run and adds newly-matching people to add_to_segment as leads, up to add_limit per run.

Newly created saved searches default to is_enabled=false so the scheduled picker won't auto-run them. Preview with saved_searches_add_now first, then PATCH is_enabled=true once you're satisfied with the query.

Method: POST /api/v1/workspaces/{workspace_sqid}/saved-searches/

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": {
      "add_to_segment": "<add_to_segment>",
      "name": "<name>",
      "params_json": "<params_json>"
    },
    "name": "saved_searches_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesShort label for the saved search (e.g. 'US Series-A SaaS founders').
add_limitNoHard daily cap on leads this search may add (0–100). Shared by every automated caller: the hourly scheduled run and campaign autopilot draw from the same budget and cannot exceed it between them. **0 pauses the search** for both — that, not `is_enabled`, is how you stop autopilot pulling from it. Manual `saved_searches_add_now` bypasses the cap. Each run picks the oldest-not-yet-added matches.
is_sharedNoWhether this saved search is shared with other users in the workspace
is_enabledNoWhether the scheduled batch picker should auto-run this saved search. Defaults to False on create via the API — the UI uses a separate form and keeps the model default of True. Flip to True once you've previewed results with `saved_searches_add_now` and confirmed the query is tight enough. `saved_searches_add_now` itself ignores this flag, so manual add-now works either way.
params_jsonYesThe discovery query as JSON — same keys `companies_search` accepts (`countries`, `regions`, `industries`, `keywords`, `size`, `name`, `about`, etc.; see `companies_search`'s description). Multi-value filters may be either a flat list of integer IDs (`[3, 5]`) or a list of `{value, label}` objects (`[{"value": 3, "label": "United States"}]`); the UI persists the latter for display, and the saved-search runner extracts `.value` before filtering. Runs once per invocation; new matching people are added to the target segment.
add_to_segmentYesSqid of the segment that newly-found people should be added to as leads. Required to run the search.
rejected_segmentNoOptional. Sqid of a 'dead-end' segment — people already in it are skipped on future runs. Useful to avoid re-prospecting leads who replied negatively.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

No annotations are provided, so the description must disclose behavior, and it does: new saved searches default to `is_enabled=false`, `add_limit` caps automated runs but not manual add-now, and `0` pauses the search. It also explains how the saved search replays `params_json` and adds newly matching people to the target segment.

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?

The description is front-loaded and organized into useful sections, with the most important default (`is_enabled=false`) highlighted. It is somewhat long, but most detail is operational and earns its place for a creation tool with scheduling side effects.

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 seven-parameter creation tool with no annotations and no output schema, the description covers the essential behavior: query composition, default disabled state, scheduling semantics, cap behavior, segment targeting, and preview workflow. No critical invocation detail is missing.

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?

Schema description coverage is already 100%, but the description adds meaning beyond the schema by tying `params_json` to `companies_search`, explaining that it is replayed on each run, and clarifying the interaction between `add_limit`, `is_enabled`, and `saved_searches_add_now`. The remaining parameters are mostly left to their schema descriptions.

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 states a specific verb and resource: it persists a saved discovery query. It also distinguishes saved searches from immediate searches by explaining that the saved search can be re-run via `saved_searches_add_now` or scheduled for daily drip.

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 explicit usage guidance: use when the user wants continuous prospecting without re-specifying filters, preview with `saved_searches_add_now`, and then enable scheduling with `is_enabled=true`. It also names the alternative tool for immediate execution, making the choice between tools clear.

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.