Skip to main content
Glama

Approve all pending dataLayer diffs for a scan

approve_all_datalayer_diffs
Destructive

Approve all pending dataLayer diffs for a scan (permission: edit)

Approve every approvable, non-ignored, non-regression diff of the scan, optionally scoped to one stepIndex or to the intersection named by elementKeys, into the journey baseline in one transaction. Diffs of a vendor the journey does not watch (its watched vendors) are not approved. Returns the count approved. Applies one mode to every approved presence diff. mode: required (default) makes an added event/param required and removes a missing one from the expected state; optional records it as may-or-may-not-occur.

For one diff use approve_datalayer_diff.

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": {
      "id": "<id>",
      "scanId": "<scanId>"
    },
    "name": "approve_all_datalayer_diffs"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesJourney id: from GET /journeys or the POST /journeys answer.
modeNoPresence diffs only (missing/extra event or param): required (default) or optional.required
scanIdYesThe scan whose diffs are approved.
stepIndexNoApprove only the diffs of this zero-based journey step; omitted: every step.
elementKeysNoApprove only diffs of these element keys, from GET /scans/{id}?include=diffs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / elementKeys / description
      Added value: +"Approve only diffs of these element keys, from GET /scans/{id}?include=diffs."
    • addedInput schema / properties / id / description
      Added value: +"Journey id: from GET /journeys or the POST /journeys answer."
    • addedInput schema / properties / mode / description
      Added value: +"Presence diffs only (missing/extra event or param): required (default) or optional."
    • addedInput schema / properties / scanId / description
      Added value: +"The scan whose diffs are approved."
    • addedInput schema / properties / stepIndex / description
      Added value: +"Approve only the diffs of this zero-based journey step; omitted: every step."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the description's job is to add context beyond that. It does: 'permission: edit', 'into the journey baseline in one transaction' (atomicity of the mutation), 'Returns the count approved', and the vendor-watch exclusion rule. It stops short of saying whether the baseline change can be undone or what happens on partial failure of the transaction.

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 action and permission, then scoping rules, then return value, then mode semantics, then the sibling pointer. Dense but every sentence carries information; the mode explanation is the only part that could be tightened.

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 destructive bulk-mutation tool with five parameters and no output schema: the description covers permissions, atomicity, return value, scoping, and exclusion rules, which is most of what an agent needs. The remaining gap is guidance on preconditions (e.g., scan completion state) and reversibility of the baseline write.

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, but the description adds real meaning for mode: it clarifies that a single mode applies to every approved presence diff, and explains what 'required' versus 'optional' do to the expected state. It also frames elementKeys as an intersection scoping rather than a plain filter, though that phrasing is slightly ambiguous about how it combines with stepIndex.

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 ('Approve all pending dataLayer diffs for a scan') plus the exact scope of what gets approved (every approvable, non-ignored, non-regression diff). It explicitly distinguishes itself from the sibling approve_datalayer_diff by naming that tool as the single-diff path.

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 final line 'For one diff use approve_datalayer_diff' gives a clear alternative and the condition that selects it, and the body spells out exclusions (non-ignored, non-regression, unwatched vendors) that tell the agent what will not be touched. It lacks explicit when-not guidance such as required scan state or what to do if nothing is approvable.

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