Skip to main content
Glama

Select site

select_site

Sets the default site of *_read calls without site_id. The choice is shared by all chats of this connection; calls that change a site always name it in site_id. If the site has no active API key yet, creates one for MCP access. Site content is not changed.

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": "select_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesNumeric site id from list_sites

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial context beyond annotations: the selection is connection-wide and shared by all chats, an API key may be created as a side effect if none is active, and site content itself is untouched. That last clause reconciles the write-ish behavior with destructiveHint=false, and the key-creation side effect is not inferable from any structured field.

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 short sentences, front-loaded with the core effect, followed by global scope, side effect, and a negative clarification. No sentence is redundant.

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 one-parameter state-changing tool with annotations and no output schema, this covers scope, side effects, and non-effects well. It does not say how long the selection persists or how the agent can confirm the change, which would be the remaining gap.

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% and the site_id field already tells the agent it is a numeric id from list_sites. The description only clarifies that this id becomes the default target, adding little that the schema and purpose statement do not already convey.

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 effect: sets the default site used by '*_read calls without site_id'. That scope sentence immediately separates it from create_site and list_sites, which act on site entities rather than on call routing.

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?

Explains the selection rule clearly: use it for reads that omit site_id, and skip it whenever a call names a site in site_id, since such calls always specify their own target. It stops short of naming a scenario-level trigger (e.g. user asks to switch the working site) but the exclusion condition is explicit.

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.