Skip to main content
Glama

login

Authenticate to a CTFd account with a username and password, creating an in-memory session cookie so AI tools can access challenges and submit flags without exposing the password.

Instructions

Log in to CTFd with a username and password (kept in memory only).

Creates a session cookie; the password is never returned.

Args: username: CTFd account name. password: CTFd account password.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
passwordYes
usernameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose useful traits: the password is kept in memory only, a session cookie is created, and the password is never returned. However, it says nothing about failure modes, error handling, or whether the session persists.

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 action and key security behavior, followed by a short Args block. Efficient overall, though the Args lines add little beyond the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need not be explained. The description covers purpose and the security posture adequately, but omits when to prefer this over the other auth siblings, leaving a gap for an auth-related 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 description coverage is 0%, so the description must compensate, and it does map both params (username = CTFd account name, password = CTFd account password). The added meaning is minimal and largely restates the parameter names.

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 and resource ('Log in to CTFd') and adds the security detail that credentials are kept in memory only. An agent can tell this is the authentication step, though it is not explicitly distinguished from siblings like set_token or set_cookie that also establish auth.

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

Usage Guidelines2/5

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

No guidance on when to use login versus the sibling auth tools (set_token, set_cookie, auth_status). Usage is only implied by the name; there are no exclusions or preconditions stated.

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