Skip to main content
Glama
SmartSuiteFoundry

SmartSuite MCP Server

smartsuite_set_automation_ai_prompt

Author the dynamic prompt for an automation's AI action using a plain-text template with field reference slugs. Preview changes before confirmation.

Instructions

Set the dynamic prompt on an automation's AI ("AI Workflow Agent" / ai-custom-prompt) action. Requires readwrite/admin mode AND SMARTSUITE_ENABLE_SCHEMA_WRITE=true. Supply promptTemplate as plain text where {{field_slug}} inserts a live reference to a field (resolved against applicationId — the table the automation works on). The tool builds the correct rich-text prompt (with field-reference pills) and writes it to the action, leaving the rest of the automation intact — this is the reliable way to author workflow AI prompts (do NOT hand-build the prompt). If the automation has multiple AI actions, pass actionInstanceId. Dry-run preview unless confirm:true. (Reads via GetAutomation, so it works even in solutions where listing automations fails.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoSet true to apply; otherwise returns a dry-run preview.
solutionIdYesThe solution the automation belongs to.
automationIdYesThe automation ID.
applicationIdYesThe table whose field slugs {{slug}} references resolve against (usually the automation trigger's table).
promptTemplateYesPlain-text prompt; {{field_slug}} inserts a live field reference.
actionInstanceIdNoOptional: which AI action, when the automation has more than one (action_reference.instance_id).
Behavior5/5

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

Annotations only set readOnlyHint=false, so the description carries the burden. It discloses that the tool writes the prompt, leaves the rest intact, builds rich-text from plain text, resolves field references, and dry-runs by default. Auth and environment requirements are noted. No contradictions.

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 a single dense paragraph of about 100 words. It is front-loaded with the main action and contains no fluff, but could benefit from slight structuring (e.g., bullet points or separate sentences for prerequisites). Still very concise.

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 6 parameters, no output schema, and no annotations beyond readOnlyHint, the description thoroughly explains the mechanism, edge cases, and safe usage (dry-run preview). It mentions the underlying GetAutomation call for reliability. The agent has enough to use the tool correctly.

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?

Schema coverage is 100%, but the description adds vital context: promptTemplate format with {{field_slug}} syntax, applicationId as the resolution table, actionInstanceId for multi-action scenarios, and confirm's dry-run behavior. This goes beyond the schema descriptions.

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's action: 'Set the dynamic prompt on an automation's AI action.' It specifies the exact resource and distinguishes itself by calling itself 'the reliable way' compared to hand-building.

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?

Explicit prerequisites are given (readwrite/admin mode, SMARTSUITE_ENABLE_SCHEMA_WRITE=true), usage instructions for dry-run vs confirmation with confirm:true, and handling multiple AI actions via actionInstanceId. It also warns against hand-building the prompt.

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/SmartSuiteFoundry/smartsuite-mcp-server'

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