Skip to main content
Glama
rollbar

Rollbar MCP Server

Official
by rollbar

get-version

Retrieve version details for a Rollbar project to track deployments and monitor error occurrences across different environments.

Instructions

Get version details for a Rollbar project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
versionNoVersion string (e.g. git sha)
environmentNoEnvironment name (default: production)production
projectNoProject name (optional when only one project is configured)

Implementation Reference

  • The asynchronous handler function that processes the 'get-version' tool request, calls the Rollbar API, and returns the version data.
    async ({ version, environment, project }) => {
      const { token, apiBase } = resolveProject(project);
      const versionsUrl = `${apiBase}/versions/${version}?environment=${environment}`;
      const versionsResponse = await makeRollbarRequest<
        RollbarApiResponse<RollbarVersionsResponse>
      >(versionsUrl, "get-version", token);
    
      if (versionsResponse.err !== 0) {
        const errorMessage =
          versionsResponse.message ||
          `Unknown error (code: ${versionsResponse.err})`;
        throw new Error(`Rollbar API returned error: ${errorMessage}`);
      }
    
      const versionData = versionsResponse.result;
    
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(versionData),
          },
        ],
      };
    },
  • The registration function that defines the 'get-version' tool schema (input arguments) and associates it with the handler.
    export function registerGetVersionTool(server: McpServer) {
      server.tool(
        "get-version",
        "Get version details for a Rollbar project",
        {
          version: z.coerce.string().describe("Version string (e.g. git sha)"),
          environment: z.coerce
            .string()
            .default("production")
            .describe("Environment name (default: production)"),
          project: buildProjectParam(),
        },
        async ({ version, environment, project }) => {
          const { token, apiBase } = resolveProject(project);
          const versionsUrl = `${apiBase}/versions/${version}?environment=${environment}`;
          const versionsResponse = await makeRollbarRequest<
            RollbarApiResponse<RollbarVersionsResponse>
          >(versionsUrl, "get-version", token);
    
          if (versionsResponse.err !== 0) {
            const errorMessage =
              versionsResponse.message ||
              `Unknown error (code: ${versionsResponse.err})`;
            throw new Error(`Rollbar API returned error: ${errorMessage}`);
          }
    
          const versionData = versionsResponse.result;
    
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(versionData),
              },
            ],
          };
        },
      );
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It fails to indicate whether this is a safe read operation, what happens if the version is not found, rate limits, or what specific details are returned. The phrase 'Get version details' implies data retrieval but lacks explicit safety or behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence wastes no words and immediately states the core function. However, given the lack of annotations and output schema, the description is arguably under-sized for the tool's complexity, though the sentence itself is efficiently constructed.

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

Completeness3/5

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

For a tool with three simple string parameters and full schema coverage, the description is minimally adequate. However, with no output schema provided, the description should ideally characterize the returned version details (e.g., deployment metadata, commit info). The absence of this information leaves a gap in contextual completeness.

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?

With 100% schema description coverage, the baseline score is 3. The description adds no additional parameter context (e.g., valid formats for version strings, environment constraints), but the schema adequately documents all three parameters including the optional nature of 'project' and default for 'environment'.

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 uses a clear verb ('Get') and identifies the resource ('version details for a Rollbar project'). However, it does not distinguish from the sibling tool 'get-deployments' or clarify what constitutes a 'version' in the Rollbar context (e.g., code deployment vs. API version).

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 like 'get-deployments', nor does it mention prerequisites such as project configuration requirements. Zero guidance on selection criteria or exclusions.

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/rollbar/rollbar-mcp-server'

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