Skip to main content
Glama

Staats

Update site context

update_site_context
DestructiveIdempotent

Save or amend what a site is for. Provided context fields are merged into the existing context (events merges per entry); a null value deletes its key. name/domain update the site record itself.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoupdate the site's display name
siteNothe site's data-site code, from its script tag or list_sites. Omit when the account has a single site. In a tracked project, read the code from the script tag before asking the user.
goalsNowhat the owner wants from it; null deletes
notesNoopen agenda items to check at session start; null deletes
domainNoupdate the site's domain
eventsNomap of event name -> one-line meaning; record one whenever you add tracking. null deletes an entry.
funnelNothe site's canonical conversion steps, same shape as the funnel tool's steps. null clears it.
audienceNowho the site is for; null deletes
descriptionNowhat the site is; null deletes
retention_daysNoshorten this site's data retention below the plan default; 0 restores plan-default retention. DESTRUCTIVE: shortening schedules permanent deletion of older events at the nightly prune. Confirm with the owner first.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
siteYes
domainYes
contextYes
updatedYes
retentionYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

The annotations declare destructiveHint=true and idempotentHint=true, and the description complements that by explaining the merge semantics: fields are merged, null deletes its key, events merges per entry. It also exposes the destructive behavior of retention_days (shortening schedules permanent deletion at the nightly prune, confirm with owner first). This is meaningful behavioral context beyond the hints.

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?

The entire description is two dense sentences with no filler. The first sentence front-loads the core behavior (merge, null-deletes, events-per-entry), and the second sentence clarifies the one exception (name/domain update the site record). Every clause earns its place.

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?

Given 10 params, 100% schema coverage, an output schema, and annotations, the description caps the missing context: merge semantics, null-delete behavior, and the destructive retention_days caveat. An agent can invoke it correctly without needing more prose; the structured fields carry the rest.

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 coverage is 100%, so each parameter already has a description; the tool description adds the crucial merge/delete semantics and explicitly calls out name/domain as record-level fields. The description doesn't repeat every parameter, which is appropriate, but the merge semantic is essential and is stated. Slight deduction because the description could have summarized the event/funnel shapes slightly more, though the schema already covers them.

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 opens with a clear verb+resource ('Save or amend what a site is for') and immediately distinguishes the tool's merge behavior from a plain overwrite. It also explains that name/domain update the site record itself, which separates it from the context-field behavior and from siblings like create_site or get_site_context.

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?

The description and the site parameter anchor the tool to an existing site ('the site's data-site code, from its script tag or list_sites'), and the schema adds explicit guidance about omitting site for single-site accounts and reading the code from the script tag in a tracked project. It doesn't explicitly say 'use get_site_context to read before updating' but the merge semantics imply an existing context.

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.

TDQS

A3.9/5.0
Disambiguation4/5

Most tools target clearly distinct resources or analytic questions: site CRUD, annotation handling, overviews, funnels, journeys, and diagnostic checks are separated. A few tools like get_overview, query, and what_changed could overlap when asking 'what happened', but their descriptions differentiate the intended use well.

Naming Consistency3/5

The CRUD tools follow a clean verb_noun pattern (create_site, delete_site, list_sites, update_site_context), but analysis tools mix bare nouns (funnel, journeys), bare verbs (query), adverb-verb compounds (compare_around), and what_* question phrases (what_broke, what_changed). Naming is readable and snake_case is consistent, but the overall convention is not uniform.

Tool Count5/5

15 tools is within the well-scoped range and each tool earns its place: site management, annotation tracking, traffic overview, discovery, diagnostics, and comparison all have dedicated tools. There is no obvious redundancy or padding.

Completeness4/5

The surface covers the core domain well: sites can be created, listed, deleted, and contextualized; annotations can be recorded and listed; analytics support overview, breakdown, funnel, journey, and anomaly questions. Minor gaps exist such as no update/delete for annotations and no single-site getter separate from list_sites, but agents can work around these.