Skip to main content
Glama
NikhilBelwate

pdf-merger-mcp-server

Remove File from Session

pdf_merger_remove_file
DestructiveIdempotent

Remove a specified PDF from an upload session. Permanently deletes the file from cloud storage using session and file IDs.

Instructions

Remove a single PDF file from an upload session on the PDF Merger service.

The file is permanently deleted from cloud storage. This operation cannot be undone.

Args:

  • session_id (string): UUID of the session containing the file.

  • file_id (string): UUID of the file to remove.

Returns (JSON): { "success": true }

Error Handling:

  • Session not found → 404 error

  • File not found in session → 404 error

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYesID of the file to remove from the session.
session_idYesSession ID that contains the file.
Behavior5/5

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

Annotations mark the tool as destructive (destructiveHint: true), but the description strengthens this by stating the file is permanently deleted from cloud storage and cannot be undone. It also documents error handling (404 for missing session/file), providing additional behavioral detail beyond the annotations.

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?

The description is well-structured with clear sections for purpose, consequence, arguments, return value, and errors. Each sentence provides necessary information without padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple destructive 2-parameter tool, the description covers the operation's effect (permanent deletion), the exact return JSON, and error conditions. No output schema is present, but the description compensates by explicitly specifying the return value.

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?

Both parameters (session_id and file_id) have full schema descriptions, and the description's Args section essentially restates the schema. No additional syntax, precedence, or format details are provided, so the description adds no semantic value beyond the schema.

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?

The description clearly states the action: remove a single PDF file from an upload session. The verb 'Remove' and resource 'PDF file from an upload session' are specific and distinct from sibling tools that upload, merge, or generate download links.

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 the tool is for deleting a file from a session but does not explicitly state when to choose it over alternatives or when not to use it. No exclusion or alternative tool is mentioned, leaving usage context implicit rather than explicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NikhilBelwate/pdf-merger-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server