Skip to main content
Glama

Railflag

Connect a source

connect_source

Starts a read-only connection to the user's account at another flag vendor (see list_sources). Returns a link the user opens to enter their credentials there. Never ask the user to paste credentials into the chat. After they finish, call get_connection.

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": {
      "vendor": "<vendor>"
    },
    "name": "connect_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
vendorYesWhich vendor to import from

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses the actual mechanics: the tool returns a link the user opens externally, credentials are never pasted into chat, and the flow is incomplete until get_connection runs. This explains the readOnlyHint=false mutation (a connection record is created) while the underlying data access is read-only, so no annotation conflict exists.

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?

Four short sentences, front-loaded with what the tool does and followed by the critical operational constraint and next step. Every sentence carries information; none restates the title or annotations.

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?

With no output schema, the description compensates by stating the return value (a link to open) and the required follow-up call. For a one-parameter, non-destructive tool, an agent has everything needed to invoke it and handle the result correctly.

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% and the vendor enum is self-documenting, so the schema already does most of the work. The description adds value by pointing to list_sources as the source of valid vendor values, which the enum itself does not explain.

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 names a specific verb and resource ('Starts a read-only connection to the user's account at another flag vendor') and immediately distinguishes this tool from its prerequisites and follow-ups. An agent can tell it apart from list_sources and get_connection without inspecting either 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?

It gives clear sequencing guidance: consult list_sources to pick a vendor, then call get_connection after the user finishes the hosted flow. It does not state the negative case, e.g. that an agent should call get_connection instead when a connection already exists, which is the one routing gap.

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