Skip to main content
Glama

ap_run_action

ap_run_action
Destructive

Execute a single piece action once, without building or saving a flow. Use this for one-shot tasks like "check my inbox" or "send one Slack message". For recurring/triggered work, build a flow with ap_build_flow instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesFully-resolved input for the action. Keys must match the piece action's props. Pass raw values — do NOT wrap in {{...}}. Omit if the action has no props.
pieceNameYesPiece name, e.g. "slack" or "@activepieces/piece-slack". Use ap_research_pieces to discover.
actionNameYesAction to run, e.g. "send_channel_message". Use ap_get_piece_props for the input shape.
connectionExternalIdNoexternalId from ap_list_connections. Required if the piece needs auth. Pass the plain id, not a template.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / connectionExternalId / description
      Previous value: -"externalId from ap_list_connections. Required if the piece needs auth. Auto-wrapped as {{connections['externalId']}}."New value: +"externalId from ap_list_connections. Required if the piece needs auth. Pass the plain id, not a template."
    • changedInput schema / required
      Previous value: -[
      -  "pieceName",
      -  "actionName"
      -]New value: +[
      +  "pieceName",
      +  "actionName",
      +  "input"
      +]
  2. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "pieceName",
      -  "actionName",
      -  "input"
      -]New value: +[
      +  "pieceName",
      +  "actionName"
      +]
  3. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "pieceName",
      -  "actionName"
      -]New value: +[
      +  "pieceName",
      +  "actionName",
      +  "input"
      +]
  4. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "pieceName",
      -  "actionName",
      -  "input"
      -]New value: +[
      +  "pieceName",
      +  "actionName"
      +]
  5. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "pieceName",
      -  "actionName"
      -]New value: +[
      +  "pieceName",
      +  "actionName",
      +  "input"
      +]
  6. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "pieceName",
      -  "actionName",
      -  "input"
      -]New value: +[
      +  "pieceName",
      +  "actionName"
      +]
  7. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "pieceName",
      -  "actionName"
      -]New value: +[
      +  "pieceName",
      +  "actionName",
      +  "input"
      +]
  8. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "pieceName",
      -  "actionName",
      -  "input"
      -]New value: +[
      +  "pieceName",
      +  "actionName"
      +]
  9. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavioral context — that execution is one-shot and leaves no saved flow — which is not conveyed by the annotations.

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?

Two sentences with zero waste; the one-shot scope is front-loaded before the alternative routing to ap_build_flow.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a side-effecting execution tool the description covers scope, ephemerality and the alternative path, and the schema covers parameter shape and auth. Nothing critical is missing, though return behavior is unaddressed (acceptable since no output schema exists).

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 description coverage is 100%, with each of the four parameters documented (including input key-matching and the auth note for connectionExternalId). The description adds no parameter-level meaning beyond that, so the baseline 3 is appropriate.

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 states a specific verb and resource ('Execute a single piece action once, without building or saving a flow') and immediately contrasts it with the flow-building path, so an agent can distinguish it from ap_build_flow, ap_add_step and the rest of the flow siblings.

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?

It gives explicit when-to-use ('one-shot tasks like check my inbox or send one Slack message') and when-not-to-use ('For recurring/triggered work') and names the alternative tool ap_build_flow. Nothing is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources