Skip to main content
Glama
YawLabs

@yawlabs/npmjs-mcp

by YawLabs

npm_hook_update

DestructiveIdempotent

Update a webhook's endpoint and signing secret in a single call. Both values are always written, so pass the current secret to change only the URL.

Instructions

Replace a webhook's endpoint AND signing secret. Both are required: the registry PUT overwrites the hook config, so this call always rotates the secret to whatever you pass — supply the current secret if you only mean to change the endpoint. The returned hook object has the secret redacted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesHook ID
secretYesSigning secret to store. Always written; pass the existing secret to leave it effectively unchanged.
endpointYesHTTPS URL for the hook (required — the PUT replaces the whole config)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.15.1
    • changedInput schema / properties / endpoint / description
      Previous value: -"New HTTPS URL"New value: +"HTTPS URL for the hook (required — the PUT replaces the whole config)"
    • changedInput schema / properties / secret / description
      Previous value: -"New signing secret"New value: +"Signing secret to store. Always written; pass the existing secret to leave it effectively unchanged."
  2. First observedv0.12.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already indicate destructiveHint=true, but the description goes beyond by explaining the PUT overwrite semantics: the config is completely replaced, so both fields are always written. It also discloses that the returned hook object redacts the secret, which is useful behavioral context not present in annotations. This adds meaningful transparency without contradicting annotations.

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 two sentences, but both are information-dense and critical. The first sentence states the core behavior and the overwrite warning, and the second clarifies the secret rotation nuance and the redaction detail. No fluff, every sentence earns its place.

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?

For a 3-parameter mutation tool with no output schema, the description covers the essential behavior, the overwrite pitfall, and the return redaction. It doesn't mention error cases or auth requirements, but annotations and sibling context (other hook tools) imply standard conditions. Given the simplicity and complete schema coverage, this is sufficiently complete for correct invocation.

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 the schema already documents each parameter meaning. The description adds the crucial nuance that secret is always written and that endpoint is required, but these are also reflected in schema descriptions ('Always written; pass the existing secret...' and 'required — the PUT replaces the whole config'). The description doesn't add significant new parameter semantics beyond what schema provides, so baseline 3 is appropriate.

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 clearly states the tool's action: replace a webhook's endpoint AND signing secret. It explicitly distinguishes this from merely changing one or the other, and the warning about the overwrite behavior clarifies the tool's unique destructive scope, setting it apart from sibling tools like npm_hook_add or npm_hook_get.

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?

The description provides explicit usage guidance: both endpoint and secret are required, and it warns that passing only the endpoint will rotate the secret unintentionally. It tells the user to supply the current secret if they only intend to change the endpoint, which is a clear conditional instruction. While it doesn't name alternatives explicitly, the guidance is sufficient for correct invocation.

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