Skip to main content
Glama
gabrielmrojas

PDF Processor Server

get_resource_base64

Retrieve the base64-encoded content of a file from the temporary directory to use in PDF processing tasks.

Instructions

Return base64 for a file within the temp directory only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It indicates a read operation ('Return base64') and a scope restriction ('temp directory only'), but it does not describe path resolution, error behavior for missing files, or the exact base64 output format. These omissions leave significant behavioral aspects undisclosed.

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 a single clear sentence with no wasted words. It conveys the action, resource, and scope efficiently, making it easy to parse quickly.

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 simple tool with one parameter and an output schema (as signaled), the description covers the essential operation and scope. The missing details about path format and error handling are relatively minor for a getter tool, though they would improve completeness. Overall, it is adequate for basic invocation but not exhaustive.

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?

The schema has no description for the file_path parameter (0% coverage), so the description must compensate. It adds semantic value by stating that the parameter represents a file within the temp directory, which is a meaningful constraint beyond the bare string type. However, it does not clarify whether the path should be relative or absolute, or whether subdirectories are allowed, leaving some ambiguity.

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 tool's function: returning base64 for a file, with an explicit scope restriction to the temp directory. This distinguishes it from sibling tools like upload_file_base64 (which uploads) and list_temp_resources (which lists). The verb 'Return' and resource 'base64' are specific and non-tautological.

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?

There is no guidance on when to use this tool versus alternatives. The temp-directory-only constraint provides context but does not explain when to prefer this over other resource-access tools, nor does it mention exclusions or prerequisites. Essentially, it lacks any when-to-use or when-not-to-use instructions.

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/gabrielmrojas/pdf_mcp_server'

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