Skip to main content
Glama

oauth_login

Authenticate or register with a Google OIDC ID token to access GDEX Trading. If the wallet lacks a linked email, associate one first, then retry login.

Instructions

Log in or sign up using a Google ID token. Google OIDC only — there is no Apple/GitHub branch. If the wallet has no associated email yet, the backend returns 404 with internal code 108 and the caller must invoke associate_email first (using the same idToken) before retrying.

Input Schema

NameRequiredDescriptionDefault
chainIdNoOptional chain id hint for wallet resolution.
idTokenYesGoogle-issued OIDC ID token (JWT).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.11.3

TDQS

A4/5.0
Behavior4/5

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

Annotations cover the safety profile (not read-only, open-world, non-destructive), and the description adds a non-obvious failure mode with a specific HTTP status and internal error code plus remediation. That is meaningful behavioral disclosure beyond the annotations, though it says nothing about token lifetime, response payload, or rate limits.

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 sentences, front-loaded with the action, then the scope constraint, then the edge case. Every sentence carries distinct, actionable information with no filler.

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 two-parameter auth tool with no output schema, the description covers the credential type, the provider limitation, and the main recovery path. It leaves the success response shape and token persistence unstated, but nothing critical to correct invocation is missing.

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 both parameters are documented in-schema, so the schema already carries the semantics. The description only adds that the same idToken is reused for associate_email; baseline 3 is appropriate.

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?

States a specific verb+resource ('log in or sign up') and the credential type (Google ID token), plus an explicit scope limitation ('Google OIDC only — no Apple/GitHub branch'). It doesn't explicitly differentiate itself from the sibling auth_login or managed_sign_in, so it stops short of a 5.

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?

Gives a concrete conditional flow: on 404/internal code 108, call associate_email first with the same idToken before retrying. That is real when-to-use guidance. It does not, however, say when to pick this over auth_login or managed_sign_in.

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

Deploy Server

Other Tools