Skip to main content
Glama

twining_acknowledge

Record agent acceptance of handoffs to track responsibility transfers in collaborative development workflows.

Instructions

Acknowledge receipt of a handoff, recording which agent picked it up.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
handoff_idYesID of the handoff to acknowledge
agent_idYesID of the agent acknowledging the handoff

Implementation Reference

  • The handler for the twining_acknowledge tool, which calls the coordinationEngine.acknowledgeHandoff method.
    async (args) => {
      try {
        const record = await coordinationEngine.acknowledgeHandoff(
          args.handoff_id,
          args.agent_id,
        );
        return toolResult({
          id: record.id,
          acknowledged_by: record.acknowledged_by,
          acknowledged_at: record.acknowledged_at,
          summary: record.summary,
          source_agent: record.source_agent,
        });
      } catch (e) {
        return toolError(
          e instanceof Error ? e.message : "Unknown error",
          "INTERNAL_ERROR",
        );
      }
    },
  • Registration of the twining_acknowledge tool in the coordination tools server.
    server.registerTool(
      "twining_acknowledge",
      {
        description:
          "Acknowledge receipt of a handoff, recording which agent picked it up.",
        inputSchema: {
          handoff_id: z
            .string()
            .describe("ID of the handoff to acknowledge"),
          agent_id: z
            .string()
            .describe("ID of the agent acknowledging the handoff"),
        },
      },
      async (args) => {
        try {
          const record = await coordinationEngine.acknowledgeHandoff(
            args.handoff_id,
            args.agent_id,
          );
          return toolResult({
            id: record.id,
            acknowledged_by: record.acknowledged_by,
            acknowledged_at: record.acknowledged_at,
            summary: record.summary,
            source_agent: record.source_agent,
          });
        } catch (e) {
          return toolError(
            e instanceof Error ? e.message : "Unknown error",
            "INTERNAL_ERROR",
          );
        }
      },
    );
  • The implementation of acknowledgeHandoff within the CoordinationEngine class, which interacts with the handoffStore.
    /** Acknowledge receipt of a handoff. */
    async acknowledgeHandoff(
      handoffId: string,
      agentId: string,
    ): Promise<HandoffRecord> {
      return this.handoffStore.acknowledge(handoffId, agentId);
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/daveangulo/twining-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server