Automation
set_variable
Set a workspace variable. Sets the value of a {{name}} placeholder for new posts.
TL;DR
| Question | Answer |
|---|---|
| What does it do? | Sets the value of a {{name}} placeholder for new posts. |
| Does it change anything? | Changes something; safe to repeat. |
| Which endpoint does it call? | PUT /v1/variables/{name} |
| Which server? | https://mcp.flung.dev/mcp-oauth (sign in) or https://mcp.flung.dev/mcp (API key). |
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
name | string | yes | pattern ^[A-Za-z][A-Za-z0-9_]{0,39}$. |
value | string | yes | at most 2000 characters. |
Example call
json
{ "name": "set_variable", "arguments": { "name": "brand", "value": "Flung" }}Things a person might say
- "Set our hashtag variable to #flung."
Annotations
| Hint | Value |
|---|---|
readOnlyHint | false |
destructiveHint | false |
idempotentHint | true |
openWorldHint | false |
See also
| Doc | Why |
|---|---|
| MCP tools | Every tool |
| Connect an AI agent | Install the server in your client |
PUT /v1/variables/{name} | The same operation over HTTP |