Skip to main content
Glama

get_custom_variable_usage

Read-onlyIdempotent

List every campaign whose sequence references a custom variable, so you can see what a delete would affect BEFORE attempting it rather than discovering it from a 409 you then have to unpick. Call this first whenever the user asks to delete or clean up a variable. Returns live and drafts separately, and the difference matters: a draft can still be edited before it ever sends, while a live campaign would start losing the phrase from messages already going out. A non-empty live list is exactly what makes delete_custom_variable return 409 variable_in_use, so read it to decide between editing those sequences or passing replace_with. Both lists are always arrays. Read-only. Pass include_coverage=true to also learn how many leads and prospects actually have a value for the variable (response { usage, coverage }). Low coverage means most messages using it will fall back to fallbackBody or its default, so check before launching a sequence that depends on it.

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": {
      "custom_variable_id": "<custom_variable_id>"
    },
    "name": "get_custom_variable_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
include_coverageNotrue = also return how many leads and prospects have a value for the variable.
custom_variable_idYesVariable id, from list_custom_variables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / include_coverage
      Added value: +{
      +  "description": "true = also return how many leads and prospects have a value for the variable.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/destructive, but the description adds behavior those annotations cannot: the causal link to a 409 variable_in_use, the live-vs-draft distinction and why it matters, the guarantee that both lists are arrays, and the { usage, coverage } response shape for include_coverage.

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?

Information is front-loaded: the purpose and the pre-delete check come first, then return structure, then the optional coverage parameter. It is dense but nearly every sentence carries decision-relevant information; the trailing coverage sentence is long but earns its place.

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?

With no output schema, the description carries the full burden of describing return values, and it names the live/drafts fields, their array type, and the alternate coverage response shape, so an agent knows what to expect without calling blind.

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 100%, so the baseline is 3; the description goes further by explaining what low coverage actually implies (messages falling back to fallbackBody or the default) and by tying custom_variable_id implicitly to the delete/409 workflow rather than just restating the schema's 'from list_custom_variables'.

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 opens with a precise verb and resource ('List every campaign whose sequence references a custom variable') and immediately frames the scope as impact analysis rather than a generic getter, which separates it from list_custom_variables.

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 states an explicit trigger ('Call this first whenever the user asks to delete or clean up a variable') and an explicit downstream choice between editing the affected sequences or passing replace_with to delete_custom_variable, plus a second conditional use for include_coverage before launching a sequence.

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