Skip to main content
Glama

Log in to Leafwright

leafwright_login

Start a browser login flow for Leafwright MCP. Open the returned URL, choose an organization and project, then call leafwright_auth_status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
client_nameNoOptional client name shown in Leafwright.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes
next_stepYes
user_codeYes
expires_atYes
device_codeYes
verification_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / device_code
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "status",
      -  "verification_url",
      -  "user_code",
      -  "expires_at",
      -  "next_step"
      -]New value: +[
      +  "status",
      +  "verification_url",
      +  "user_code",
      +  "device_code",
      +  "expires_at",
      +  "next_step"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, readOnlyHint=false, idempotentHint=false, destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the flow is out-of-band (a URL must be opened and the user must make selections), so the agent knows this is not a self-contained call. It stops short of saying what happens if a session already exists or how long the URL stays valid.

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?

Two short sentences, front-loaded with what the tool does and followed by the required next actions. Every clause earns its place; nothing is padding.

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 an output schema present, return values need not be explained, and the description covers the initiation flow and the handoff to leafwright_auth_status. The remaining gap is the already-authenticated / repeat-call case, which matters for a non-idempotent tool but is not addressed.

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?

There is one optional parameter (client_name) with 100% schema description coverage, so the schema already carries its meaning. The description never mentions it, adding no semantic value beyond the schema, which matches the baseline of 3 when coverage is high.

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 ('Start a browser login flow for Leafwright MCP') and positions the tool as the entry point in a sequence, pointing to leafwright_auth_status as the follow-up. An agent can distinguish it from leafwright_auth_status and leafwright_logout 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 explicit step-by-step usage: open the returned URL, pick an organization and project, then call leafwright_auth_status. It does not state when *not* to use it (e.g., if already authenticated, call auth_status instead), which is the only missing guidance for full marks.

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