Skip to main content
Glama

Explain Authentication Flow

explain_auth_flow

Explains authentication flows by locating auth-related files and summarizing login, tokens, sessions, and permissions from a local folder or GitHub URL—no cloning needed.

Instructions

Finds all auth-related files and explains login flow, tokens, sessions, and permissions. Accepts a local folder path OR a GitHub URL (e.g. https://github.com/user/repo) — no cloning needed.

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": {
      "repo_path": "<repo_path>"
    },
    "name": "explain_auth_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
repo_pathYesLocal folder path OR a GitHub repo URL (https://github.com/user/repo)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that it works on a remote GitHub URL without cloning, which tells the agent there are no local side effects. However, it does not state that the operation is strictly read-only/analysis, nor does it describe the shape of the resulting explanation (summary vs file list), which leaves meaningful behavioral gaps.

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?

Two sentences, front-loaded with what the tool does, followed by input-format guidance. There is slight redundancy between the URL example in the description and the schema, but no filler and no wasted clauses.

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 one-parameter, no-output-schema analysis tool, the description covers purpose, scope (login flow, tokens, sessions, permissions), and accepted inputs. What is missing is a hint at the output form (e.g., a flow narrative versus a file inventory) and any note on private repositories, but the essentials for calling it correctly are present.

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 coverage is 100% and the single parameter already documents both accepted forms (local path or GitHub URL). The description restates the same URL example rather than adding new meaning such as relative-path semantics, private-repo auth requirements, or depth limits, so the baseline of 3 applies.

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?

The description uses a specific verb pair ('finds ... and explains') tied to a concrete resource: auth-related files and login flows, tokens, sessions, permissions. An agent can distinguish this from a general codebase Q&A or structure-scanning tool. It stops short of explicitly naming a sibling or stating how it differs from them, so it is clear but not maximally differentiated.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer it should call this when it needs to understand authentication. There is no explicit when-to-use/when-not-to-use statement and no mention of alternatives such as ask_codebase for general questions. The accepted-input note is helpful but is about parameters, not tool selection.

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