Skip to main content
Glama

Get server version

version

Check the current version of the PDFDancer MCP server to verify software compatibility and ensure access to updated documentation tools.

Instructions

Returns the current version of the pdfdancer-mcp server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The async handler function for the 'version' tool. It retrieves the version from package.json (via the global 'pkg' variable) and formats it into both text content and structured JSON output for the MCP response.
    async () => {
        const version = pkg.version ?? 'unknown';
        return {
            content: [
                {
                    type: 'text' as const,
                    text: `pdfdancer-mcp version: ${version}`
                }
            ],
            structuredContent: {version}
        };
    }
  • src/index.ts:215-233 (registration)
    Registers the 'version' tool on the MCP server instance, specifying the tool name, descriptive metadata, and the handler function.
    server.registerTool(
        'version',
        {
            title: 'Get server version',
            description: 'Returns the current version of the pdfdancer-mcp server.'
        },
        async () => {
            const version = pkg.version ?? 'unknown';
            return {
                content: [
                    {
                        type: 'text' as const,
                        text: `pdfdancer-mcp version: ${version}`
                    }
                ],
                structuredContent: {version}
            };
        }
    );
  • The tool's schema metadata, including human-readable title and description used by MCP clients to understand and invoke the tool. No input parameters are defined.
    {
        title: 'Get server version',
        description: 'Returns the current version of the pdfdancer-mcp server.'
    },
  • Helper code that dynamically requires the package.json file and prepares the 'pkg' object from which the tool extracts the version string.
    const require = createRequire(import.meta.url);
    const packageJson = require('../package.json');
    const pkg = packageJson as { version?: string };
Behavior3/5

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

No annotations are provided, so the description carries full burden. It states the tool returns the server version, which implies a read-only, non-destructive operation, but does not disclose behavioral traits like rate limits, authentication needs, or response format. The description adds basic context but lacks detailed behavioral information.

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 that front-loads the purpose with zero waste. It is appropriately sized for a simple tool with no parameters, earning its place by succinctly conveying the tool's function.

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?

Given the tool's simplicity (0 parameters, no annotations, no output schema), the description is complete enough for basic use. It explains what the tool does, but could be enhanced with details on return format or error handling to achieve a perfect score, though it's adequate for this low-complexity context.

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 has 0 parameters, with 100% schema description coverage (empty schema). The description does not need to add parameter semantics, so a baseline score of 4 is appropriate as it efficiently handles the lack of parameters without unnecessary detail.

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 specific action ('Returns') and resource ('current version of the pdfdancer-mcp server'), distinguishing it from sibling tools like get-docs, help, and search-docs which handle documentation rather than server metadata.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context (checking server version), but does not explicitly state when to use this tool versus alternatives or any exclusions. It's clear from the purpose that this is for version queries, but no direct guidance on alternatives or prerequisites is provided.

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/MenschMachine/pdfdancer-mcp'

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