Skip to main content
Glama

hub_task_add

Add a task to the shared cross-project backlog with project, text and author. Set depends_on for waits, plus optional category, tags, assignee, deadline, resources and an accept command.

Instructions

Add a task to the shared cross-project backlog. A wait goes in depends_on, not in the text: warnings says so when the text names an open task and depends_on is empty, and when a part depends on its epic (tag epic) instead of the epic on 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": {
      "project": "<project>",
      "text": "<text>",
      "by": "<by>"
    },
    "name": "hub_task_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
byYesthe function you are performing, e.g. "dev-hubd". NOT which model you are — that is read from the transcript, and many sessions share a model. NOT a queue role either: a role is a mailbox (see hub_queue_wait), this is who is at it.
catNoone of technical | communicative | decision | chore. Anything else is kept — as a tag, not a category: the four values are the axis every by-type number is counted on, so it stays closed.
tagsNofree-form labels — the open vocabulary next to the closed cat one
textYeswhat the task is, in a line or two
acceptNoone line, run with sh -c in the assignee's working folder on its node by hub sweep; exit 0 closes the task on the ground "accept: <command> → 0". The project's head or a fleet role only; a command that cannot fail (true, echo) is refused.
projectYesthe project slug, as hub_status lists it
verboseNoreturn the whole task object; by default the reply is {ok, id, project, by, importance, cat, textPreview} — you just wrote the text, it is not echoed back
assigneeNoagent name or owner, optional
deadlineNoYYYY-MM-DD, or +Nd for N days from today (UTC), optional
resourcesNoresource slugs this task touches (host/vm/service/...) — a structured link task → resource, not prose
depends_onNotask ids this task waits on (bare number or a node-scoped id like "pine-3")
importanceNodefault normal

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.90
    • addedInput schema / properties / accept
      Added value: +{
      +  "description": "one line, run with sh -c in the assignee's working folder on its node by hub sweep; exit 0 closes the task on the ground \"accept: <command> → 0\". The project's head or a fleet role only; a command that cannot fail (true, echo) is refused.",
      +  "type": "string"
      +}
  2. Changed4 schema fields changedv0.9.88
    • changedInput schema / properties / deadline / description
      Previous value: -"YYYY-MM-DD, optional"New value: +"YYYY-MM-DD, or +Nd for N days from today (UTC), optional"
    • changedInput schema / properties / depends_on / description
      Previous value: -"task ids this task waits on (bare number or a node-scoped id like \"planck-3\")"New value: +"task ids this task waits on (bare number or a node-scoped id like \"pine-3\")"
    • addedInput schema / properties / project / description
      Added value: +"the project slug, as hub_status lists it"
    • addedInput schema / properties / text / description
      Added value: +"what the task is, in a line or two"
  3. Changed1 schema field changedv0.9.15
    • addedInput schema / properties / verbose
      Added value: +{
      +  "description": "return the whole task object; by default the reply is {ok, id, project, by, importance, cat, textPreview} — you just wrote the text, it is not echoed back",
      +  "type": "boolean"
      +}
  4. Changed3 schema fields changedv0.9.0
    • changedInput schema / properties / cat / description
      Previous value: -"task category, optional"New value: +"one of technical | communicative | decision | chore. Anything else is kept — as a tag, not a category: the four values are the axis every by-type number is counted on, so it stays closed."
    • removedInput schema / properties / cat / enum
      Removed value: -[
      -  "technical",
      -  "communicative",
      -  "decision",
      -  "chore"
      -]
    • addedInput schema / properties / tags
      Added value: +{
      +  "description": "free-form labels — the open vocabulary next to the closed cat one",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  5. Changed4 schema fields changedv0.5.0
    • changedInput schema / properties / by / description
      Previous value: -"who adds"New value: +"the function you are performing, e.g. \"dev-hubd\". NOT which model you are — that is read from the transcript, and many sessions share a model. NOT a queue role either: a role is a mailbox (see hub_queue_wait), this is who is at it."
    • changedInput schema / properties / depends_on / description
      Previous value: -"task ids this task waits on"New value: +"task ids this task waits on (bare number or a node-scoped id like \"planck-3\")"
    • changedInput schema / properties / depends_on / items / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "string"
      +]
    • changedInput schema / required
      Previous value: -[
      -  "project",
      -  "text"
      -]New value: +[
      +  "project",
      +  "text",
      +  "by"
      +]
  6. Changed1 schema field changedv0.1.8
    • addedInput schema / properties / resources
      Added value: +{
      +  "description": "resource slugs this task touches (host/vm/service/...) — a structured link task → resource, not prose",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  7. First observedv0.1.6

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that the tool emits `warnings` when a dependency is mis-encoded, which is a genuine behavioral trait not in the schema, but it says nothing about duplication handling, side effects, notifications to the assignee, or failure modes for a 12-parameter mutation.

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?

Two sentences, front-loaded with purpose before the semantic caveat, with no filler. The second sentence is dense and slightly tangled — the epic clause requires re-reading — which costs it the top score, but nothing is redundant.

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

Completeness3/5

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

For a 12-parameter creation tool with no annotations and no output schema, the description is thin, though the unusually detailed input schema (100% coverage, including the default reply shape under `verbose` and accept-command rules) absorbs most of the burden. What is left undocumented is behavior after creation — whether the task is visible immediately, who is notified, what happens on a duplicate — which the schema cannot cover.

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, and the description earns above that by clarifying depends_on semantics: a wait belongs there rather than in free text, and the epic direction case ('a part depends on its epic … instead of the epic on it') is a subtlety the schema's one-line depends_on description does not address. It adds nothing about the other eleven parameters, but it does not need to given the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Add a task to the shared cross-project backlog', and the word 'backlog' plus 'cross-project' scopes it against sibling tools like hub_task_update or hub_queue_send. It stops short of naming an alternative outright, so an agent distinguishes it mainly by inference from the verb 'add'.

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

Usage Guidelines3/5

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

The second sentence gives a concrete usage rule — record dependencies in depends_on rather than in the text, with the epic-direction caveat and a note that `warnings` surfaces the mistake. That is real guidance about correct invocation, but there is no statement of when to prefer this tool over hub_task_update, hub_task_list, or queue-based siblings, so tool selection is left implicit.

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