Skip to main content
Glama

waha_get_contact_about

Retrieve a WhatsApp contact's status or about text by providing their contact ID. This tool accesses profile information from WhatsApp conversations.

Instructions

Get contact's about/status text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contactIdYesContact ID (format: number@c.us)

Implementation Reference

  • MCP tool handler function that validates input, calls the WAHA client method getContactAbout, formats the result as JSON string, and returns it in MCP content format.
    private async handleGetContactAbout(args: any) {
      const contactId = args.contactId;
    
      if (!contactId) {
        throw new Error("contactId is required");
      }
    
      const result = await this.wahaClient.getContactAbout(contactId);
    
      return {
        content: [
          {
            type: "text",
            text: `About/status for ${contactId}:\n${JSON.stringify(result, null, 2)}`,
          },
        ],
      };
    }
  • Input schema definition for the tool, specifying contactId as required string parameter.
    {
      name: "waha_get_contact_about",
      description: "Get contact's about/status text.",
      inputSchema: {
        type: "object",
        properties: {
          contactId: {
            type: "string",
            description: "Contact ID (format: number@c.us)",
          },
        },
        required: ["contactId"],
      },
  • src/index.ts:1139-1141 (registration)
    Registration in the CallToolRequestSchema switch statement dispatching to the handler.
    case "waha_get_contact_about":
      return await this.handleGetContactAbout(args);
    case "waha_get_contact_profile_picture":
  • WAHAClient helper method that makes HTTP GET request to /api/contacts/about endpoint to fetch the contact's about/status text.
     * Get contact's about/status text
     * GET /api/contacts/about?contactId=...&session=...
     */
    async getContactAbout(contactId: string): Promise<any> {
      if (!contactId) {
        throw new WAHAError("contactId is required");
      }
    
      const queryParams = { 
        contactId,
        session: this.session
      };
      const queryString = this.buildQueryString(queryParams);
      const endpoint = `/api/contacts/about${queryString}`;
    
      return this.request<any>(endpoint, {
        method: "GET",
      });
    }
Behavior2/5

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

With no annotations provided, the description carries full burden but only states what the tool does, not how it behaves. It doesn't disclose whether this is a read-only operation, requires specific permissions, has rate limits, returns structured data, or handles errors. For a tool with zero annotation coverage, this leaves significant behavioral gaps.

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

Conciseness5/5

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

The description is a single, clear sentence that directly states the tool's purpose without unnecessary words. It's appropriately sized for a simple retrieval tool and front-loads the essential information efficiently.

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?

For a tool with no annotations and no output schema, the description is insufficiently complete. It doesn't explain what 'about/status text' means in this context, what format it returns (e.g., plain text, structured object), or any prerequisites. Given the lack of structured data elsewhere, the description should provide more context about the operation and its results.

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?

The description doesn't add any parameter information beyond what's already in the schema (which has 100% coverage). The schema fully documents the single required 'contactId' parameter with its format. Since schema coverage is high, the baseline score of 3 is appropriate as the description doesn't compensate but doesn't need to.

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 clearly states the action ('Get') and target resource ('contact's about/status text'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'waha_get_contact' or 'waha_get_contact_profile_picture' that also retrieve contact information but different attributes.

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

Usage Guidelines2/5

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

No guidance is provided about when to use this tool versus alternatives like 'waha_get_contact' (which might return broader contact info) or 'waha_get_presence' (which might include status). The description assumes the user knows they specifically need the 'about/status text' without explaining its relationship to other contact data.

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

Install Server

Other Tools

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/seejux/waha-whatsapp-mcp'

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