Skip to main content
Glama

Login to Todo System

todo_login
Idempotent

Authenticate as a specified user to access the todo system and obtain role-based permissions. Returns user profile details for managing tasks and projects according to that role.

Instructions

Login as a user to access the todo system.

Args:

  • user_id (string): The user ID to login as (e.g., 'admin1', 'manager1', 'dev1', 'dev2', 'viewer1')

Returns: User object with id, name, email, avatar, and role.

Available default users:

  • admin1: Admin (full access)

  • manager1: Project Manager (manage projects and assign tasks)

  • dev1, dev2: Developers (manage own tasks)

  • viewer1: Viewer (read-only)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "user_id": "<user_id>"
    },
    "name": "todo_login"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYesUser ID to login as

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare non-read-only, idempotent, non-destructive behavior, so the bar is lower. The description adds the return shape (id, name, email, avatar, role) and the role-based access tiers, but omits whether the call establishes session state globally, overwrites a prior login, or fails for unknown IDs.

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?

Purpose is front-loaded in one sentence, followed by args, return value, and a compact user table. Every section earns its place and nothing is repeated from the schema verbatim.

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?

With no output schema, the description compensates by describing the returned user object's fields. For a single-parameter tool this is nearly complete; the remaining gap is session semantics (persistence, re-login behavior) which matters for an auth-gating call.

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% for the single user_id parameter, so the baseline is 3. The description raises it by enumerating valid IDs (admin1, manager1, dev1, dev2, viewer1) with their permission levels, effectively supplying enum-like semantics the schema lacks.

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 ('Login as a user to access the todo system'), which clearly separates it from todo_logout and todo_current_user. It doesn't name those siblings explicitly, but the operation is unambiguous.

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

Usage Guidelines3/5

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

Usage is only implied — the agent can infer that login precedes other operations, but the description never says when to call this versus todo_current_user or todo_logout, nor what happens if a session already exists. The list of default users is helpful context but not when-to-use guidance.

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