Skip to main content
Glama

Customise a goal

update_goal_customization
DestructiveIdempotent

Sets how one goal is shown: display name, color, internal description or hidden. Send only what changes; null clears a field. Tracking, filters and alerts keep the raw name. Requires the write scope and an admin or the owner.

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": {
      "goal": "<goal>"
    },
    "name": "update_goal_customization"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYesRaw goal (custom event) name, exactly as tracked.
colorNoOne of the palette hex colors, or null.
hiddenNoLeave the goal out of dashboard lists.
website_idNoWebsite ID from list_websites (the data-site-id value in the tracking script).
descriptionNoInternal note for the team.
display_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description earns credit by explaining why: null actively clears a field, which is the destructive surface. It also discloses two things annotations cannot — the required write scope plus admin/owner permission, and that tracking, filters and alerts keep the raw name so the rename does not propagate downstream.

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?

Four short sentences with no filler, front-loaded with what the tool controls before moving to patch semantics, side effects and permissions. Each sentence carries distinct, actionable information.

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 mutation tool with no output schema, it covers the essentials an agent needs: scope of effect, partial-update convention, null-clearing, permission gate and non-propagation to analytics. The only mild gap is that it does not say whether an unspecified field is left untouched on repeat calls beyond the general "send only what changes" rule.

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 coverage is 83%, so the schema already documents goal, color palette and website_id; the baseline is 3. The description adds real value by clarifying patch semantics and that null clears rather than ignores, and by labelling description as an "internal" note, but it adds nothing about display_name's 80-character limit or the hidden flag beyond the schema text.

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 scope: it "sets how one goal is shown" and enumerates the four customisable facets (display name, color, internal description, hidden). The clause "Tracking, filters and alerts keep the raw name" implicitly separates it from update_goal_definition, which owns the goal's actual identity, though no sibling is named outright.

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 operational guidance: "Send only what changes; null clears a field" tells the agent this is a partial-update tool and how to remove a value, and "Requires the write scope and an admin or the owner" states prerequisites before the call. It lacks an explicit statement of when to choose update_goal_definition instead, so it falls short of a 5.

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