Skip to main content
Glama

update_person

Modify user details in Webex by providing a unique person ID and updated information. Part of the Webex MCP Server for managing messaging capabilities.

Instructions

Update a person's details in Webex.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
personDetailsYesThe details of the person to update.
personIdYesThe unique identifier for the person to update.

Implementation Reference

  • The asynchronous handler function that executes the tool logic: constructs Webex API URL, filters person details, sends PUT request to update person, handles errors, and returns response.
    const executeFunction = async ({ personId, personDetails }) => {
    
      try {
        // Construct the URL
        const url = getWebexUrl(`/people/${encodeURIComponent(personId)}?callingData=true&showAllTypes=true&minResponse=true`);
    
        // Set up headers for the request
        const headers = getWebexJsonHeaders();
    
        // Filter out null/undefined avatar field to avoid API errors
        const filteredPersonDetails = { ...personDetails };
        if (filteredPersonDetails.avatar === null || filteredPersonDetails.avatar === undefined) {
          delete filteredPersonDetails.avatar;
        }
    
        // Perform the fetch request
        const response = await fetch(url, {
          method: 'PUT',
          headers,
          body: JSON.stringify(filteredPersonDetails)
        });
    
        // Check if the response was successful
        if (!response.ok) {
          const errorData = await response.json();
          throw new Error(errorData);
        }
    
        // Parse and return the response data
        const data = await response.json();
        return data;
      } catch (error) {
        console.error('Error updating person details:', error);
        return { error: 'An error occurred while updating person details.' };
      }
    };
  • The apiTool export that registers the 'update_person' tool, linking the handler function and providing the schema definition including parameters and requirements.
    const apiTool = {
      function: executeFunction,
      definition: {
        type: 'function',
        function: {
          name: 'update_person',
          description: 'Update a person\'s details in Webex.',
          parameters: {
            type: 'object',
            properties: {
              personId: {
                type: 'string',
                description: 'The unique identifier for the person to update.'
              },
              personDetails: {
                type: 'object',
                description: 'The details of the person to update.'
              }
            },
            required: ['personId', 'personDetails']
          }
        }
      }
    };
    
    export { apiTool };
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While 'Update' implies mutation, it doesn't specify required permissions, whether changes are reversible, what fields can be updated, error conditions, or response format. This is inadequate for a mutation tool with zero annotation coverage.

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, efficient sentence with zero waste. It's appropriately sized and front-loaded with the core purpose. Every word earns its place in conveying the essential function.

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 mutation tool with no annotations and no output schema, the description is incomplete. It should address behavioral aspects like authentication requirements, what happens on success/failure, and the structure of personDetails. The 100% schema coverage helps with parameters but doesn't compensate for missing behavioral context.

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?

Schema description coverage is 100%, so the schema already documents both parameters (personId and personDetails). The description doesn't add any meaning beyond what the schema provides - it doesn't explain what constitutes valid personDetails or where to find personId. Baseline 3 is appropriate when schema does the heavy lifting.

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 ('Update') and resource ('a person's details in Webex'), providing a specific verb+resource combination. However, it doesn't distinguish this tool from sibling update tools like update_room or update_team, which follow the same pattern for different resources.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (like needing a personId), when not to use it, or how it differs from create_person or get_person_details among the sibling tools.

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

Related 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/Kashyap-AI-ML-Solutions/webex-messaging-mcp-server'

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