Skip to main content
Glama

UI Add Server to Library

app_add_server

Add or update an MCP server in Switchboard's local 0600 library to manage and persist server configurations with restricted permissions.

Instructions

App-only add or update an MCP server in Switchboard's local 0600 library

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": {
      "id": "<id>"
    },
    "name": "app_add_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
cwdNo
envNo
urlNo
argsNo
tagsNo
notesNo
commandNo
headersNo
transportNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does contribute two non-obvious facts: the operation is a mutation with upsert semantics ('add or update') and it writes to a local library file locked down to 0600 permissions. It omits what an update does to existing fields (overwrite vs merge), whether the entry is validated or probed, and any error or rollback behaviour.

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?

A single clause with zero filler, and the scoping qualifier is front-loaded ahead of the action. It is efficient rather than padded; its weakness is under-specification, which is penalised elsewhere.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter mutation with nested objects, no annotations and no output schema, the description is far too thin. An agent cannot tell which parameters are required for which transport, nor what the call returns or how failures surface.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 10 parameters, including a nested env/headers object and an enum-constrained transport, and the description supplies no meaning for any of them. The critical ambiguity — that command/args/cwd belong to stdio transports while url/headers belong to http/sse — is left entirely unresolved.

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 names a specific verb pair (add or update) and a specific resource (an MCP server in Switchboard's local library), and 'app-only' scopes it to the UI surface. It does not distinguish itself from siblings such as app_save_profile or app_apply_profile, which likely touch neighbouring concepts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'App-only' implies the call originates from the app UI rather than an agent flow, which is a weak usage signal. There is no guidance on when to add versus update, no prerequisites (does the server need to exist? is a connection test performed?), and no named alternative for other surfaces.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.