Skip to main content
Glama

Start, stop or restart a Wiro agent

control_agent
Destructive

Start, stop, or restart a deployed AI agent, with plan and balance checks plus background status tracking so you can manage its runtime state.

Instructions

Start, stop or restart a deployed agent. Starting needs an active plan, with AI usage left in it or the Wiro balance to pay for more, and charges nothing by itself. Stopping does not pause the plan: a wallet plan that is not cancelled still renews every 30 days and starts the agent again, so cancel the plan with manage_agent_billing to stop paying. The result says what happens with this agent's plan. A restart reloads the agent with its current settings. The change finishes in the background: pass wait_seconds, or follow the returned nextAction, to see the result. When a start is refused, the result says what to do next (subscribe, renew, add funds on wiro.ai or finish setup). On a team agent this needs a team admin or the person who deployed it; other team members can read the agent with get_my_agent and message it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agent_guid": "<agent_guid>",
      "action": "<action>"
    },
    "name": "control_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesstart queues a stopped or failed agent, stop shuts it down, restart reloads a running agent.
agent_guidYesThe deployed agent's guid, from list_my_agents or deploy_agent.
wait_secondsNoWait up to this many seconds for the agent to finish starting or stopping (0 to 3600, default 0). 45 or less is safe for clients with a 60 second tool timeout; follow nextAction to keep waiting.

Output Schema

