Skip to main content
Glama
env0

env0

Official
by env0

Search Deployments

search-deployments

Find recent deployments for an environment, filtered by status. Choose a deployment to debug its logs.

Instructions

Find recent deployments for an environment, optionally filtered by status. Use this to pick a deploymentLogId for follow-up debug via get-deployment-context.

Use when: user asks for deployment history, wants to find a failed deployment, or needs to pick among multiple recent deployments.

Do NOT use for the latest deployment alone — get-plan-logs or get-error-analysis already cover that without needing an ID.

Returns up to 10 deployments by default (raise limit to 25 max). Sorted newest-first. Each entry includes: id, status, type, queuedAt, startedAt, finishedAt, triggerName, comment, resourceCount, blueprintRevision, blueprintName, blueprintType, prNumber, gitMetadata, planSummary, failedCommand. Set hasMore=true means another page exists.

Prefer filtering via 'statuses' over paging with 'offset'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentIdYesThe ID of the environment to list deployments for
statusesNoComma-separated deployment statuses to filter by. Common values: SUCCESS, FAILURE, IN_PROGRESS, CANCELLED, ABORTED, WAITING_FOR_USER, TIMEOUT.
limitNoMaximum number of deployments to return. Defaults to 10, max 25.
offsetNoNumber of deployments to skip from the start (newest-first). Use sparingly — prefer filtering via `statuses` first. Helpful only when you need to dig past the most recent page.
Behavior4/5

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

Discloses default limit (10), max limit (25), sorting (newest-first), returned fields, and hasMore flag. No annotations provided, so description takes full burden; could add rate limits or auth requirements, but it's still thorough.

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?

Concise yet informative; front-loaded with main purpose and usage. Every sentence adds value without redundancy.

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?

Provides complete context for a list operation: covers filtering, pagination, returned fields, and guidance for follow-up actions (picking deploymentLogId). Sufficient for agent to select and invoke correctly.

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?

Schema covers all 4 parameters with descriptions. Description adds value by recommending filtering via 'statuses' over paging and stating default/max for limit, which is helpful contextual guidance.

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 it finds recent deployments for an environment with optional status filtering. It explicitly distinguishes from sibling tools by mentioning get-plan-logs and get-error-analysis for different use cases.

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

Usage Guidelines5/5

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

Provides explicit when-to-use scenarios (deployment history, finding failed deployments, picking among multiple) and when-not-to-use (latest deployment alone), naming alternative tools.

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

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