Skip to main content
Glama

segments_enrichments_run_all

Dispatches a single async task that runs all enabled enrichments sequentially per lead, respecting the order field on each AutomationConfig. Returns {task_sqid} — poll via jobs_get.

Cost is the sum of individual enrichments; for a segment with 5 enrichments × 1000 leads that can run into the hundreds of connects — warn the user before running.

Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{segment_sqid}/enrichments/run-all/

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": {
      "segment_sqid": "<segment_sqid>"
    },
    "name": "segments_enrichments_run_all"
  }
}

Input Schema

NameRequiredDescriptionDefault
segment_sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and discloses that the operation is async, runs sequentially per lead respecting an order field, returns a task_sqid, and should be polled via jobs_get. It also warns that cost is the sum of individual enrichments and can reach hundreds of connects, though it does not describe permissions or side effects on lead data.

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 front-loaded with the core action, then presents the important cost warning, and finally records the HTTP method. Every sentence adds operational value, and the three short paragraphs are easy to scan.

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?

Given the lack of annotations and output schema, the definition provides enough operational context to invoke the tool correctly: it explains async dispatch, return value, polling path, ordering, and cost impact. The remaining gap around segment_sqid format is minor relative to the tool's overall complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has zero description coverage for the single required parameter, segment_sqid, and the description adds little beyond mentioning 'a segment' and showing the parameter in the HTTP path. It never explains the expected format or how to obtain the segment_sqid, so it does not compensate for the schema gap.

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 uses a specific verb, 'Dispatches,' and clearly states the resource and scope: running all enabled enrichments sequentially per lead for a segment. It distinguishes this from a single-enrichment run by emphasizing 'all enabled enrichments' and describing the per-lead order behavior.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The definition gives clear usage context: it runs all enabled enrichments, warns about potentially high connect costs, and tells the caller to poll via jobs_get for results. It does not explicitly name alternatives such as a single-enrichment run or state when not to use this tool, so it falls short of full when/when-not guidance.

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.