Skip to main content
Glama
rollecode

Audiobookshelf MCP server

by rollecode

create_sessions_batch_delete

Idempotent

Delete multiple playback sessions in one request to clean up listening history. Use this batch endpoint to remove selected session records efficiently from your Audiobookshelf server.

Instructions

Create or act on batch delete.

POST /api/sessions/batch/delete

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2/5.0
Behavior2/5

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

Annotations indicate idempotentHint=true and destructiveHint=false, but the description says 'batch delete' which implies destruction. The description does not clarify the discrepancy or explain what 'act on' means. It also doesn't disclose side effects, whether it's a soft delete, or what happens to related resources. The description adds little beyond the annotations and may even conflict with the destructiveHint=false annotation.

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 description is short and front-loaded with the endpoint, but it wastes the first sentence on a vague phrase 'Create or act on batch delete' that repeats the tool name. The Args section is minimal and the guidance to read the schema is useful but could be more concise. It's not bloated, but it's under-specified.

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 the tool has a required body parameter with no schema details, an output schema, and no clear behavioral description, the description is incomplete. The agent cannot correctly construct the request body without external lookups. The sibling list shows many similar delete tools, and the description doesn't help disambiguate. The output schema exists but the description doesn't explain what the response contains or how to interpret success.

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

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description only says 'body: Request payload' with no field details. The schema has additionalProperties: true, so the agent has no idea what fields to include. The description's advice to read the GET or /schema endpoint is a workaround, not actual parameter semantics. This is a significant gap for a tool with a required body parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description says 'Create or act on batch delete' and includes the endpoint POST /api/sessions/batch/delete. The verb 'Create or act on' is vague and tautological with the tool name; it doesn't clearly state that this tool deletes multiple sessions. It also doesn't distinguish it from the many sibling delete tools like delete_sessions_by_id or create_items_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 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 only says to read the matching GET or /schema endpoint first, which is generic advice. There is no mention of when batch delete is appropriate, what the body should contain, or how it differs from delete_sessions_by_id.

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