Skip to main content
Glama
Splits MCP Server

Splits MCP Server

Official

auth_login

Save a Splits API key as the active local workspace or start a browser login to connect or create a workspace; keys stay out of output.

Instructions

Save a Splits API key as a workspace in the local config (~/.splits/config.json, mode 0600) and make it the active workspace. Without --api-key or stdin, starts a browser login: it opens an approval page where the person connects an existing workspace or creates a new one, waits up to 10 minutes for the approval, and saves the key it receives. The key never appears in the output. With a key, the key is checked against the API first. The workspace is named after its org unless --name is given; logging in again to the same org refreshes that workspace. Other workspaces and local keys are never removed. The browser login prints a code that the person must type on the page, so an agent that cannot show the person this command's output while it waits (under MCP, or running it in a shell tool) uses auth login-start and auth login-status instead. Saved keys are only used when the SPLITS_API_KEY env var is not set — env always wins.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "auth_login"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoSaved local key that proves this agent in a browser login, and becomes the treasury signer if the person creates a workspace. Without it, the login uses a new key, which is saved under the workspace's name after approval, whether the person connects or creates a workspace.
nameNoWorkspace alias. Defaults to the org name in lowercase with dashes. An existing workspace with this alias is replaced.
apiKeyNoAPI key value. Refused under MCP mode; prefer stdin for secrets.
clientNameNoRequired for a browser login, ignored when an API key is given. The name of the app the person is using to talk to you, as they would recognise it: for example `Claude Code`, `Claude Desktop`, `Codex`, `Cursor` or `ChatGPT`. Use the product name, not the model name (not "Claude Opus"), not the person's name, and not "Splits CLI". The person sees it on the approval page before approving, and the API key is named after it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does so unusually well: config path and 0600 file mode, 10-minute approval timeout, the key never appearing in output, pre-validation of supplied keys, workspace naming from the org with an alias override, refresh-on-relogin semantics, and the explicit guarantee that other workspaces and local keys are never removed. It also warns that the browser flow prints a code the person must type, which materially affects whether an agent can use it at all.

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?

Front-loaded with the core action and file target, then walks through the fallback flow and the escape hatch. It is dense and almost every clause carries operational weight, though the browser-flow narrative is restated in two places (approval page description and the printed-code warning), which could be tightened slightly.

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 and no annotations, the description still tells the agent what happens on success (workspace saved and activated, key withheld from output) and how to handle the interactive case it cannot drive. Nothing needed to decide whether and how to call this tool is missing.

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 description coverage is 100%, and the per-parameter descriptions already explain `key`, `name` (alias replacement), `apiKey` (refused under MCP) and `clientName` (required for browser login, API key naming). The description adds only the mode-selection rule — that absence of an api key or stdin triggers the browser flow — so it builds modestly on an already-complete schema.

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 resource up front: 'Save a Splits API key as a workspace in the local config (~/.splits/config.json, mode 0600) and make it the active workspace.' It then distinguishes the two modes (direct key vs browser login) and explicitly names the sibling pair auth login-start / auth login-status for the case where this tool cannot be used.

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

Usage Guidelines5/5

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

Gives explicit conditions for each mode: with a key it is validated against the API, without --api-key or stdin a browser flow starts. It names the alternative tools ('an agent that cannot show the person this command's output while it waits (under MCP, or running it in a shell tool) uses auth login-start and auth login-status instead') and states env-var precedence: SPLITS_API_KEY always wins over saved keys.

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

Deploy Server

Other Tools