Skip to main content
Glama

Set up a website's AI agent

update_ai_agent
DestructiveIdempotent

Turns a website's AI agent on or off and sets what it knows. A new source_url is read again within a minute (knowledge.refreshing), and every night; refresh: true reads it again now. Fails with plan_required when the account cannot use the agent.

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": {
      "site_id": "<site_id>"
    },
    "name": "update_ai_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledNoLet the agent answer visitors.
refreshNoRead source_url again now.
site_idYesThe site's id (see list_sites).
source_urlNoThe one address the agent reads: the website (e.g. https://example.com), its sitemap, or a product feed.
instructionsNoNotes the agent must follow and that win over the website: opening hours, delivery, returns, tone (5,000 characters max).

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?

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the bar is lower, and the description still adds real behavior: the knowledge.refreshing state, the nightly re-read cadence, and the plan_required error. It does not explain what is destroyed when source_url or instructions are replaced, which is the main remaining gap for a destructive tool.

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?

Three tight sentences, front-loaded with the core action, then the refresh timing, then the failure mode. No filler and nothing repeated from the schema.

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 five-parameter mutation tool with no output schema, the description covers the action, refresh timing, and the plan_required error path. It leaves unstated what happens to existing knowledge when enabled is set false or source_url is swapped, which matters given destructiveHint=true.

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 the baseline is 3, but the description genuinely adds meaning: refresh:true forces an immediate re-read, and a new source_url is picked up within a minute and again nightly. That timing semantics is not in the schema and helps an agent decide whether to set refresh.

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?

The description opens with a specific verb+resource pair: turning a website's AI agent on/off and setting its knowledge. That clearly separates it from the read-only sibling get_ai_agent, though it never names that sibling explicitly.

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?

It explains the refresh parameter's effect (immediate re-read vs. the automatic within-a-minute and nightly refresh) and the plan_required failure, which is useful operational context. It stops short of stating when to call this versus get_ai_agent or update_site, so usage is implied rather than directed.

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