Skip to main content
Glama

provider_logout_current_session

DestructiveIdempotent

Logs out and terminates the current authenticated session using credentials from the Authorization header, ending access for the supplied session token.

Instructions

Logout current session Logs out and terminates the current session identified by credentials supplied using the Authorization header DELETE /cloudapi/1.0.0/sessions/current

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is known. The description adds real context that the target session is derived from the Authorization header credentials, but says nothing about what is invalidated (tokens, service accounts) or what errors follow if the session is already gone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The leading line 'Logout current session' is a redundant restatement of the name and annotation title before the actual sentence, which adds no information. The remaining two lines are tight and front-load the termination semantics.

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, fully annotated, no-output-schema tool, the description covers purpose, scope (current session only) and the credential source, which is the one thing an agent could get wrong. Only the post-logout consequences are missing.

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 no parameter space for the description to explain; the baseline for a no-arg tool applies. The description correctly notes the implicit input is the Authorization header rather than a body field.

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: logs out and terminates the CURRENT session, which distinguishes it from the many delete-by-id siblings such as provider_delete_1_0_0_sessions_by_id. The HTTP path reinforces the scope, though no sibling is named explicitly.

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: an agent can infer this ends the caller's own session. There is no statement of when to prefer it over provider_delete_1_0_0_sessions_by_id (arbitrary session) or identity_post_auth_logout, and no mention that the caller's credentials stop working afterwards.

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