Skip to main content
Glama

Log in to Scratch

scratch_login

Authenticate with a Scratch account to let the server open, edit, and publish your projects. Credentials default to environment variables if not provided.

Instructions

Authenticate with a scratch.mit.edu account so the server can open your projects from the website and (with your confirmation) save edits back and publish them. Credentials default to the SCRATCH_USER / SCRATCH_PASS environment variables if omitted. The session is kept in memory for this server process only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
passwordNoScratch password. Defaults to $SCRATCH_PASS.
usernameNoScratch username. Defaults to $SCRATCH_USER.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that the session is kept in memory only for this server process, that credentials default to environment variables, and that saving/publishing require confirmation. It doesn't mention potential rate limits or security nuances, but for a login tool this is a solid level of transparency.

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?

Two sentences with zero fluff. The core purpose and effect are front-loaded, followed by the env-var fallback and session lifetime. Every part earns its place.

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 login tool with two optional parameters fully covered by the schema, the description is complete. It explains the consequences (session in memory) and the confirmation behavior. One minor gap: it doesn't explicitly state that login must occur before other tool calls, but that is strongly implied by the purpose statement.

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?

The input schema already fully describes both parameters, including their env-var defaults. The description restates the defaults but adds no new syntax or meaning beyond the schema. Per the rubric, with 100% schema coverage this is a baseline 3.

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 action (authenticate) and the target resource (scratch.mit.edu account), and explains why it matters (open projects, save edits, publish). It distinguishes itself from the many project/sprites tools by focusing solely on authentication, so an agent can easily tell this is the login step.

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?

It implies that login is a prerequisite for other server operations (opening projects, saving, publishing) and explains the confirmation flow for writes. It doesn't explicitly say 'use before other tools' or list alternatives, but given the sibling list has no other auth tool, this is clear enough. The env-var default is a handy usage note.

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/AstroBlocksMod/ScratchMCP'

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