Skip to main content
Glama
pushengage-mcp

pushengage-mcp

Update service worker settings

pushengage_update_service_worker_settings
Idempotent

Update a site's Service Worker settings by merging only specified fields, including registration, subfolder support, and file path. Adjust PushEngage behavior without overwriting existing values.

Instructions

Updates the current site's Service Worker Settings. Pass only the fields you want to change: enable_service_worker_registration, enable_service_worker_in_subfolder, and/or service_worker_file_path. The tool reads the current values and merges your changes. When enable_service_worker_registration is true, service_worker_file_path must be non-empty after the merge. Provide at least one field. Returns the updated settings.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pushengage_update_service_worker_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idNoOverride the currently selected site.
service_worker_file_pathNoPath for service worker file. Required when the service worker registration is enabled.
enable_service_worker_in_subfolderNoEnable addition of service worker in another sub-folder.
enable_service_worker_registrationNoEnable the service worker registration from PushEngage. Disable it only if your site already registers its own service worker. When true, service_worker_file_path is required.

Output Schema

NameRequiredDescriptionDefault
service_worker_file_pathNo
enable_service_worker_in_subfolderNo
enable_service_worker_registrationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / site_id / maximum
      Added value: +9007199254740991
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-destructive, idempotent, open-world mutation. The description adds real behavioral context beyond them: the tool reads current values and merges changes rather than replacing the object, and the cross-field constraint that enable_service_worker_registration=true requires a non-empty path after the merge. It does not cover permissions or scope of the change.

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, then merge semantics, then the validation rule. Slightly redundant in stating both "Pass only the fields you want to change" and "Provide at least one field," but no sentence is filler.

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?

With annotations covering the safety profile and an output schema covering return values, the description supplies what structured data cannot: merge behavior and the conditional validation rule. Only the site_id override and any permission prerequisites are left unaddressed.

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

Parameters3/5

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

Schema description coverage is 100%, so baseline is 3. The description restates the two enable flags and the file path but adds only one genuine clarification — that the path requirement is evaluated after merging. It never mentions site_id, which is documented only in the schema.

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 ("Updates the current site's Service Worker Settings") and immediately enumerates the mutable fields, so an agent can distinguish it from the read-only pushengage_get_service_worker_settings sibling without opening either schema.

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?

Gives concrete invocation guidance: pass only the fields to change, provide at least one field, and rely on read-then-merge semantics. It does not explicitly say when not to use it (e.g., to inspect values, use the get tool), so it stops short of full when/when-not/alternatives coverage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.