Skip to main content
Glama

logout

Idempotent

End the current API session and remove the session token from InvAPI. The next API call will sign in again using the API key.

Instructions

End the current API session (auth/logout): session token is removed from InvAPI. On the next call the client will sign in again with the API key.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses the actual mechanism: the session token is removed from InvAPI, and re-authentication happens automatically on the next call. This clarifies that the operation mutates client session state but is self-recovering, which is exactly the kind of context annotations cannot convey. It stops short of mentioning failure modes or permissions.

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?

Two tight sentences with no filler. The primary effect is front-loaded, and the recovery behavior follows as supporting detail.

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?

For a zero-parameter tool with no output schema, the description covers the essential effect and the post-call recovery path. The only unaddressed area is error behavior (e.g., logging out with no active session), which is minor for a tool this simple.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline of 4 applies. No parameter information is missing or misleading.

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?

States a specific verb and resource: 'End the current API session' with the underlying endpoint '(auth/logout)'. No sibling in the list performs session termination, so the agent can identify it immediately and unambiguously.

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?

The description makes the use case clear (terminate the session) and explains the follow-on behavior that informs the decision: 'On the next call the client will sign in again with the API key.' There are no alternative session tools to disambiguate against, so no explicit exclusions are needed.

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

Deploy Server

Other Tools