Skip to main content
Glama

gradescope_login

Read-only

Sign in to Gradescope or refresh an expired session, using a saved account when multiple exist. Opens the university sign-in page in your browser or returns the terminal sign-in command.

Instructions

Sign in to Gradescope or refresh an expired session. Call this whenever a Gradescope tool says the session expired or you are not signed in. Each saved account has its own sign-in; with several, pass account (the user is asked when you leave it out). It first refreshes silently (a few seconds, no window). If the user has to sign in, it opens the University sign-in page in their default browser: tell the user a browser window opened and ask them to sign in there. If the result says waitingForUser, call again after the user says they are done. On a machine with no display it returns the terminal command the user should run to sign in there. Never ask the user for their password; they type it in the browser or their own terminal.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gradescope_login"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoSaved account to use (see minerva_list_accounts). Only needed when several accounts are saved and the user has not chosen one yet.
waitSecondsNoHow long to wait for the sign-in to finish before returning (default 45, which fits the 60 s default tool timeout of Codex)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds the real behavioral picture: a silent refresh attempt first, a browser window opening to the University sign-in page, a waitingForUser polling loop, and a headless-machine fallback returning a terminal command. It also sets a security boundary ('Never ask the user for their password'). Only the exact result shape beyond waitingForUser is left implicit.

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?

Front-loaded with the core action and trigger, then proceeds to mechanics and failure modes in a logical order. It is on the long side at eight sentences, but nearly every one carries an actionable instruction; the browser-window instruction could be tightened slightly.

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?

For a two-parameter auth tool with no output schema, the description covers the happy path, the interactive path, the retry condition, and the no-display fallback. Nothing an agent needs in order to call it and handle its result is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning: it explains that the user is asked when account is omitted, which is interaction behavior the schema does not state. waitSeconds is left to the schema, whose default note is already detailed.

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?

States a specific verb and resource ('Sign in to Gradescope or refresh an expired session'), and the resource name alone separates it from the Minerva siblings such as minerva_login. An agent can tell exactly what this does without opening the schema.

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

Usage Guidelines5/5

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

Gives an explicit trigger ('whenever a Gradescope tool says the session expired or you are not signed in'), a re-invocation rule ('if the result says waitingForUser, call again after the user says they are done'), and account-selection guidance including the fallback of letting the user choose. Only a when-not rule is absent, and there is no plausible alternative tool to exclude.

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