Skip to main content
Glama

Change a page or link goal

update_goal_definition
DestructiveIdempotent

Changes a goal's pattern: path, link host, button text, form or file, as its kind allows (its name and kind never change). Reports recount past visits at once. Requires the write scope.

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": {
      "id": "<id>"
    },
    "name": "update_goal_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe goal's id from list_goal_definitions (gd_…).
fileNodownload only: a file name (pricing.pdf, exact) or an extension (.pdf: any file with it).
formNoform only: the form's id or name attribute, exact, e.g. signup.
hostNooutbound only: the other site, e.g. stripe.com (subdomains included).
pathNoPage path pattern, e.g. /pricing, /blog/* (one segment) or /docs/** (any depth); letter case is ignored. For outbound, optional: the path on the other site.
textNoclick only: the button text, exact but any letter case, e.g. Start free trial.
website_idNoWebsite ID from list_websites (the data-site-id value in the tracking script).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Adds real context beyond the annotations: the goal's name and kind are immutable, a historical recount of past visits is triggered immediately, and a write scope is required. The destructiveHint is already declared, so the extra disclosure of the retroactive recount side effect and the immutability constraint is the value-add.

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?

Three compact sentences, front-loaded with the core action and constraints, with no filler. The phrasing is slightly telegraphic ('Reports recount past visits at once'), but every clause carries 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?

Complete for a mutation tool: no output schema exists, annotations cover the destructive/idempotent profile, and the description adds scope requirement, immutability, and the recount side effect. Only the absence of explicit alternative routing keeps it from a 5.

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 100%, so the baseline is 3; the schema already documents every parameter including kind-specific usage. The description's phrase 'as its kind allows' adds a useful cross-cutting rule (valid fields depend on goal kind) but no per-parameter detail beyond the schema.

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?

States a specific verb (changes) and resource (a goal's pattern) plus the exact attributes it can alter (path, host, text, form, file) and the invariants (name and kind never change). An agent can distinguish this from create_goal_definition or preview_goal_definition from the description alone.

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?

Implies usage by saying what it modifies on an existing goal and that it requires the write scope, but it never explicitly says when to choose this over preview_goal_definition or create_goal_definition, nor any when-not conditions.

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