Skip to main content
Glama
rollecode

Audiobookshelf MCP server

by rollecode

delete_sessions_by_id

DestructiveIdempotent

Delete an API session by its ID to revoke access and terminate the user's authenticated session.

Instructions

Delete api sessions.

DELETE /api/sessions/{id}

Args: id: Path parameter. body: Request payload. Read the matching GET or the /schema endpoint first to see the fields this resource expects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
bodyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description doesn't need to restate those. It adds the instruction to read the GET or /schema endpoint first, which hints at the need to understand the resource before deletion. However, it doesn't disclose consequences like cascading effects or whether deletion is permanent, beyond what annotations imply.

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 short and front-loaded with the core action. The endpoint and parameter list are immediately useful. The body guidance is a bit vague but the overall structure is efficient.

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?

For a delete operation with annotations covering destructiveness and idempotency, the description is mostly adequate. The main gap is the body parameter semantics, which is deferred to another endpoint. Given the output schema exists and the operation is simple, this is acceptable but not complete.

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. It names 'id' as a path parameter and 'body' as a request payload, but provides no detail about what the body should contain or what fields are expected. The instruction to read the GET or /schema endpoint is a workaround, not actual parameter semantics.

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?

The description states a clear verb and resource: 'Delete api sessions' and includes the HTTP endpoint DELETE /api/sessions/{id}. It distinguishes itself from sibling delete tools by specifying sessions, though it doesn't explicitly contrast with delete_me_sessions_by_id or create_sessions_batch_delete.

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?

The description implies usage by naming the endpoint and parameters, but it doesn't explicitly state when to use this tool versus alternatives like delete_me_sessions_by_id or create_sessions_batch_delete. It gives a hint to read the matching GET or /schema endpoint first, which is useful context but not a full when/when-not guide.

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