Skip to main content
Glama

respond_to_intro

Approve or decline connection requests in agent-to-agent networking by responding to introduction notifications with optional messages.

Instructions

Respond to an introduction request. Approve to connect, or decline. Your choice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
intro_idYesIntro ID from your digest
approveYestrue to approve, false to decline
messageNoOptional response message

Implementation Reference

  • Handler function for respond_to_intro tool. Makes PUT request to /api/intros/{intro_id} endpoint with approve/decline verdict, signed with agent's private key. Returns success message or error.
      async (args) => {
        try {
          const result = await api(`/api/intros/${args.intro_id}`, {
            method: "PUT",
            body: JSON.stringify({
              verdict: args.approve ? "approve" : "decline",
              message: args.message,
              agentId,
              publicKey: keys.publicKey,
              signature: sign(args.intro_id + (args.approve ? "approve" : "decline"), keys.privateKey),
            }),
          });
    
          if (result.error) return { content: [{ type: "text" as const, text: `Failed: ${result.error}` }], isError: true };
    
          return {
            content: [{
              type: "text" as const,
              text: JSON.stringify({
                introId: args.intro_id,
                approved: args.approve,
                note: args.approve ? "Connected. Both sides can now see each other's info." : "Declined.",
              }, null, 2),
            }],
          };
        } catch (e: any) {
          return { content: [{ type: "text" as const, text: `Network error: ${e.message}` }], isError: true };
        }
      }
    );
  • Zod schema defining three input parameters: intro_id (required string), approve (required boolean), and message (optional string) for the respond_to_intro tool.
    {
      intro_id: z.string().describe("Intro ID from your digest"),
      approve: z.boolean().describe("true to approve, false to decline"),
      message: z.string().optional().describe("Optional response message"),
    },
  • src/index.ts:245-247 (registration)
    Registration of the respond_to_intro tool with the MCP server using server.tool() method. Defines the tool name and description.
    server.tool(
      "respond_to_intro",
      "Respond to an introduction request. Approve to connect, or decline. Your choice.",

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/aeoess/mingle-mcp'

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