NameRequiredDescriptionDefault
agentYes
actionYes
statusYes
messageYes
outcomeYes
settledYes
nextActionNo
statusLabelYes
waitedSecondsNo
previousStatusYes
previousStatusLabelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.0.0
    • removedOutput schema / properties / agent / properties / credits
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "extra": {
      -      "type": "number"
      -    },
      -    "monthly": {
      -      "description": "The monthly credits this period grants. A plan change inside a period moves it for the time left, so it can differ from renewal.",
      -      "type": "number"
      -    },
      -    "period": {
      -      "type": "string"
      -    },
      -    "remaining": {
      -      "type": "number"
      -    },
      -    "renewal": {
      -      "description": "The monthly credits each renewal grants.",
      -      "type": "number"
      -    },
      -    "used": {
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "monthly",
      -    "extra",
      -    "used",
      -    "remaining"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / properties / agent / properties / spend
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "What the agent cost this calendar month. Left out when Wiro does not say.",
      +  "properties": {
      +    "aiUsageBalanceUsd": {
      +      "description": "AI usage paid from the balance.",
      +      "type": "number"
      +    },
      +    "aiUsagePlanUsd": {
      +      "description": "AI usage the plan included, already paid with the plan and not in totalUsd.",
      +      "type": "number"
      +    },
      +    "fundsAddedUsd": {
      +      "description": "Funds added to the balance from this agent's page. Not spending, so not in totalUsd.",
      +      "type": "number"
      +    },
      +    "modelRunsUsd": {
      +      "type": "number"
      +    },
      +    "month": {
      +      "description": "The calendar month (UTC), such as 2026-11.",
      +      "type": "string"
      +    },
      +    "planUsd": {
      +      "type": "number"
      +    },
      +    "totalUsd": {
      +      "description": "What the agent cost this month: its plan, its AI usage paid from the balance and the model runs it started.",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "totalUsd",
      +    "planUsd",
      +    "aiUsageBalanceUsd",
      +    "aiUsagePlanUsd",
      +    "modelRunsUsd",
      +    "fundsAddedUsd"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / agent / properties / subscription / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "amountUsd": {
      -        "description": "What the plan costs every 30 days. For a plan that has ended, what a new period costs: the price of its plan today.",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "atPeriodEnd": {
      -        "description": "For an active plan, what happens at periodEndsAt: it renews, it ends, or unknown for a card plan whose renewal is managed in the Wiro dashboard.",
      -        "enum": [
      -          "renews",
      -          "ends",
      -          "unknown"
      -        ],
      -        "type": "string"
      -      },
      -      "billing": {
      -        "enum": [
      -          "wallet",
      -          "card"
      -        ],
      -        "type": "string"
      -      },
      -      "cancelAtPeriodEnd": {
      -        "type": "boolean"
      -      },
      -      "daysRemaining": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "periodEndsAt": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "type": "string"
      -      },
      -      "switchingToWallet": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "billing",
      -      "switchingToWallet",
      -      "amountUsd",
      -      "daysRemaining",
      -      "cancelAtPeriodEnd"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amountUsd": {
      +        "description": "What the plan costs every 30 days. For a plan that has ended, what a new period costs: the price of its plan today.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "atPeriodEnd": {
      +        "description": "For an active plan, what happens at periodEndsAt: it renews, it ends, or unknown for a card plan from before agent plans were paid from the Wiro balance only.",
      +        "enum": [
      +          "renews",
      +          "ends",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "billing": {
      +        "enum": [
      +          "wallet",
      +          "card"
      +        ],
      +        "type": "string"
      +      },
      +      "cancelAtPeriodEnd": {
      +        "type": "boolean"
      +      },
      +      "daysRemaining": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "periodEndsAt": {
      +        "type": "string"
      +      },
      +      "renewsOrEndsAt": {
      +        "description": "For an active plan, when it renews, or ends when atPeriodEnd is ends, as Wiro shows it: periodEndsAt, or the time of the answer once that has passed and the renewal is due (while the balance cannot pay a wallet plan's renewal, Wiro tries again for up to a day), never a moment gone by. Absent when Wiro does not send it.",
      +        "type": "string"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "switchingToWallet": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "billing",
      +      "switchingToWallet",
      +      "amountUsd",
      +      "daysRemaining",
      +      "cancelAtPeriodEnd"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / agent / properties / usage
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The agent's AI usage this period in USD: what its plan includes, used and left, then the Wiro balance that pays after it.",
      +  "properties": {
      +    "balanceUsd": {
      +      "description": "What the agent's AI usage can draw on now in the Wiro balance that pays after the included usage (the personal wallet, or the team wallet for a team agent): its deposits, store revenue and coupon credit that is not limited to certain models. A coupon limited to certain models never pays an agent's AI usage, so this can read less than get_account shows.",
      +      "type": "number"
      +    },
      +    "extraUsd": {
      +      "description": "Only in an answer from an older Wiro release: usage bought earlier for this agent that is left.",
      +      "type": "number"
      +    },
      +    "fromBalanceUsd": {
      +      "description": "The AI usage paid from the workspace balance this period, after the included usage ran out.",
      +      "type": "number"
      +    },
      +    "includedUsd": {
      +      "description": "The AI usage the plan includes this period, in USD. A plan change inside a period moves it for the time left, so it can differ from renewalUsd.",
      +      "type": "number"
      +    },
      +    "leftUsd": {
      +      "description": "The included AI usage left this period.",
      +      "type": "number"
      +    },
      +    "legacy": {
      +      "description": "true when Wiro answered without these amounts, so they were worked out from its older fields.",
      +      "type": "boolean"
      +    },
      +    "minBalanceUsd": {
      +      "description": "Without included usage left, a new turn needs balanceUsd to be at least this much.",
      +      "type": "number"
      +    },
      +    "paused": {
      +      "description": "Whether the agent takes no new turns now: it has no active plan, its included usage is used up and the balance is under minBalanceUsd, or a spend limit is reached. A turn that is running finishes.",
      +      "type": "boolean"
      +    },
      +    "pausedReason": {
      +      "description": "Why it is paused: plan (it has no active plan; an agent runs only with one, whatever the balance holds), balance (the included usage is used up and the balance is short) or spendlimit (a spend limit is reached).",
      +      "enum": [
      +        "plan",
      +        "balance",
      +        "spendlimit"
      +      ],
      +      "type": "string"
      +    },
      +    "period": {
      +      "description": "A month tag (YYYY-MM, UTC), such as 2026-11: the month the current plan period started in, when its renewal ran. Not the period itself, which runs from one renewal to the next (resetsAt), so the amounts are not a calendar month's.",
      +      "type": "string"
      +    },
      +    "planBalanceUsd": {
      +      "description": "What the wallet that pays for the agent can pay a plan with: deposits, store revenue and coupons that can pay a plan; a coupon limited to models does not count. Set where the agent's full detail is read, such as get_my_agent; list_my_agents leaves it out.",
      +      "type": "number"
      +    },
      +    "renewalDue": {
      +      "description": "true while the plan's renewal is due: a wallet plan whose period has ended and that Wiro has not renewed yet, so resetsAt reads the time of the answer. Once the balance can pay the renewal, it renews within 15 minutes; Wiro tries again for up to a day after the period end, and after that day the plan ends. Absent when Wiro does not send it.",
      +      "type": "boolean"
      +    },
      +    "renewalUsd": {
      +      "description": "The AI usage each renewal includes.",
      +      "type": "number"
      +    },
      +    "resetsAt": {
      +      "description": "When the included AI usage starts again: the plan's next renewal.",
      +      "type": "string"
      +    },
      +    "usedUsd": {
      +      "description": "The included AI usage used this period.",
      +      "type": "number"
      +    },
      +    "wallet": {
      +      "description": "Which Wiro balance pays after the included usage.",
      +      "enum": [
      +        "personal",
      +        "team"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "includedUsd",
      +    "usedUsd",
      +    "leftUsd",
      +    "paused"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / agent / required
      Previous value: -[
      -  "guid",
      -  "title",
      -  "status",
      -  "statusLabel",
      -  "setupRequired",
      -  "workspace",
      -  "template",
      -  "monthlyPriceUsd",
      -  "credits",
      -  "subscription",
      -  "skills"
      -]New value: +[
      +  "guid",
      +  "title",
      +  "status",
      +  "statusLabel",
      +  "setupRequired",
      +  "workspace",
      +  "template",
      +  "monthlyPriceUsd",
      +  "usage",
      +  "subscription",
      +  "skills"
      +]
  2. Changed3 schema fields changedv1.6.1
    • addedOutput schema / properties / agent / properties / nextPlan
      Added value: +{
      +  "description": "The plan the agent moves to at its next renewal, when a move is set: another plan, or its own plan at today's price. null when none is set; left out when Wiro does not say.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / agent / properties / subscription / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "amountUsd": {
      -        "description": "What the plan costs every 30 days. For a plan that has ended, the agent's monthly price, which is what a renew charges.",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "atPeriodEnd": {
      -        "description": "For an active plan, what happens at periodEndsAt: it renews, it ends, or unknown for a card plan whose renewal is managed in the Wiro dashboard.",
      -        "enum": [
      -          "renews",
      -          "ends",
      -          "unknown"
      -        ],
      -        "type": "string"
      -      },
      -      "billing": {
      -        "enum": [
      -          "wallet",
      -          "card"
      -        ],
      -        "type": "string"
      -      },
      -      "cancelAtPeriodEnd": {
      -        "type": "boolean"
      -      },
      -      "daysRemaining": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "periodEndsAt": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "type": "string"
      -      },
      -      "switchingToWallet": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "billing",
      -      "switchingToWallet",
      -      "amountUsd",
      -      "daysRemaining",
      -      "cancelAtPeriodEnd"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amountUsd": {
      +        "description": "What the plan costs every 30 days. For a plan that has ended, what a new period costs: the price of its plan today.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "atPeriodEnd": {
      +        "description": "For an active plan, what happens at periodEndsAt: it renews, it ends, or unknown for a card plan whose renewal is managed in the Wiro dashboard.",
      +        "enum": [
      +          "renews",
      +          "ends",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "billing": {
      +        "enum": [
      +          "wallet",
      +          "card"
      +        ],
      +        "type": "string"
      +      },
      +      "cancelAtPeriodEnd": {
      +        "type": "boolean"
      +      },
      +      "daysRemaining": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "periodEndsAt": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "switchingToWallet": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "billing",
      +      "switchingToWallet",
      +      "amountUsd",
      +      "daysRemaining",
      +      "cancelAtPeriodEnd"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / agent / properties / tier / description
      Added value: +"The agent's plan: starter, pro or max."
  3. Changed2 schema fields changedv1.5.8
    • changedInput schema / properties / wait_seconds / description
      Previous value: -"Wait up to this many seconds for the agent to finish starting or stopping (0 to 600, default 0). 45 or less is safe for clients with a 60 second tool timeout; follow nextAction to keep waiting."New value: +"Wait up to this many seconds for the agent to finish starting or stopping (0 to 3600, default 0). 45 or less is safe for clients with a 60 second tool timeout; follow nextAction to keep waiting."
    • changedInput schema / properties / wait_seconds / maximum
      Previous value: -600New value: +3600
  4. Changed10 schema fields changedv1.5.3
    • changedOutput schema / properties / agent / properties / status / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / agent / properties / statusLabel / $ref
      Removed value: -"#/properties/previousStatusLabel"
    • addedOutput schema / properties / agent / properties / statusLabel / enum
      Added value: +[
      +  "stopped",
      +  "stopping",
      +  "queued",
      +  "starting",
      +  "running",
      +  "error",
      +  "setup_required",
      +  "unknown"
      +]
    • addedOutput schema / properties / agent / properties / statusLabel / type
      Added value: +"string"
    • addedOutput schema / properties / nextAction / properties / arguments / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / previousStatus / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / status / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / statusLabel / $ref
      Removed value: -"#/properties/previousStatusLabel"
    • addedOutput schema / properties / statusLabel / enum
      Added value: +[
      +  "stopped",
      +  "stopping",
      +  "queued",
      +  "starting",
      +  "running",
      +  "error",
      +  "setup_required",
      +  "unknown"
      +]
    • addedOutput schema / properties / statusLabel / type
      Added value: +"string"
  5. Changed5 schema fields changedv1.5.1
    • addedOutput schema / properties / agent / properties / credits / properties / monthly / description
      Added value: +"The monthly credits this period grants. A plan change inside a period moves it for the time left, so it can differ from renewal."
    • addedOutput schema / properties / agent / properties / credits / properties / renewal
      Added value: +{
      +  "description": "The monthly credits each renewal grants.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / agent / properties / lastActivityAt
      Added value: +{
      +  "description": "When the agent's newest message was written, on any channel, scheduled runs included. Left out when it has none.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / agent / properties / setupRequired / description
      Added value: +"Whether the agent waits for setup. list_my_agents goes by the status (6). get_my_agent also checks each required credential and names what is missing."
    • changedOutput schema / properties / agent / properties / subscription / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "amountUsd": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "atPeriodEnd": {
      -        "description": "For an active plan, what happens at periodEndsAt: it renews, it ends, or unknown for a card plan whose renewal is managed in the Wiro dashboard.",
      -        "enum": [
      -          "renews",
      -          "ends",
      -          "unknown"
      -        ],
      -        "type": "string"
      -      },
      -      "billing": {
      -        "enum": [
      -          "wallet",
      -          "card"
      -        ],
      -        "type": "string"
      -      },
      -      "cancelAtPeriodEnd": {
      -        "type": "boolean"
      -      },
      -      "daysRemaining": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "periodEndsAt": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "type": "string"
      -      },
      -      "switchingToWallet": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "billing",
      -      "switchingToWallet",
      -      "amountUsd",
      -      "daysRemaining",
      -      "cancelAtPeriodEnd"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amountUsd": {
      +        "description": "What the plan costs every 30 days. For a plan that has ended, the agent's monthly price, which is what a renew charges.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "atPeriodEnd": {
      +        "description": "For an active plan, what happens at periodEndsAt: it renews, it ends, or unknown for a card plan whose renewal is managed in the Wiro dashboard.",
      +        "enum": [
      +          "renews",
      +          "ends",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "billing": {
      +        "enum": [
      +          "wallet",
      +          "card"
      +        ],
      +        "type": "string"
      +      },
      +      "cancelAtPeriodEnd": {
      +        "type": "boolean"
      +      },
      +      "daysRemaining": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "periodEndsAt": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "switchingToWallet": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "billing",
      +      "switchingToWallet",
      +      "amountUsd",
      +      "daysRemaining",
      +      "cancelAtPeriodEnd"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  6. Addedv1.4.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare a destructive, non-idempotent, open-world mutation, and the description adds substantive context beyond them: stop does not cancel the plan so a wallet plan still renews every 30 days, start charges nothing by itself, the operation completes asynchronously with wait_seconds or a returned nextAction, and refusals encode remediation steps. It also discloses the authorization model (team admin or the deployer) on team agents.

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 core capability is front-loaded in the first sentence, and every subsequent sentence carries distinct, non-redundant information about billing, async completion, failure handling, and permissions. The billing sentence is dense and contains two ideas chained together, but nothing is padding.

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 three-parameter mutation with an output schema, the description covers everything an agent needs: preconditions for start, the billing consequence of stop, the async completion pattern, remediation on refusal, and authorization limits. Return-value structure is appropriately left to the output schema rather than restated.

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 coverage is 100%, so the baseline is 3, but the description adds usage meaning beyond the schema by explaining why wait_seconds exists (the change finishes in the background) and that nextAction should be followed to continue waiting. It does not add format or value constraints for agent_guid, which the schema already fully covers.

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 opening sentence names a specific verb set (start, stop, restart) against a specific resource (a deployed agent), and the action enum is reflected in the title. An agent can immediately tell this is the lifecycle-control tool, distinct from siblings like update_agent or delete_agent.

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 conditions are given for each action: starting requires an active plan with AI usage or balance, restart reloads with current settings, and stopping is called out as insufficient to stop billing with a direct pointer to manage_agent_billing. It also names alternatives for non-admin team members (get_my_agent to read, message to interact), so the when-not is covered too.

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