Skip to main content
Glama

Subscribe to Updates

subscribe_to_updates
DestructiveIdempotent

Record a person's interest in hearing from a business on the given topics, pending their confirmation. Returns a confirmation URL that only the user must click within 7 days; no subscription is active until that confirmation. Advocate does not send subscribers any updates yet, and the business's dashboard does not list subscriptions; a confirmed one keeps the address and topics on record. Idempotent: re-using the same idempotency_key returns the original subscription. If the result includes customer_notice, show it to the customer word for word.

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": {
      "slug": "<slug>",
      "contact_email": "<contact_email>",
      "topics": "<topics>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "subscribe_to_updates"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesBusiness slug identifier
topicsYesTopic tags (e.g., ['deals', 'schedule_changes'])
agent_idNoOptional agent identifier
contact_emailYesEmail to subscribe — confirmed via returned token
idempotency_keyYesIdempotency key

Output Schema

NameRequiredDescriptionDefault
statusYes'pending' until the user opens confirmation_url; a replay returns the stored state (e.g. 'confirmed' once they have)
topicsYesNormalised topic tags: trimmed, lower-cased, de-duplicated
expires_atYesUnix seconds when confirmation_url stops working
acknowledgmentYesCustomer-facing sentence to relay, including the confirmation link
customer_noticeNoA sentence for the customer. When present, show it to them word for word.
subscription_idYes
confirmation_urlYesThe link the user must open within 7 days to confirm the subscription
idempotent_replayNoPresent and true when this idempotency_key already had a subscription; the stored token is returned, refreshed only if it had expired
confirmation_tokenYesCapability token for this subscriber only — it is the proof of consent; never pass it to another tool or party

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / customer_notice
      Added value: +{
      +  "description": "A sentence for the customer. When present, show it to them word for word.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / confirmation_url / description
      Previous value: -"The link the user must open within 7 days to start receiving updates"New value: +"The link the user must open within 7 days to confirm the subscription"
  3. Changed5 schema fields changed
    • changedInput schema / properties / contact_email / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    • removedOutput schema / properties / acknowledgment / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / acknowledgment / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / status / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / status / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "acknowledgment": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Customer-facing sentence to relay, including the confirmation link"
      +    },
      +    "confirmation_token": {
      +      "description": "Capability token for this subscriber only — it is the proof of consent; never pass it to another tool or party",
      +      "type": "string"
      +    },
      +    "confirmation_url": {
      +      "description": "The link the user must open within 7 days to start receiving updates",
      +      "type": "string"
      +    },
      +    "expires_at": {
      +      "description": "Unix seconds when confirmation_url stops working",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "idempotent_replay": {
      +      "description": "Present and true when this idempotency_key already had a subscription; the stored token is returned, refreshed only if it had expired",
      +      "type": "boolean"
      +    },
      +    "status": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "'pending' until the user opens confirmation_url; a replay returns the stored state (e.g. 'confirmed' once they have)"
      +    },
      +    "subscription_id": {
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +      "type": "string"
      +    },
      +    "topics": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Normalised topic tags: trimmed, lower-cased, de-duplicated"
      +    }
      +  },
      +  "required": [
      +    "subscription_id",
      +    "status",
      +    "confirmation_token",
      +    "confirmation_url",
      +    "expires_at",
      +    "topics",
      +    "acknowledgment"
      +  ],
      +  "type": "object"
      +}
  5. Changed2 schema fields changed
    • addedInput schema / properties / contact_email / format
      Added value: +"email"
    • addedInput schema / properties / contact_email / pattern
      Added value: +"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
  6. Changed9 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / agent_id / description
      Previous value: -"Optional caller-asserted agent identifier; recorded for attribution"New value: +"Optional agent identifier"
    • changedInput schema / properties / contact_email / description
      Previous value: -"Email to subscribe — must be confirmed via the returned token before any updates send"New value: +"Email to subscribe — confirmed via returned token"
    • removedInput schema / properties / contact_email / format
      Removed value: -"email"
    • addedInput schema / properties / contact_email / minLength
      Added value: +1
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Idempotency key",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / slug / description
      Previous value: -"business slug"New value: +"Business slug identifier"
    • changedInput schema / properties / topics / description
      Previous value: -"Topic tags the user wants updates on (e.g., ['deals', 'schedule_changes', 'new_services'])"New value: +"Topic tags (e.g., ['deals', 'schedule_changes'])"
    • changedInput schema / required
      Previous value: -[
      -  "slug",
      -  "contact_email",
      -  "topics"
      -]New value: +[
      +  "slug",
      +  "contact_email",
      +  "topics",
      +  "idempotency_key"
      +]
  7. Changed9 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / agent_id / description
      Previous value: -"Optional agent identifier"New value: +"Optional caller-asserted agent identifier; recorded for attribution"
    • changedInput schema / properties / contact_email / description
      Previous value: -"Email to subscribe — confirmed via returned token"New value: +"Email to subscribe — must be confirmed via the returned token before any updates send"
    • addedInput schema / properties / contact_email / format
      Added value: +"email"
    • removedInput schema / properties / contact_email / minLength
      Removed value: -1
    • removedInput schema / properties / idempotency_key
      Removed value: -{
      -  "description": "Idempotency key",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • changedInput schema / properties / slug / description
      Previous value: -"Business slug identifier"New value: +"business slug"
    • changedInput schema / properties / topics / description
      Previous value: -"Topic tags (e.g., ['deals', 'schedule_changes'])"New value: +"Topic tags the user wants updates on (e.g., ['deals', 'schedule_changes', 'new_services'])"
    • changedInput schema / required
      Previous value: -[
      -  "slug",
      -  "contact_email",
      -  "topics",
      -  "idempotency_key"
      -]New value: +[
      +  "slug",
      +  "contact_email",
      +  "topics"
      +]
  8. Changed9 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / agent_id / description
      Previous value: -"Optional caller-asserted agent identifier; recorded for attribution"New value: +"Optional agent identifier"
    • changedInput schema / properties / contact_email / description
      Previous value: -"Email to subscribe — must be confirmed via the returned token before any updates send"New value: +"Email to subscribe — confirmed via returned token"
    • removedInput schema / properties / contact_email / format
      Removed value: -"email"
    • addedInput schema / properties / contact_email / minLength
      Added value: +1
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Idempotency key",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / slug / description
      Previous value: -"business slug"New value: +"Business slug identifier"
    • changedInput schema / properties / topics / description
      Previous value: -"Topic tags the user wants updates on (e.g., ['deals', 'schedule_changes', 'new_services'])"New value: +"Topic tags (e.g., ['deals', 'schedule_changes'])"
    • changedInput schema / required
      Previous value: -[
      -  "slug",
      -  "contact_email",
      -  "topics"
      -]New value: +[
      +  "slug",
      +  "contact_email",
      +  "topics",
      +  "idempotency_key"
      +]
  9. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the full lifecycle: nothing is active until confirmation, the URL expires in 7 days, Advocate sends no updates yet, the dashboard does not list subscriptions, and a confirmed record retains address and topics. It also flags the required customer-facing behavior of surfacing customer_notice verbatim, which an agent could not infer from readOnlyHint/destructiveHint alone.

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?

The definition is front-loaded with the core action, then moves through pending state, side effects, idempotency, and the notice requirement in a logical order. A few semicolon-chained clauses make it dense, but no sentence is filler except perhaps the redundant restatement that no subscription is active until confirmation.

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?

Although an output schema exists (so return values need no explanation), the description still calls out the two returns that change agent behavior: the confirmation URL and customer_notice. Combined with the consent and retention semantics, an agent has everything needed to call this correctly for a 5-parameter mutation.

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 description coverage is 100%, so baseline would be 3, but the description adds real meaning for idempotency_key ('re-using the same idempotency_key returns the original subscription') and links contact_email to the returned confirmation token. It also implicitly frames topics as the subscription subject rather than a filter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource: recording a person's interest in hearing from a business on given topics, with the key qualifier that it is pending confirmation. That distinguishes it from query/booking siblings conceptually, but it never names an alternative tool (e.g., request_callback or request_service), so sibling differentiation is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied well enough to act on — this is the double opt-in subscribe path with a 7-day confirmation window — but there is no explicit statement of when to choose this versus request_callback or submit_quote_request, nor any prerequisites or when-not-to-use conditions. The agent must infer the routing.

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