Skip to main content
Glama

run

Execute Pylpex code to evaluate custom programming language expressions and functions, returning computed results.

Instructions

Execute Pylpex code and return the result.

Pylpex is a custom programming language. Before executing code:

  1. Check pylpex://documentation for syntax reference

  2. Review pylpex://examples for working patterns

  3. Ensure code follows Pylpex syntax conventions

Args: code: Valid Pylpex source code to execute

Returns: The evaluated result of the code execution

Example usage: run("2 + 2") # Returns: 4 run("function double(x) { return x * 2 } double(5)") # Returns: 10

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
resultNo
successNo
code_executedNo
code_attemptedNo
Behavior4/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 clearly describes that this tool executes code and returns results, mentions the need to follow syntax conventions, and provides example outputs. It doesn't cover potential side effects, security implications, or error handling, but provides substantial 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.

Conciseness5/5

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

The description is well-structured and front-loaded with the core purpose. Every sentence adds value: the main execution statement, three prerequisite steps, parameter documentation, return value explanation, and illustrative examples. No wasted words or redundant information.

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?

Given the complexity of a code execution tool with no annotations, the description provides comprehensive context. It explains the tool's purpose, prerequisites, parameter semantics, return values, and includes examples. The presence of an output schema means the description doesn't need to detail return format, allowing it to focus on execution behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description must compensate fully. It explicitly documents the single parameter 'code' as 'Valid Pylpex source code to execute', provides syntax guidance, and includes concrete examples showing how the parameter should be formatted and what constitutes valid input.

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 the specific verb 'Execute' and resource 'Pylpex code', distinguishing it from siblings like get_variables (retrieval), reset (state management), and tokenize (analysis). It provides a complete purpose statement with the expected outcome.

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

Usage Guidelines4/5

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

The description provides clear context about when to use this tool (for executing Pylpex code) and includes prerequisites (check documentation, review examples, ensure syntax conventions). However, it doesn't explicitly state when NOT to use it or name specific alternatives among siblings.

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/Golto/pylpex-mcp'

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