Skip to main content
Glama

campaignstack_edit_exclusions

Edit exclusion policy for a workspace, signal agent, or workflow. Call this when the user asks to add/remove blocked profiles, change filter rules, or enable/disable exclusion rules. To block a profile, use add_manual_profiles without exclusionId: it adds to the workspace block list (created on first use) and stops running workflows from drafting to or contacting that person. Child targets are additive only: they can add restrictions but cannot release workspace restrictions. Batch edits are bounded. Return one result per requested item, and report partial failures instead of describing the whole batch as successful.

Input Schema

NameRequiredDescriptionDefault
targetYesworkspace edits level-0 policy. signal_agent and workflow edits are additive level-1 policy and cannot release workspace exclusions.
operationsYes
workspaceIdNoWorkspace ID. Omit it when this connection reaches one workspace: a workspace key (cs_) is bound to its own, and a user key (csu_) or connected app whose person belongs to exactly one workspace defaults to that one. Required only when the person belongs to several; the error then lists them, and campaignstack_whoami reports them too.

Output Schema

NameRequiredDescriptionDefault
resultsNo
warningsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / operations / items / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "exclusionId": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "mode": {
      -        "const": "add_manual_profiles",
      -        "type": "string"
      -      },
      -      "profileUrls": {
      -        "items": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "maxItems": 25,
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "mode",
      -      "exclusionId",
      -      "profileUrls"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "exclusionId": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "importedLeadId": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "mode": {
      -        "const": "remove_manual_profile",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "mode",
      -      "exclusionId",
      -      "importedLeadId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "exclusionId": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "logic": {
      -        "default": "or",
      -        "enum": [
      -          "and",
      -          "or"
      -        ],
      -        "type": "string"
      -      },
      -      "mode": {
      -        "const": "set_filter_rules",
      -        "type": "string"
      -      },
      -      "rules": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "field": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "operator": {
      -              "enum": [
      -                "equals",
      -                "contains",
      -                "gt",
      -                "lt",
      -                "exists",
      -                "not_exists"
      -              ],
      -              "type": "string"
      -            },
      -            "value": {
      -              "type": [
      -                "string",
      -                "number",
      -                "boolean"
      -              ]
      -            }
      -          },
      -          "required": [
      -            "field",
      -            "operator"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 100,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "mode",
      -      "exclusionId",
      -      "rules"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "enabled": {
      -        "type": "boolean"
      -      },
      -      "exclusionId": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "mode": {
      -        "const": "set_enabled",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "mode",
      -      "exclusionId",
      -      "enabled"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "exclusions": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "config": {},
      -            "enabled": {
      -              "default": true,
      -              "type": "boolean"
      -            },
      -            "id": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "state": {},
      -            "type": {
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "type"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 100,
      -        "type": "array"
      -      },
      -      "mode": {
      -        "const": "replace_child_exclusions",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "mode",
      -      "exclusions"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "exclusionId": {
      +        "description": "Manual exclusion to add to. Omit to use the workspace's block list, created on first use.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "mode": {
      +        "const": "add_manual_profiles",
      +        "type": "string"
      +      },
      +      "profileUrls": {
      +        "items": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "maxItems": 25,
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "mode",
      +      "profileUrls"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "exclusionId": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "importedLeadId": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "mode": {
      +        "const": "remove_manual_profile",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "mode",
      +      "exclusionId",
      +      "importedLeadId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "exclusionId": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "logic": {
      +        "default": "or",
      +        "enum": [
      +          "and",
      +          "or"
      +        ],
      +        "type": "string"
      +      },
      +      "mode": {
      +        "const": "set_filter_rules",
      +        "type": "string"
      +      },
      +      "rules": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "field": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "operator": {
      +              "enum": [
      +                "equals",
      +                "contains",
      +                "gt",
      +                "lt",
      +                "exists",
      +                "not_exists"
      +              ],
      +              "type": "string"
      +            },
      +            "value": {
      +              "type": [
      +                "string",
      +                "number",
      +                "boolean"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "field",
      +            "operator"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 100,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "mode",
      +      "exclusionId",
      +      "rules"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "enabled": {
      +        "type": "boolean"
      +      },
      +      "exclusionId": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "mode": {
      +        "const": "set_enabled",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "mode",
      +      "exclusionId",
      +      "enabled"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "exclusions": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "config": {},
      +            "enabled": {
      +              "default": true,
      +              "type": "boolean"
      +            },
      +            "id": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "state": {},
      +            "type": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "type"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 100,
      +        "type": "array"
      +      },
      +      "mode": {
      +        "const": "replace_child_exclusions",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "mode",
      +      "exclusions"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / workspaceId / description
      Previous value: -"Workspace ID. REQUIRED for a user key (csu_), which spans every workspace you belong to; omitted for a workspace key (cs_), which is bound to one and ignores this argument. campaignstack_whoami reports which kind of key you are holding and, for a user key, the workspaces it can reach."New value: +"Workspace ID. Omit it when this connection reaches one workspace: a workspace key (cs_) is bound to its own, and a user key (csu_) or connected app whose person belongs to exactly one workspace defaults to that one. Required only when the person belongs to several; the error then lists them, and campaignstack_whoami reports them too."
  3. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations it discloses the policy hierarchy (level-0 workspace vs additive level-1 child), the side effect that blocking stops running workflows from drafting to or contacting that person, and the partial-failure reporting contract ('report partial failures instead of describing the whole batch as successful'). These are semantic traits annotations cannot express.

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?

Front-loaded with the verb and resource, then triggers, then the alternative path, then constraints. Mostly dense and earnable, though 'Batch edits are bounded' is vague and largely restates the schema's maxItems/minItems limits.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A five-mode, nested-object mutation tool with an output schema, and the description covers the highest-risk semantics (target hierarchy, partial failures, workspace fallback). Minor gaps remain around replace_child_exclusions and the meaning of exclusion state/config, but the essentials for correct invocation are present.

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 coverage is 67% and the description adds real meaning: target type semantics, the effect of omitting exclusionId (workspace block list created on first use), and the additive constraint on child ids. It does not explain the replace_child_exclusions mode or the opaque state/config fields, leaving one operation under-described.

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?

States a specific verb and resource ('Edit exclusion policy') plus the three target scopes it operates on (workspace, signal agent, workflow), which separates it cleanly from the read-only sibling campaignstack_get_exclusions. It also carves out the add_manual_profiles path so the agent knows which behavior lives where.

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?

Gives explicit invocation triggers ('when the user asks to add/remove blocked profiles, change filter rules, or enable/disable exclusion rules') and names the alternate route for the block-a-profile case, including the condition for omitting exclusionId. The boundary between workspace-level and child-level policy is stated as a hard rule ('additive only... cannot release workspace restrictions').

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.

Resources