Skip to main content
Glama
delano
by delano

update_pan_element

Update an element or folder in your Private API Network by specifying the element ID and type, with optional changes to name, description, summary, or parent folder.

Instructions

Update element or folder in Private API Network

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
elementIdYesElement ID
elementTypeYesElement type
nameNoUpdated name
descriptionNoUpdated description
summaryNoUpdated summary
parentFolderIdNoNew parent folder ID

Implementation Reference

  • The updatePanElement handler function that executes the tool logic. It builds a payload based on elementType (folder vs other), then sends a PUT request to the Private API Network endpoint.
    async updatePanElement(args: any): Promise<ToolCallResponse> {
      const payload: any = {};
      const path = `/network/private/${args.elementType}/${args.elementId}`;
    
      switch (args.elementType) {
        case 'folder':
          payload.folder = {
            name: args.name,
            description: args.description,
            parentFolderId: args.parentFolderId
          };
          break;
        default:
          payload[args.elementType] = {
            name: args.name,
            description: args.description,
            summary: args.summary,
            parentFolderId: args.parentFolderId
          };
      }
    
      const response = await this.client.put(path, payload);
      return this.createResponse(response.data);
    }
  • Input schema definition for the 'update_pan_element' tool, specifying elementId, elementType (enum of api/collection/workspace/folder), name, description, summary, and parentFolderId fields.
    {
      name: 'update_pan_element',
      description: 'Update element or folder in Private API Network',
      inputSchema: {
        type: 'object',
        properties: {
          elementId: {
            type: 'string',
            description: 'Element ID'
          },
          elementType: {
            type: 'string',
            enum: ['api', 'collection', 'workspace', 'folder'],
            description: 'Element type'
          },
          name: {
            type: 'string',
            description: 'Updated name'
          },
          description: {
            type: 'string',
            description: 'Updated description'
          },
          summary: {
            type: 'string',
            description: 'Updated summary'
          },
          parentFolderId: {
            type: 'integer',
            description: 'New parent folder ID'
          }
        },
        required: ['elementId', 'elementType']
      }
  • Registration of 'update_pan_element' in the handleToolCall switch statement, routing to the updatePanElement method.
    case 'update_pan_element':
      return await this.updatePanElement(args);
Behavior2/5

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

No annotations are provided, so the description carries full burden. It discloses the mutation action but does not mention potential side effects, idempotency, permissions required, or error conditions.

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

Conciseness4/5

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

Single sentence, front-loaded with verb and resource, no wasted words. However, it is overly brief and could benefit from more context.

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?

Given 6 parameters with no annotations or output schema, the description fails to explain return values, error handling, or relationship to parentFolderId. It is incomplete for a tool of this complexity.

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 input schema has 100% coverage with parameter descriptions, so the description adds no additional meaning beyond the schema. Baseline score of 3 is appropriate.

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 the resource 'element or folder in Private API Network', distinguishing it from sibling tools like add_pan_element and remove_pan_element. It could be more specific about the element types but the schema enum covers that.

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 on when to use this tool versus alternatives (e.g., add, remove). No prerequisites, exclusions, or context provided.

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/delano/postman-mcp-server'

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