Skip to main content
Glama

Add or change a custom connector

set_connector
Destructive

Connect an outside service with an HTTPS API to a site, or replace a connector with the same key. Declare only the actions the pages need. Never ask the owner to paste a key, token or password into the chat, and never put one in a connector, a page or a file. The owner saves the key in the dashboard; the result gives the link. Changing the host or the kind of sign-in removes the saved key, so the owner has to save it again. Read the service's API documentation first (ask the owner for it), then check each action with test_connector.

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": "<site>",
      "key": "<key>",
      "name": "<name>",
      "base_url": "<base_url>",
      "actions": "<actions>"
    },
    "name": "set_connector"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesShort name the pages use, e.g. "crm" or "newsletter" (lowercase letters, numbers, _).
authNoHow the service takes its key: { type: "bearer" } (Authorization: Bearer <key>), { type: "header", name: "X-Api-Key" }, { type: "query", name: "api_key" }, { type: "basic" } (owner types user:password) or { type: "none" }. The key itself is never given here.
nameYesWhat the owner and visitors see, e.g. "Mailchimp newsletter".
siteYesSite slug (e.g. "kopitiam-muar") or id
actionsYes
headersNoFixed headers that are not secret, e.g. { "Accept-Language": "en" }.
base_urlYesStart of every request, https only, e.g. "https://api.example.com/v1".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description explains the actual destructive consequence: changing the host or sign-in type removes the saved key and forces the owner to save it again. It also adds important security constraints about never asking for or storing secrets in chat, connectors, pages, or files.

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?

The purpose is front-loaded in the first sentence, followed by necessary operational constraints and validation guidance. Every sentence contributes security, replacement, or validation context for a destructive tool.

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

Completeness5/5

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

For a seven-parameter, nested, destructive tool with no output schema, the description covers the essential workflow, secret-handling rules, replacement consequences, and a validation step. The remaining schema-level details are well covered by the 86% parameter description coverage.

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 high at 86%, so the schema carries most parameter detail. The description adds meaning beyond it by explaining that key is used to replace an existing connector, that changing base_url or auth type removes the stored key, and that only necessary actions should be declared.

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?

The description states a specific verb and resource: connect an outside HTTPS service to a site, or replace a connector with the same key. This is clearly distinguishable from the validation sibling test_connector, which it explicitly routes to for checking actions.

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?

It gives clear workflow guidance: read the service's API docs first, then test each action with test_connector. It does not explicitly say when not to use this tool or name remove_connector as the alternative for deletion.

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