Skip to main content
Glama
wasintoh

line-oa-mcp-ultimate

by wasintoh

Emit LINE Login OAuth code scaffold

line_emit_login_snippet
Read-onlyIdempotent

Generate a ready-to-use LINE Login OAuth 2.1 flow code snippet for your backend framework. Includes authorization, token exchange, and optional PKCE, refresh, and friendship check.

Instructions

Generate a working LINE Login OAuth 2.1 flow scaffold (authorize URL + token exchange + verify + userinfo + optional refresh + optional friendship check) for your backend framework.

This replaces 10 separate OAuth tool calls with one paste-ready code block — Claude Code's superpower.

Args:

  • framework: express | nextjs-route-handlers | fastify | hono. Default 'express'.

  • scopes: ['profile', 'openid', 'email']. Default ['profile', 'openid'].

  • with_pkce: emit PKCE S256 helpers (recommended; default true).

  • with_friendship_check: include /friendship/v1/status call (default false).

  • with_refresh: include refresh-token route (default true).

  • typescript: emit TypeScript (default) or JavaScript.

Returns: { framework, scopes, code: string, env_vars_required: string[], notes: string[] }

The emitted code uses placeholders:

  • LINE_LOGIN_CHANNEL_ID

  • LINE_LOGIN_CHANNEL_SECRET

  • REDIRECT_URI

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameworkNoexpress
scopesNo
with_pkceNoUse PKCE S256 (recommended).
with_friendship_checkNo
with_refreshNo
typescriptNo
Behavior5/5

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

Annotations indicate readOnlyHint=true, idempotentHint=true, consistent with generating code. The description adds detail: it returns code with placeholders, lists required env vars, and explains the scaffold components. No contradiction with annotations.

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?

The description is front-loaded with a clear value proposition and uses a structured Args/Returns format. Every sentence adds value, with no fluff.

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?

Given no output schema, the description explains the return structure (framework, scopes, code, env_vars_required, notes) and placeholders, covering all needed context for a tool that generates code.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite only 17% schema coverage, the description's Args section details each parameter (framework, scopes, with_pkce, with_friendship_check, with_refresh, typescript) with defaults and options, adding significant meaning beyond the minimal 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?

The description clearly states the tool generates a LINE Login OAuth 2.1 flow scaffold, listing the steps (authorize URL, token exchange, verify, userinfo, optional refresh, friendship check) and notes it replaces 10 separate tool calls. This is a specific verb-resource combination that distinguishes it from sibling tools.

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?

The description explicitly says 'This replaces 10 separate OAuth tool calls with one paste-ready code block — Claude Code's superpower', indicating when to use. It does not explicitly state when not to use, but the usage context is clear and no alternatives are needed given siblings are unrelated.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wasintoh/line-oa-mcp-ultimate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server