Skip to main content
Glama

Connect a service

connect_service

Starts connecting a service to a project. Collect the settings list_connectable_services marks as settings in chat first, never a key, password or token. The person then finishes on a CodeGene page (or the service's own sign-in) that this call opens for them or returns as a link. Owners and admins only. If your prompt or page never appears and the call times out, call it again with finish_with set to "link".

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": {
      "project_id": "<project_id>",
      "provider": "<provider>"
    },
    "name": "connect_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
providerYesThe service (list_connectable_services gives ids).
settingsNoThe service's settings that are not secret, by setting id, such as a server address. Never a key, password or token.
project_idYesThe project (list_projects gives ids).
finish_withNoLeave out. "link" returns a CodeGene page link for the person to open instead of showing a prompt or opening the page for them, for an assistant that cannot.
workspace_idNoWorkspace id from whoami; omit when there is one.
account_labelNoA name for this connection, such as the account's email.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare that this is a non-read-only, non-destructive, closed-world mutation; the description adds that the flow is two-phase, with the person completing it on a CodeGene page or the provider's sign-in, that the call opens that page or returns a link, and that a timeout is a known recoverable outcome. It does not disclose what happens if the service is already connected, whether re-calling is idempotent, or what the tool returns on success.

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?

Purpose is front-loaded in the first clause, followed by preconditions, human handoff, permissions and the timeout fallback in a tight four-sentence block. Dense but every sentence carries operational information; only the parenthetical about the service's own sign-in is slightly 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 six-parameter, nested-object mutation with no output schema, the definition covers who may call it, what to gather beforehand, how the human finishes the flow, and the failure mode. The remaining gap is the return value and what state the connection is left in after a timed-out attempt, which matters because there is no output schema to fall back on.

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 adds genuine meaning: it explains what belongs in settings (only values list_connectable_services marks as settings, never a key, password or token) and gives a concrete trigger for finish_with="link" that the schema's own enum text does not supply. account_label and workspace_id are left entirely to the schema.

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?

States a specific verb and resource: "Starts connecting a service to a project," and points to list_connectable_services as the source of provider ids, which lets an agent tell it apart from the discovery tool. It is less explicit about how it differs from siblings like connect_cloud_account, connect_domain or reconnect_service, so the boundary is inferred rather than stated.

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?

Gives real sequencing guidance (collect non-secret settings via list_connectable_services before calling), a prerequisite (owners and admins only), and a concrete fallback (retry with finish_with="link" on timeout). It stops short of saying when NOT to use it, e.g. when a service is already connected and reconnect_service or disconnect_service applies.

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