Skip to main content
Glama

pet_until

Execute a program until a specified address or symbol is reached a given number of times, then halt. Supports deterministic frame stepping on loop labels.

Instructions

Run until an address/symbol is executed count times; machine stays stopped there. count>1 = deterministic frame stepping on a loop label. On timeout: raises with the machine LEFT RUNNING and the checkpoint removed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refYes
countNo
sessionNo
timeoutNo
Behavior3/5

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

With no annotations, the description must carry behavioral context. It discloses timeout behavior (machine left running, checkpoint removed) and that the machine stays stopped after count. However, it omits whether the tool is destructive, requires a session, or handles invalid ref gracefully.

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?

Three concise sentences with minimal redundancy. Every sentence adds value, though the structure could be slightly improved (e.g., separating purpose from behavior). No fluff or tautology.

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 4 parameters, no output schema, and many sibling tools, the description is insufficient. It lacks information about return values (success behavior), session prerequisite, and error handling beyond timeout. The count>1 detail is useful but does not cover the overall completeness needed for safe invocation.

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 coverage is 0%, so description must compensate. It explains 'ref' (address/symbol), 'count' (frame stepping when >1), and 'timeout' (triggers error). However, 'session' parameter is left unexplained, and no default value context is provided for other parameters beyond schema defaults.

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?

Description uses a specific verb ('run') and resource ('address/symbol'), clearly distinguishing from siblings like pet_run (unconditional) and pet_step (single step). Additional details about count and frame stepping further clarify its unique function.

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 explicit guidance on when to use vs alternatives (pet_run, pet_continue, pet_step). The mention of 'deterministic frame stepping' hints at a use case but does not provide clear when-to-use or when-not-to-use conditions.

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/nschneir/PET-Project'

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