Skip to main content
Glama
initMAX

Zabbix MCP Server

user_checkauthentication

Read-only

Verify whether a Zabbix session id is still valid and return the authenticated user's details. Use it to confirm a login session before making further API calls.

Instructions

Check whether a session is still valid. Returns the authenticated user's details if so. Requires auth_sessionid to be set to a session id (typically from a prior user.login); the configured server credentials (api_token or username/password) cannot validate against the session table.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serverNoTarget Zabbix server. Available: default. Defaults to 'default' if omitted.
raw_jsonNoStrips the security disclaimer preamble from the response so it is pure JSON. Default: false. Requires the bearer token to have 'allow_raw_json' explicitly enabled by an operator in the admin portal - tokens without that policy receive a PolicyError instead. WARNING: setting true bypasses the prompt-injection mitigation marker that wraps untrusted Zabbix data (host names, item descriptions, problem text). LLM clients (Claude, GPT, Cursor, ...) should leave this false; only programmatic non-LLM consumers (Python scripts, n8n workflows that json.loads the result) should set true.
sessionidNoSession id whose validity should be checked. If omitted, the auth_sessionid (the calling session) is checked instead.
auth_sessionidYesSession id from a prior user.login call. The MCP wrapper passes it as the request's auth field; the call validates exactly this session id.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.41.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish readOnlyHint and openWorldHint, so the safety profile is covered. The description adds real value beyond that by disclosing the auth prerequisite (a session id, not server credentials) and that a successful check returns the user's details, which the annotations do not convey.

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?

Three short sentences, front-loaded with the core purpose and return value, followed by the prerequisite. Efficient and free of padding, though the RST double-backtick formatting is slightly noisy.

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?

An output schema exists, so return values need not be explained, and annotations cover the read-only nature. The description supplies the key prerequisite and credential caveat, leaving little an agent needs missing for correct invocation.

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 coverage is 100%, so the schema already documents all four parameters, including the sessionid-vs-auth_sessionid distinction and the raw_json warning. The description reinforces that auth_sessionid validates exactly that session, but adds little syntax or format detail beyond the schema, making the baseline 3 appropriate.

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 ('Check whether a session is still valid') and adds the return behavior (authenticated user's details). It also implicitly separates itself from user.login by citing it as the source of the session id, though it does not name a sibling it must not be confused with.

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?

Gives clear context for use: auth_sessionid must come from a prior user.login, and it warns that configured server credentials (api_token or username/password) cannot validate against the session table. It lacks an explicit 'use this instead of X' routing statement, so it falls short of a 5.

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