Skip to main content
Glama

hedwigai

Agents

agents

Lists, makes, changes and wakes this account's agents. An agent is not a workbook: it wakes by itself, on a timer (every_minutes) or when a prompt is sent to it, runs the procedure drawn for it, and writes into the workbooks that procedure names. With no action, lists every agent with its clock (how it wakes, when it next wakes, whether it is paused) and what its wakes cost each of the last days.

An account's one agent is its principal, which hedwigai assigns; accounts do not make agents, so create is refused except on hedwigai's own account. An agent has no goal: what it does is the system's (it orchestrates), whom it acts for is its system prompt, and what a wake calls for is its chains, stored with it. update changes how it wakes or its chains, or pauses and resumes it. wake wakes it now: a timer agent at the next look of the ticker; a prompt agent with the prompt given. A wake uses the account's balance.

To answer in words, draw P[prompt] --> A[answer: in two plain sentences] --> R[Reply]; to tell the owner when the records do not answer, add P --> H[hand_off: when the records do not answer], A --> H and H --> N[Owner note]. An account's agent is reached by mail to its principal's handle (principal with handle); there is no public address.

remove takes an agent off the account: its clock goes, and its workbook stays, with its procedure, as one of the account's workbooks the principal may run. New work is a chain of the principal's procedure, or a workbook of the account, not a new agent.

principal reads the account's principal agent, the one agent that acts for the account (one per account). With agent, outcome_workbook and system_prompt it makes that agent the principal, replacing the one before: a principal must have an outcome, which is a workbook its work counts through, and a system prompt every one of its runs reads. attach_workbooks and attach_agents are the workbooks and agents it works with, such as the researchers whose workbooks it reads. Setting it again replaces all of it.

principal with handle (and nothing else) gives the account's principal agent its email address, such as principal@<the account's domain>; mail to it from a member of the account wakes the principal agent with the mail as its prompt. The domain must be the account's own or one in its connected GoDaddy. It can be given before the account has a principal agent. With none given, the principal is reached at its default, principal.@hedwigai.com (e.g. principal.owow.com@hedwigai.com), which needs no setup; handle: "" goes back to it.

Setting or removing a principal is hedwigai's own account's to do. principal with account (an account id) and system_prompt assigns that account its principal, as that account: agent names one of its workbooks to be it (an agent already, or made one), or, with no agent, a new agent is made, called title (Principal when left out; the account renames it as any workbook), with procedure as its chains. It wakes daily unless wake/every_minutes say otherwise; its outcome is its own workbook unless outcome_workbook is given; a principal it replaces becomes a workbook again. account with unassign: true takes the account's principal away.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "agents"
  }
}

Input Schema

