Skip to main content
Glama

Add a site

add_site
Idempotent

Adds a site to the user's account (or returns it if it already exists) and gives the tracking snippet to install.

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": {
      "domain": "<domain>"
    },
    "name": "add_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay name. Defaults to the domain.
domainYesThe site's domain, e.g. example.com. Subdomains are included.
timezoneNoIANA timezone for days and hours, e.g. Europe/Paris. Default UTC.

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 readOnlyHint=false and idempotentHint=true, so the 'returns it if it already exists' phrasing largely restates idempotency. However, the description adds real context beyond annotations by disclosing that the call also returns the tracking snippet to install – a return-value behavior not covered by any output schema.

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?

A single sentence with no waste, front-loading the primary action and immediately following with the idempotent-return and snippet-delivery outcomes.

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?

With no output schema, the description carries the burden of describing what comes back, and it does mention both the site object and the tracking snippet. It stops short of covering failure modes such as invalid or already-owned domains and any permission requirements, which would matter for a create operation.

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 description coverage is 100% and each of the three parameters carries its own description with defaults (display name defaulting to domain, IANA timezone defaulting to UTC). The description adds no additional parameter meaning, so baseline 3 applies.

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 (adds) and resource (a site to the user's account), and names the two outcomes: creation or existing-site return, plus the tracking snippet deliverable. This clearly separates it from siblings like add_feed, add_marker, or rename_site.

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?

Usage is implied rather than stated: an agent can infer it should call this to register a new domain. There is no explicit when-to-use versus alternatives guidance, and notably no pointer to get_tracking_snippet for retrieving the snippet later, nor any prerequisite such as the site not already being tracked.

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