Skip to main content
Glama

Set site data

set_site_data
Idempotent

Use when the page should read a setting or value the owner controls (a price, a deadline, a switch). Sets a key-value item in a site's data store (SnapHost Data). KV is mutable config/state the published page reads. value is any JSON. Scoped to a site you can edit.

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>",
      "namespace": "<namespace>",
      "key": "<key>",
      "value": "<value>"
    },
    "name": "set_site_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe item key within the namespace
valueYesAny JSON value to store (max 256 KB)
site_idYesThe site to write to
namespaceYesGrouping for the key, e.g. "config"
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Optional: the workspace (the personal space or a Pro workspace) to act in, from list_workspaces. Omit to act in the token owner's own account."New value: +"Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for)."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false and openWorld=false, so the safety profile is covered. The description adds real context beyond that: 'KV is mutable config/state the published page reads' (what the write affects downstream) and 'Scoped to a site you can edit' (an authorization precondition). It does not state overwrite-vs-create behavior for an existing key, keeping it from a 5.

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?

Four tight sentences with the usage trigger front-loaded before the mechanics, and no filler. There is minor redundancy in restating the key-value nature twice ('key-value item in a site's data store' then 'KV is mutable config/state'), but each sentence carries content.

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 5-parameter mutation tool with no output schema, the definition covers purpose, write target, permission scope and value format adequately. The remaining gap is namespace/key collision behavior (does setting an existing key overwrite, and is namespace creation implicit), which matters for a documented-idempotent writer.

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%, including the 256 KB cap and the workspace_id fallback semantics, so the schema already carries parameter meaning. The description's only added parameter info is '`value` is any JSON', which duplicates the schema's own 'Any JSON value to store', and 'Scoped to a site you can edit', a light gloss on site_id. 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 and resource — 'Sets a key-value item in a site's data store (SnapHost Data)' — and then clarifies what that store is ('KV is mutable config/state the published page reads'), which implicitly separates it from record/collection tools. An agent knows exactly what object is being written without opening the schema.

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?

'Use when the page should read a setting or value the owner controls (a price, a deadline, a switch)' gives a concrete triggering condition with examples, so the when-to-use case is clear. It stops short of naming alternatives (e.g. query_site_records or apply_data_template) or stating when not to use it, so it does not reach 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.