Skip to main content
Glama

Log in to agy (Google auth)

agy_login

Authenticates with agy via Google OAuth, opening a terminal if required. Returns login status, email, and whether already logged in.

Instructions

Ensure agy is logged in. If already authenticated, returns immediately.

Otherwise opens a terminal window running agy so you can complete Google sign-in in your browser (agy drives the OAuth flow itself), then polls agy's account store until a valid account appears and reports the signed-in email.

Args:

  • timeout_ms (number, default 180000): how long to wait for login to complete (10000..600000).

Returns JSON: { "logged_in": boolean, "email": string | null, "already": boolean, "message": string }.

  • already=true means agy was already logged in (no terminal opened).

  • logged_in=false with a message means the wait timed out (finish login and call agy_auth_status).

macOS only (opens Terminal.app). On other platforms, run agy yourself to log in, then use agy_auth_status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeout_msNoHow long to wait for login to complete before giving up, in ms (default 180000 = 3m).
Behavior5/5

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

Goes well beyond annotations by detailing side effects: opens terminal, runs agy, drives OAuth, polls account store, and reports signed-in email. Explains return fields (logged_in, email, already, message) and timeout behavior. 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is well-structured: begins with purpose, then process, args, returns, platform note. Each sentence adds value; no redundancy. Could be slightly more concise, but overall efficient and front-loaded.

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?

Completely covers all essential aspects: authentication flow, platform limitation, timeout handling, return format, and fallback instruction. Without an output schema, the description fully explains return values. No gaps for a single-parameter tool.

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 already fully describes timeout_ms with min, max, default, and description. Description restates the range and adds context 'how long to wait for login to complete', but adds minimal new information beyond what schema provides. With 100% schema coverage, baseline 3 is appropriate.

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?

Clearly states that the tool ensures agy is logged in, explaining the OAuth flow and distinguishing from sibling tool agy_auth_status which checks status. The verb 'log in' and resource 'agy' are specific and unambiguous.

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?

Provides clear context on when to use (to ensure login), what happens if already authenticated (returns immediately), and instructions for timeout scenario (finish login and call agy_auth_status). Also notes macOS exclusivity and alternative for other platforms. Lacks explicit 'when not to use' statement but overall guidance is strong.

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/yinjs/agyenvoy'

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