Skip to main content
Glama

Sign in to Sparkles

login

Opens the Sparkles authorization page in your browser and waits for approval, so you can sign in to a Sparkles Editor account and generate images using its credits.

Instructions

Open the Sparkles authorization page in the user's browser and wait for them to approve this MCP client. Call this when another tool reports that login is required. The user must have a Sparkles Editor account, and image generation spends credits from that account.

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": "login"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnly=false, openWorld=true, destructive=false; the description meaningfully adds that this opens a browser page and blocks pending user approval, which is behavior an agent cannot infer from those hints. It also flags the account prerequisite and credit implications. It stops short of saying what happens on timeout or denial.

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?

Three short sentences in a strict order: what it does, when to call it, then the prerequisites and cost caveat. No filler, no repetition of the title, and the core action is front-loaded.

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?

With zero parameters, no output schema, and annotations already covering the safety profile, the description supplies the two things that matter: the trigger condition and the interactive/blocking nature of the call. The only meaningful omissions are failure, cancellation, and post-approval token persistence behavior.

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?

The tool takes no parameters, so there is nothing for the description to disambiguate beyond what the empty schema already conveys. The baseline for a zero-parameter tool applies, and the description does not waste words restating parameters.

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 ('Open the Sparkles authorization page') plus the mechanism ('in the user's browser') and the completion condition ('wait for them to approve this MCP client'). This is unmistakably distinguishable from the image-generation siblings, none of which involve browser-based auth.

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 an explicit, actionable trigger: 'Call this when another tool reports that login is required.' It also states a prerequisite (a Sparkles Editor account) and a cost implication (image generation spends credits from that account). What it lacks is any when-not guidance or note about re-invocation/retry, though for a singleton auth tool that gap is minor.

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