Skip to main content
Glama

e2b_get_template_by_alias

Check if an E2B template with a given alias exists and retrieve its ID. Use this to validate aliases before using templates in sandbox operations.

Instructions

Check whether a template with the given alias/name exists and get its id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aliasYes
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses that the tool performs an existence check and returns a template id, but it does not describe what happens when the alias is not found, what the full response shape is, or any authorization requirements.

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, efficient sentence with no wasted words. It front-loads the core behavior and result, making it easy for an agent to parse quickly.

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 simple one-parameter lookup, the description is mostly adequate, but since there is no output schema, it should clarify the return format and the behavior when the template does not exist. The current wording leaves ambiguity about whether a missing alias produces an error or an empty result.

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 only defines alias as a string with no description, so the tool description must compensate. It adds meaningful context by clarifying that the parameter is a template alias/name, which is sufficient for this single-parameter tool, though no format or example is provided.

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 a specific operation: check existence of a template by alias/name and retrieve its id. It identifies the resource and action well, though it does not explicitly contrast itself with the sibling e2b_get_template.

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 is given about when to use this tool versus alternatives like e2b_get_template. The intended use is implied by the tool name, but the description does not state conditions, exclusions, or when a different tool would be more appropriate.

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

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