Skip to main content
Glama

Change, archive or restore an event

update_event
Idempotent

Changes one of a site's declared events: its label; the addresses of a page reached, or the destinations of a link to a site (they replace the old ones); or archives it and restores it. An automatic event (auto:…) archived is no longer recorded at all. A page reached is counted from the pageviews, so new addresses count it again, past visits included: its numbers, and its conversions when it is a goal, change for the past too. Say so. An archived event leaves the lists and the goals; nothing is erased, and it can be restored. The technical name of a click or of a code event cannot change: it is what the site sends. Nothing is ever deleted through these tools. Use this rather than creating a second event for the same thing.

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": {
      "site": "<site>",
      "event": "<event>"
    },
    "name": "update_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoFor a page reached only: all its addresses, separated by commas (e.g. /pricing, /fr/pricing). They replace the ones it had.
siteYesThe site: its domain (example.com), its id, or its public id. See list_sites.
eventYesThe event's name or label, as list_events gives it.
labelNoIts new label, as the user says it.
targetsNoFor a link to a site only: all its destinations, separated by commas (e.g. axyomes.com). They replace the ones it had, past clicks included.
archivedNoTrue to archive it, false to restore it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare mutation, idempotency and non-destructiveness; the description goes well beyond by explaining retroactive effects (past numbers and goal conversions change when addresses are replaced), that archived events vanish from lists and goals but are not erased and can be restored, and that archiving an auto:… event stops recording entirely. Those are exactly the consequences an agent must warn about before invoking a mutation.

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?

It is front-loaded with the mutation itself and then the consequences, with no filler sentences. Phrasing is somewhat run-on (the page-counting sentence is a chain of clauses, and 'Say so.' is an instruction embedded in a definition), which costs a point but not the substance.

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?

For a non-destructive, idempotent mutation with no output schema, the description covers what changes, what is preserved, what is reversible, and what side effects propagate to past data. Nothing essential for calling it correctly is missing given that all parameters are schema-documented.

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?

The schema already documents all six parameters at full coverage, including that page/targets 'replace the ones it had.' The description still earns credit by adding constraint semantics: the technical name of a click or code event is immutable regardless of what is passed, and new page addresses recount past visits and conversions.

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 names a specific verb and resource (change a site's declared event) and enumerates exactly the mutable facets: label, page addresses, link targets, archived/restored. It also distinguishes itself from create_event with 'Use this rather than creating a second event for the same thing,' so the agent can route 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?

There is an explicit alternative rule (update rather than create a duplicate event) and a stated constraint on when this cannot be used (the technical name of a click/code event cannot change). It lacks an exclusion for automatic auto:… events other than the archive note, but the selection context is clear.

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