Skip to main content
Glama

Get Versions

get_version
Read-onlyIdempotent

Retrieves the MCP server build and connected MantisBT version in one response, optionally comparing MantisBT with the current GitHub release to report update status.

Instructions

Return the version of this mantisbt-mcp-server and of the connected MantisBT installation in one response: { mcp_server: { version, commit?, built_at? }, mantis: { installed_version, latest_version?, status?, github_note? } }

mcp_server describes the running build: version ends in "-dev" unless it is a published release; commit is the short hash it was built from ("-dirty" with uncommitted changes), built_at the ISO-8601 build time.

The MantisBT version is read from the X-Mantis-Version response header. With check_latest (default: true) it is compared against the latest MantisBT release on GitHub (outbound HTTPS request, up to 5 seconds); status is "up-to-date", "update-available", "newer-than-release" or "unknown". If MantisBT cannot be reached, mantis contains "error" instead and mcp_server is still returned.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
check_latestNoWhether to fetch the latest MantisBT release from GitHub and compare (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.15.0

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already establish read-only and idempotent behavior, but the description adds substantial context: output shape, version suffix semantics, commit/build-time fields, header source, an outbound HTTPS call with up to a 5-second delay, status values, and error fallback behavior. This is exactly the behavioral detail an agent needs 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 front-loaded with purpose and output shape, then explains build-version fields, MantisBT version retrieval, network behavior, statuses, and error fallback. The additional length is justified because no output schema exists and each sentence adds operational meaning.

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?

Despite having no output schema, the description fully documents the return structure and field semantics, including the fallback error shape when MantisBT is unreachable. With only one optional parameter and clear annotations, no critical calling context is missing.

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 schema already documents check_latest and its default, so baseline would be 3. The description adds meaningful semantics: check_latest triggers an outbound GitHub HTTPS request with a 5-second maximum and produces statuses such as 'up-to-date', 'update-available', 'newer-than-release', or 'unknown'.

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 specific verb and resource: returns the version of the MCP server and connected MantisBT installation in one response. It clearly scopes away from project-version tools by naming the server and installation, but it does not explicitly distinguish itself from sibling tools such as get_mantis_version and get_mcp_version.

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 phrase 'in one response' implies this is useful when both versions are needed together, and check_latest behavior is explained. However, there is no explicit guidance on when to use this instead of get_mantis_version or get_mcp_version, nor when to disable check_latest.

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