Skip to main content
Glama

press_button

Press a Houdini button parameter—like Stash Input, Reload Geometry, or a node's Build—then read resulting errors, warnings, or cook status. Useful for triggering actions and verifying node health.

Instructions

Press a button parameter — "Stash Input", "Reload Geometry", an asset's own Build button — and read the node's errors and warnings afterwards.

The call holds until the callback returns, with no deadline. A callback that opens a dialog blocks Houdini's main thread and this bridge with it; read the button's script first if in doubt. For a Save to Disk or a render use write_cache / start_render, which report a verdict.

A press usually only dirties the node, so errors/warnings are from its last cook unless cook=True; without it needs_cook says whether they are stale (a cook that failed leaves it True too). has_script_callback is False for built-in buttons that still do work (File's Reload, Stash's Stash Input).

Args: node_path: Node that owns the button. parm_name: The button parameter's name. arguments: Optional kwargs handed to the callback script; values must be int, bool, float or str. cook: Cook the node after the press so errors describe the result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cookNo
argumentsNo
node_pathYes
parm_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.18.0

TDQS

A4.8/5.0
Behavior5/5

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

The description discloses critical behavioral traits: the call holds until the callback returns with no deadline, dialog-opening callbacks block the main thread, errors/warnings are from the last cook unless cook=True, and has_script_callback is False for built-in buttons that still do work. This goes well beyond what annotations (none provided) would cover.

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 dense but well-organized, front-loading the core action and then layering caveats. Every sentence adds value, though the paragraph on errors/warnings and has_script_callback is somewhat long and could be tightened. Still, it's efficient for the complexity it covers.

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?

For a tool with no annotations and no output schema, the description is remarkably complete. It covers the action, blocking behavior, error semantics, the cook parameter's effect, and the distinction between script callbacks and built-in buttons. An agent has everything needed to invoke it correctly and interpret results.

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 description coverage is 0%, so the description must compensate. It explains node_path (node that owns the button), parm_name (the button parameter's name), arguments (optional kwargs with type constraints), and cook (cook after press so errors describe the result). This fully covers all 4 parameters with meaning beyond the schema's bare names.

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 tool presses a button parameter on a node and reads errors/warnings afterwards, with concrete examples (Stash Input, Reload Geometry, Build). It distinguishes itself from related tools like write_cache/start_render by explicitly naming them as alternatives for Save to Disk or render actions.

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?

The description provides explicit when-to-use guidance: use write_cache/start_render for Save to Disk or render operations instead. It also warns about callbacks that open dialogs blocking Houdini's main thread, advising to read the button's script first if in doubt. This is strong usage guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools