Skip to main content
Glama

Macro Prepare Thread

macro_prepare_thread

Align an agent with an existing thread by ensuring registration, summarizing thread history, and fetching recent inbox context for coordinated work.

Instructions

Macro helper that aligns an agent with an existing thread by ensuring registration, summarising the thread, and fetching recent inbox context.

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_key": "<project_key>",
      "thread_id": "<thread_id>",
      "program": "<program>",
      "model": "<model>"
    },
    "name": "macro_prepare_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYes
formatNo
programYes
llm_modeNo
llm_modelNo
thread_idYes
agent_nameNo
inbox_limitNo
project_keyYes
include_examplesNo
task_descriptionNo
registration_tokenNo
register_if_missingNo
include_inbox_bodiesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.5
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.3.4

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses that registration happens and that inbox context is fetched, but says nothing about the side effects of registering (creating an agent identity, consuming a registration token), whether the operation is idempotent, what happens when register_if_missing is false and the agent is absent, or whether summarisation has cost/latency implications via the LLM flags.

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

Conciseness3/5

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

A single sentence with no filler and the composite nature front-loaded, which is structurally sound. But at one sentence for a 14-parameter macro it is under-specified rather than concise; the brevity costs the agent usable information.

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

Completeness2/5

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

An output schema exists, so return values need not be described. Everything else is missing, however: a multi-step macro with 14 undocumented parameters, zero annotations, and mutation-adjacent registration behavior needs far more than one sentence to be safely invoked.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 14 parameters, so the description must compensate and largely does not. It gestures at the registration, summarisation, and inbox areas but leaves model, program, llm_mode, llm_model, format, include_examples, task_description, and inbox_limit/include_inbox_bodies entirely unexplained, so an agent must guess at required inputs like program and model.

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?

The description names a specific composite operation and enumerates its three components (registration, thread summarisation, inbox context fetch), which lets an agent tell it apart from single-purpose siblings like summarize_thread or fetch_inbox. It stops short of a crisp verb+resource phrasing because 'aligns an agent with an existing thread' is metaphorical, but the enumerated sub-steps compensate.

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?

'aligns an agent with an existing thread' implies the scenario (an agent joining a thread it did not start), and the macro framing hints it bundles work otherwise done by separate tools. However, there is no explicit when-to-use vs when-to-call summarize_thread/fetch_inbox/register_agent individually, and no prerequisites or failure conditions are stated.

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