Skip to main content
Glama

Rename a conversion event

onelence_update_event_definition
DestructiveIdempotent

Changes a conversion event's display name or the event name the SDK sends. The new name replaces the old one, which is not kept. Owners and admins only: an event name can carry what it counts as for partner commission. The preview needs event_definition_id. Two steps: call with the change to get a summary and a confirmation_id, show the summary to the user, and only after they agree call again with just confirmation_id.

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": "onelence_update_event_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
event_nameNo
confirmation_idNoOnly when applying: the confirmation_id from the preview, after the user agreed.
event_definition_idNoid from the event definitions list.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "oneOf": [
      +    {
      +      "properties": {
      +        "confirmation_id": {
      +          "type": "string"
      +        },
      +        "expires_at": {
      +          "type": "string"
      +        },
      +        "next_step": {
      +          "type": "string"
      +        },
      +        "object": {
      +          "const": "write_preview",
      +          "type": "string"
      +        },
      +        "status": {
      +          "const": "confirmation_required",
      +          "type": "string"
      +        },
      +        "summary": {
      +          "properties": {
      +            "details": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "title": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "title",
      +            "details"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "object",
      +        "status",
      +        "confirmation_id",
      +        "expires_at",
      +        "summary",
      +        "next_step"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "object": {
      +          "const": "write_result",
      +          "type": "string"
      +        },
      +        "result": {
      +          "anyOf": [
      +            {
      +              "properties": {
      +                "created_at": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "event_name": {
      +                  "type": "string"
      +                },
      +                "id": {
      +                  "type": "string"
      +                },
      +                "kind": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "name": {
      +                  "type": "string"
      +                },
      +                "object": {
      +                  "const": "event_definition",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "object",
      +                "id",
      +                "name",
      +                "event_name",
      +                "kind",
      +                "created_at"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "status": {
      +          "const": "applied",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "object",
      +        "status",
      +        "result"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the risk profile is known. The description nevertheless adds genuinely new context that annotations cannot carry: the old name is discarded and not recoverable, the operation is restricted to owners/admins, and the name has downstream commission implications. What it omits is the consequence of a partial call (what happens between preview and confirmation) and how the two-step flow interacts with the idempotent hint, so this is solid but not full disclosure.

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?

Four tight sentences, front-loaded with the action, then permissions, then the two-step protocol. The final sentence is slightly run-on but every clause carries operational information; no 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?

An output schema exists so return values need no explanation, and the description covers mutation semantics, permissions, the destructive replace, and the preview/apply handshake. The remaining gap is that it never states the minimum viable input set for a call that has no required parameters.

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?

At 50% schema coverage, the description compensates by mapping 'display name' to `name` and 'the event name the SDK sends' to `event_name`, plus clarifying that confirmation_id belongs only to the apply phase and event_definition_id to the preview. It leaves open whether at least one of the two name fields must be supplied, which matters given zero required parameters.

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?

States a specific verb and resource ('Changes a conversion event's display name or the event name the SDK sends') and even disambiguates the two mutable fields, which is more than a generic 'update' would. It does not name or distinguish itself from the closest sibling, onelence_save_event_definition, so an agent still has to infer the create-vs-modify boundary.

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 operating conditions: the preview requires event_definition_id, the apply step requires only confirmation_id, and the summary must be shown to the user before the second call. It states the owners/admins restriction but offers no explicit exclusion or alternative for when this tool is the wrong choice versus save or delete.

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.