NameRequiredDescriptionDefault
wakeNo`create` or `update`: `timer` wakes it every `every_minutes`; `prompt` wakes it only when a prompt is sent to it. `create` makes a timer unless told `prompt`.
agentNoThe agent's id, from `list`. Needed for `update`, `wake` and `remove`.
titleNo`create`, or `principal` with `account`: what a new agent is called; Principal when left out.
actionNoWhat to do. `list` (the default) lists them, or reads one when `agent` is given.
handleNo`principal`: the email address that reaches the principal agent, e.g. principal@example.com; empty goes back to the default, principal.<account id>@hedwigai.com.
pausedNo`update`: true pauses the agent, false resumes it.
promptNo`wake`, for a prompt agent: what to ask it.
accountNo`principal`, hedwigai's own account only: the account id to assign a principal to (or take it from, with `unassign`).
unassignNo`principal` with `account`: true takes that account's principal away; its agent becomes a workbook again.
procedureNo`create` or `update`: the procedure as a Mermaid flowchart, each node one step. An agent runs only once it has one. Pieces drawn unconnected are chains. The principal is an orchestrator and does no step itself: when asked, mailed or woken, it runs an existing workbook of the account that fits, else a chain that applies (kept as a graph workbook of its own in the Principal folder), else a new harnessroom workbook there, and answers with the workbooks they gave back. Steps that do work: `answer: <how>` writes words from what is drawn into it (the prompt, a table, a constant) with the principal's system prompt in mind; `hand_off: <when>` reads the message and the answer drawn into it and, when the owner is needed, mails the agent's owner who wrote, their words and the answer (once a visitor a day, 20 notes a day), its words saying what it did; `vision` reads pictures; `nano-banana` makes one; `find_workbook: <words>` and `pick_table: <words>` find the account's own records. A node with no step name and nothing drawn into it is a constant; `prompt` is what the wake was asked; a last node with nothing after it is a heading in the output.
attach_agentsNo`principal`: ids of the agents attached to the principal agent.
every_minutesNoFor a timer: minutes between wakes, e.g. 1440 for once a day or 10080 for once a week, at most. Fifteen when left out.
system_promptNo`principal`: the principal agent's system prompt, whom it acts for, read by every one of its runs.
attach_workbooksNo`principal`: ids of the workbooks attached to the principal agent.
outcome_workbookNo`principal`: the id of the workbook that is the principal agent's outcome.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / handle / description
      Previous value: -"`principal`: the email address that reaches the principal agent, e.g. principal@example.com; empty removes it."New value: +"`principal`: the email address that reaches the principal agent, e.g. principal@example.com; empty goes back to the default, principal.<account id>@hedwigai.com."
  2. Changed4 schema fields changed
    • removedInput schema / properties / goal
      Removed value: -{
      -  "description": "`create` or `update`: what the agent is for, in a sentence or two. Every wake reads it.",
      -  "type": "string"
      -}
    • changedInput schema / properties / procedure / description
      Previous value: -"`create` or `update`: the procedure as a Mermaid flowchart, each node one step. An agent runs only once it has one. Pieces drawn unconnected are chains. The principal is an orchestrator and does no step itself: when asked, mailed or woken, it runs an existing workbook of the account that fits, else a chain that applies (kept as a graph workbook of its own in the Principal folder), else a new harnessroom workbook there, and answers with the workbooks they gave back. Steps that do work: `answer: <how>` writes words from what is drawn into it (the prompt, a table, a constant) with the agent's goal in mind; `hand_off: <when>` reads the message and the answer drawn into it and, when the owner is needed, mails the agent's owner who wrote, their words and the answer (once a visitor a day, 20 notes a day), its words saying what it did; `vision` reads pictures; `nano-banana` makes one; `find_workbook: <words>` and `pick_table: <words>` find the account's own records. A node with no step name and nothing drawn into it is a constant; `prompt` is what the wake was asked; a last node with nothing after it is a heading in the output."New value: +"`create` or `update`: the procedure as a Mermaid flowchart, each node one step. An agent runs only once it has one. Pieces drawn unconnected are chains. The principal is an orchestrator and does no step itself: when asked, mailed or woken, it runs an existing workbook of the account that fits, else a chain that applies (kept as a graph workbook of its own in the Principal folder), else a new harnessroom workbook there, and answers with the workbooks they gave back. Steps that do work: `answer: <how>` writes words from what is drawn into it (the prompt, a table, a constant) with the principal's system prompt in mind; `hand_off: <when>` reads the message and the answer drawn into it and, when the owner is needed, mails the agent's owner who wrote, their words and the answer (once a visitor a day, 20 notes a day), its words saying what it did; `vision` reads pictures; `nano-banana` makes one; `find_workbook: <words>` and `pick_table: <words>` find the account's own records. A node with no step name and nothing drawn into it is a constant; `prompt` is what the wake was asked; a last node with nothing after it is a heading in the output."
    • changedInput schema / properties / system_prompt / description
      Previous value: -"`principal`: the principal agent's system prompt, read by every one of its runs before its goal."New value: +"`principal`: the principal agent's system prompt, whom it acts for, read by every one of its runs."
    • changedInput schema / properties / title / description
      Previous value: -"`create`: what the agent is called, e.g. 'Form D watch'."New value: +"`create`, or `principal` with `account`: what a new agent is called; Principal when left out."
  3. Changed1 schema field changed
    • changedInput schema / properties / procedure / description
      Previous value: -"`create` or `update`: the procedure as a Mermaid flowchart, each node one step. An agent runs only once it has one. Pieces drawn unconnected are chains: the principal runs only the chains what it was asked, or woken for, calls for. Steps that do work: `answer: <how>` writes words from what is drawn into it (the prompt, a table, a constant) with the agent's goal in mind; `hand_off: <when>` reads the message and the answer drawn into it and, when the owner is needed, mails the agent's owner who wrote, their words and the answer (once a visitor a day, 20 notes a day), its words saying what it did; `vision` reads pictures; `nano-banana` makes one; `find_workbook: <words>` and `pick_table: <words>` find the account's own records. A node with no step name and nothing drawn into it is a constant; `prompt` is what the wake was asked; a last node with nothing after it is a heading in the output."New value: +"`create` or `update`: the procedure as a Mermaid flowchart, each node one step. An agent runs only once it has one. Pieces drawn unconnected are chains. The principal is an orchestrator and does no step itself: when asked, mailed or woken, it runs an existing workbook of the account that fits, else a chain that applies (kept as a graph workbook of its own in the Principal folder), else a new harnessroom workbook there, and answers with the workbooks they gave back. Steps that do work: `answer: <how>` writes words from what is drawn into it (the prompt, a table, a constant) with the agent's goal in mind; `hand_off: <when>` reads the message and the answer drawn into it and, when the owner is needed, mails the agent's owner who wrote, their words and the answer (once a visitor a day, 20 notes a day), its words saying what it did; `vision` reads pictures; `nano-banana` makes one; `find_workbook: <words>` and `pick_table: <words>` find the account's own records. A node with no step name and nothing drawn into it is a constant; `prompt` is what the wake was asked; a last node with nothing after it is a heading in the output."
  4. Changed2 schema fields changed
    • changedInput schema / properties / every_minutes / description
      Previous value: -"For a timer: minutes between wakes, e.g. 1440 for once a day. Fifteen when left out."New value: +"For a timer: minutes between wakes, e.g. 1440 for once a day or 10080 for once a week, at most. Fifteen when left out."
    • changedInput schema / properties / procedure / description
      Previous value: -"`create` or `update`: the procedure as a Mermaid flowchart, each node one step. An agent runs only once it has one. Steps that do work: `answer: <how>` writes words from what is drawn into it (the prompt, a table, a constant) with the agent's goal in mind; `hand_off: <when>` reads the message and the answer drawn into it and, when the owner is needed, mails the agent's owner who wrote, their words and the answer (once a visitor a day, 20 notes a day), its words saying what it did; `vision` reads pictures; `nano-banana` makes one; `find_workbook: <words>` and `pick_table: <words>` find the account's own records. A node with no step name and nothing drawn into it is a constant; `prompt` is what the wake was asked; a last node with nothing after it is a heading in the output."New value: +"`create` or `update`: the procedure as a Mermaid flowchart, each node one step. An agent runs only once it has one. Pieces drawn unconnected are chains: the principal runs only the chains what it was asked, or woken for, calls for. Steps that do work: `answer: <how>` writes words from what is drawn into it (the prompt, a table, a constant) with the agent's goal in mind; `hand_off: <when>` reads the message and the answer drawn into it and, when the owner is needed, mails the agent's owner who wrote, their words and the answer (once a visitor a day, 20 notes a day), its words saying what it did; `vision` reads pictures; `nano-banana` makes one; `find_workbook: <words>` and `pick_table: <words>` find the account's own records. A node with no step name and nothing drawn into it is a constant; `prompt` is what the wake was asked; a last node with nothing after it is a heading in the output."
  5. Changed2 schema fields changed
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "`principal`, hedwigai's own account only: the account id to assign a principal to (or take it from, with `unassign`).",
      +  "type": "string"
      +}
    • addedInput schema / properties / unassign
      Added value: +{
      +  "description": "`principal` with `account`: true takes that account's principal away; its agent becomes a workbook again.",
      +  "type": "boolean"
      +}
  6. Changed6 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "list",
      -  "create",
      -  "update",
      -  "wake",
      -  "principal"
      -]New value: +[
      +  "list",
      +  "create",
      +  "update",
      +  "wake",
      +  "remove",
      +  "principal"
      +]
    • changedInput schema / properties / agent / description
      Previous value: -"The agent's id, from `list`. Needed for `update` and `wake`."New value: +"The agent's id, from `list`. Needed for `update`, `wake` and `remove`."
    • removedInput schema / properties / agent_daily
      Removed value: -{
      -  "description": "`update`, for an agent with a public address: messages it takes from everyone a day. 500 when never set.",
      -  "type": "integer"
      -}
    • removedInput schema / properties / per_sender_daily
      Removed value: -{
      -  "description": "`update`, for an agent with a public address: messages one visitor may send it a day. 20 when never set.",
      -  "type": "integer"
      -}
    • changedInput schema / properties / procedure / description
      Previous value: -"`create`: the procedure as a Mermaid flowchart, each node one step. An agent runs only once it has one. Steps that do work: `answer: <how>` writes words from what is drawn into it (the prompt, a table, a constant) with the agent's goal in mind; `hand_off: <when>` reads the message and the answer drawn into it and, when the owner is needed, mails the agent's owner who wrote, their words and the answer (once a visitor a day, 20 notes a day), its words saying what it did; `vision` reads pictures; `nano-banana` makes one; `find_workbook: <words>` and `pick_table: <words>` find the account's own records. A node with no step name and nothing drawn into it is a constant; `prompt` is what the wake was asked; a last node with nothing after it is a heading in the output."New value: +"`create` or `update`: the procedure as a Mermaid flowchart, each node one step. An agent runs only once it has one. Steps that do work: `answer: <how>` writes words from what is drawn into it (the prompt, a table, a constant) with the agent's goal in mind; `hand_off: <when>` reads the message and the answer drawn into it and, when the owner is needed, mails the agent's owner who wrote, their words and the answer (once a visitor a day, 20 notes a day), its words saying what it did; `vision` reads pictures; `nano-banana` makes one; `find_workbook: <words>` and `pick_table: <words>` find the account's own records. A node with no step name and nothing drawn into it is a constant; `prompt` is what the wake was asked; a last node with nothing after it is a heading in the output."
    • removedInput schema / properties / public
      Removed value: -{
      -  "description": "`update`: true gives the agent a public address (or turns it back on); false turns it off.",
      -  "type": "boolean"
      -}
  7. Changed1 schema field changed
    • addedInput schema / properties / handle
      Added value: +{
      +  "description": "`principal`: the email address that reaches the principal agent, e.g. principal@example.com; empty removes it.",
      +  "type": "string"
      +}
  8. Changed5 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "list",
      -  "create",
      -  "update",
      -  "wake"
      -]New value: +[
      +  "list",
      +  "create",
      +  "update",
      +  "wake",
      +  "principal"
      +]
    • addedInput schema / properties / attach_agents
      Added value: +{
      +  "description": "`principal`: ids of the agents attached to the principal agent.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / attach_workbooks
      Added value: +{
      +  "description": "`principal`: ids of the workbooks attached to the principal agent.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / outcome_workbook
      Added value: +{
      +  "description": "`principal`: the id of the workbook that is the principal agent's outcome.",
      +  "type": "string"
      +}
    • addedInput schema / properties / system_prompt
      Added value: +{
      +  "description": "`principal`: the principal agent's system prompt, read by every one of its runs before its goal.",
      +  "type": "string"
      +}
  9. Changed1 schema field changed
    • changedInput schema / properties / procedure / description
      Previous value: -"`create`: the procedure as a Mermaid flowchart, each node one step. An agent runs only once it has one. Steps that do work: `answer: <how>` writes words from what is drawn into it (the prompt, a table, a constant) with the agent's goal in mind; `vision` reads pictures; `nano-banana` makes one; `find_workbook: <words>` and `pick_table: <words>` find the account's own records. A node with no step name and nothing drawn into it is a constant; `prompt` is what the wake was asked; a last node with nothing after it is a heading in the output."New value: +"`create`: the procedure as a Mermaid flowchart, each node one step. An agent runs only once it has one. Steps that do work: `answer: <how>` writes words from what is drawn into it (the prompt, a table, a constant) with the agent's goal in mind; `hand_off: <when>` reads the message and the answer drawn into it and, when the owner is needed, mails the agent's owner who wrote, their words and the answer (once a visitor a day, 20 notes a day), its words saying what it did; `vision` reads pictures; `nano-banana` makes one; `find_workbook: <words>` and `pick_table: <words>` find the account's own records. A node with no step name and nothing drawn into it is a constant; `prompt` is what the wake was asked; a last node with nothing after it is a heading in the output."
  10. Changed1 schema field changed
    • changedInput schema / properties / procedure / description
      Previous value: -"`create`: the procedure as a Mermaid flowchart, each node one step."New value: +"`create`: the procedure as a Mermaid flowchart, each node one step. An agent runs only once it has one. Steps that do work: `answer: <how>` writes words from what is drawn into it (the prompt, a table, a constant) with the agent's goal in mind; `vision` reads pictures; `nano-banana` makes one; `find_workbook: <words>` and `pick_table: <words>` find the account's own records. A node with no step name and nothing drawn into it is a constant; `prompt` is what the wake was asked; a last node with nothing after it is a heading in the output."
  11. Changed3 schema fields changed
    • addedInput schema / properties / agent_daily
      Added value: +{
      +  "description": "`update`, for an agent with a public address: messages it takes from everyone a day. 500 when never set.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / per_sender_daily
      Added value: +{
      +  "description": "`update`, for an agent with a public address: messages one visitor may send it a day. 20 when never set.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / public
      Added value: +{
      +  "description": "`update`: true gives the agent a public address (or turns it back on); false turns it off.",
      +  "type": "boolean"
      +}
  12. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, it discloses auth constraints (principal assignment is hedwigai's own account's to do), cost behavior ('A wake uses the account's balance'), rate limits for hand_off (once a visitor a day, 20 notes a day), and default-address behavior for the principal handle. These are exactly the operational traits annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening is front-loaded well, but the body is a dense run-on with repeated 'principal' language and awkward phrasing ('what it does is the system's, whom it acts for is its system prompt'). For a 15-parameter, six-action tool some length is warranted, but the principal behavior is explained twice and could be cut substantially without losing meaning.

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?

Given 15 parameters, six actions, and no output schema, the description is substantively complete: it covers list output contents (clock, next wake, pause state, recent wake costs), create/update/wake/remove semantics, and the full principal lifecycle. It falls short only on exact error/response shapes, which is a minor gap for a complex tool.

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%, so the schema already documents every parameter, and much of the prose restates those meanings. The description does add some value with the Mermaid example and node-type semantics for `procedure`, but the parameter-level semantics largely duplicate the structured schema.

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 states a specific verb set and resource: 'Lists, makes, changes and wakes this account's agents.' It explicitly distinguishes an agent from a workbook ('An agent is not a workbook'), which separates it from the workbook-oriented siblings in the catalog.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The definition gives real when/when-not guidance: 'create is refused except on hedwigai's own account,' 'New work is a chain of the principal's procedure, or a workbook of the account, not a new agent,' and it explains that remove leaves the workbook in place. It lacks an explicit named alternative for routine workbook creation, but the routing rules are clearer than most.

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.