Skip to main content
Glama

run_as_user

Authenticate as a different user for the current session using network credentials. Provide username, password, and agent ID to switch user context.

Instructions

Attempt to authenticate as another user (network calls only) for the current session.

Args:
    username: Username of network account to use
    password: Password of network account to use

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYes
passwordYes
usernameYes
Behavior2/5

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

With no annotations, the description must fully disclose behavior, but it only notes that authentication is an 'attempt' and is 'for the current session.' It omits side effects, required permissions, failure modes, and the impact on subsequent operations. The phrase 'network calls only' is ambiguous and does not clarify the tool's behavior.

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?

The description is brief and front-loaded, with a single clear sentence followed by an args list. Explanations for username and password are useful and avoid fluff. However, the args section is somewhat redundant with the schema, and the missing agent_id is a structural gap.

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

Completeness2/5

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

Given three required parameters, no output schema, and no annotations, the description is insufficient. It fails to clarify the role of agent_id, the nature of 'network calls,' or the authentication's effect on the current session. For a security-sensitive tool, this lack of context is a significant gap.

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

Parameters2/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 for all three required parameters. It explains username and password meaningfully, but completely fails to mention agent_id, a required field. This leaves a critical parameter undocumented, offering only partial compensation.

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 tool's purpose with a specific verb and resource: 'Attempt to authenticate as another user.' It distinguishes itself from sibling tools like run_shell_command or ad_recon by focusing on authentication rather than execution or reconnaissance. The qualifier '(network calls only)' adds further specificity.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention prerequisites, recommended contexts, or any exclusions. No sibling tools are referenced, and the 'network calls only' hint is too vague to serve as a usage guideline.

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/johanrobbenites/MCP-IA-for-Offensive-Security'

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