Skip to main content
Glama
rollbar

Rollbar MCP Server

Official
by rollbar

get-deployments

Retrieve deployment data from Rollbar to monitor release history and track changes across projects.

Instructions

Get deployments data from Rollbar

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitYesNumber of Rollbar deployments to retrieve
projectNoProject name (optional when only one project is configured)

Implementation Reference

  • The handler function for the "get-deployments" tool, which executes the request to the Rollbar API.
    async ({ limit, project }) => {
      const { token, apiBase } = resolveProject(project);
      const deploysUrl = `${apiBase}/deploys?limit=${limit}`;
      const deploysResponse = await makeRollbarRequest<
        RollbarApiResponse<RollbarDeployResponse>
      >(deploysUrl, "get-deployments", token);
    
      if (deploysResponse.err !== 0) {
        const errorMessage =
          deploysResponse.message ||
          `Unknown error (code: ${deploysResponse.err})`;
        throw new Error(`Rollbar API returned error: ${errorMessage}`);
      }
    
      const deployments = deploysResponse.result;
    
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(deployments),
          },
        ],
      };
    },
  • Registration of the "get-deployments" tool with the MCP server.
    export function registerGetDeploymentsTool(server: McpServer) {
      server.tool(
        "get-deployments",
        "Get deployments data from Rollbar",
        {
          limit: z
            .number()
            .int()
            .describe("Number of Rollbar deployments to retrieve"),
          project: buildProjectParam(),
        },
        async ({ limit, project }) => {
          const { token, apiBase } = resolveProject(project);
          const deploysUrl = `${apiBase}/deploys?limit=${limit}`;
          const deploysResponse = await makeRollbarRequest<
            RollbarApiResponse<RollbarDeployResponse>
          >(deploysUrl, "get-deployments", token);
    
          if (deploysResponse.err !== 0) {
            const errorMessage =
              deploysResponse.message ||
              `Unknown error (code: ${deploysResponse.err})`;
            throw new Error(`Rollbar API returned error: ${errorMessage}`);
          }
    
          const deployments = deploysResponse.result;
    
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(deployments),
              },
            ],
          };
        },
      );
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 implies a read-only operation via 'Get' but does not explicitly confirm safety, mention pagination behavior despite the limit parameter, describe the return format, or note any rate limits or auth requirements.

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 description is a single, efficient sentence with no redundancy or filler. However, it is arguably too minimal, lacking the additional sentences needed to address behavioral transparency or usage guidelines.

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

Completeness2/5

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

Given the presence of numerous sibling tools dealing with different Rollbar entities (items, projects, versions), the description fails to clarify what deployments are or how they relate to these other resources. With no output schema and no annotations, this minimal description leaves significant gaps in contextual understanding.

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?

Schema description coverage is 100%, with limit and project adequately documented in the schema. The description adds no parameter-specific context, but this is acceptable given the complete schema coverage establishes the baseline of 3.

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 clearly states the verb (Get) and resource (deployments data) and identifies the external system (Rollbar). However, it fails to differentiate from siblings like get-version or list-items, leaving ambiguity about what constitutes a 'deployment' versus other Rollbar entities.

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?

No guidance provided on when to use this tool versus alternatives like get-version or list-projects. The optional 'project' parameter lacks usage guidance (e.g., when to omit it), and there are no stated prerequisites 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