Skip to main content
Glama

auth_with_password

Authenticate users or superusers against a PocketBase backend using email and password, with an optional collection name to target regular user or admin auth.

Instructions

Authenticate a user or superuser with email and password.

Input Schema

NameRequiredDescriptionDefault
emailYesThe user's email address.
passwordYesThe user's password.
collectionNoThe auth collection name. Defaults to '_superusers' for admin auth. Pass a custom collection name (e.g. 'users') for regular user auth._superusers

Output Schema

NameRequiredDescriptionDefault
tokenYesJWT authentication token.
recordYesThe authenticated user record. May include additional custom fields.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the entire behavioral burden, yet it discloses nothing beyond the bare action. It does not say whether a token or session is issued, how failed credentials are reported, or whether repeated failed attempts are throttled. The presence of an output schema removes the need to describe return values, but the security-sensitive behavior of an auth operation remains undisclosed.

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?

A single front-loaded sentence with no filler, and the core action leads. It is efficient, though its brevity edges toward under-specification rather than optimal density.

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?

The input schema is fully documented and an output schema exists, so the essential contract is discoverable. However, with no annotations and no behavioral content, the definition leaves a security-critical auth tool's side effects and failure modes unexplained, which is a meaningful gap for this complexity level.

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 100%, so all three parameters are already documented, including the collection default of '_superusers' and the custom-collection case. The phrase 'user or superuser' loosely maps to the collection parameter but adds no syntax or format detail beyond the schema, so the baseline of 3 applies.

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 ('Authenticate a user or superuser') plus the credential mechanisms (email and password). It distinguishes the two subject types (user vs superuser), but does not differentiate itself from related siblings such as get_auth_store, which an agent could plausibly confuse with authentication.

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 implied only: the description makes clear this is the way to authenticate, but there is no explicit when-to-use guidance, no prerequisites, and no mention of alternatives like get_auth_store or of what to do after authenticating.

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