Skip to main content
Glama

get_attachment_action_details

Retrieve detailed information for a specific attachment action using its unique ID within the Webex MCP Server to access Cisco Webex messaging capabilities.

Instructions

Get details for an attachment action by ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe unique identifier for the attachment action.

Implementation Reference

  • The main handler function 'executeFunction' that performs a GET request to the Webex API to retrieve attachment action details by ID.
    const executeFunction = async ({ id }) => {
    
      try {
        // Construct the URL with the provided ID
        const url = getWebexUrl('/attachment/actions/${encodeURIComponent(id)}');
    
        // Set up headers for the request
        const headers = getWebexHeaders();
    
        // Perform the fetch request
        const response = await fetch(url, {
          method: 'GET',
          headers
        });
    
        // 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 fetching attachment action details:', error);
        return { error: 'An error occurred while fetching attachment action details.' };
      }
    };
  • The input schema defining the required 'id' parameter (note mismatch in required field 'actionId').
    parameters: {
      type: 'object',
      properties: {
        id: {
          type: 'string',
          description: 'The unique identifier for the attachment action.'
        }
      },
      required: ['actionId']
    }
  • The 'apiTool' object exporting the tool's function reference and schema definition, which is imported and used during tool discovery.
    const apiTool = {
      function: executeFunction,
      definition: {
        type: 'function',
        function: {
          name: 'get_attachment_action_details',
          description: 'Get details for an attachment action by ID.',
          parameters: {
            type: 'object',
            properties: {
              id: {
                type: 'string',
                description: 'The unique identifier for the attachment action.'
              }
            },
            required: ['actionId']
          }
        }
      }
    };
    
    export { apiTool };
  • tools/paths.js:9-9 (registration)
    Entry in the toolPaths array that lists this tool file for dynamic loading by discoverTools.
    'webex-public-workspace/webex-messaging/get-attachment-action-details.js',
  • lib/tools.js:7-16 (registration)
    The discoverTools function that dynamically loads and registers all apiTools, including this one, from the listed paths.
    export async function discoverTools() {
      const toolPromises = toolPaths.map(async (file) => {
        const module = await import(`../tools/${file}`);
        return {
          ...module.apiTool,
          path: file,
        };
      });
      return Promise.all(toolPromises);
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the basic action ('Get details') without mentioning permissions required, rate limits, error handling, or what the output looks like (e.g., JSON structure). For a read operation with zero annotation coverage, this lacks critical behavioral context.

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 that front-loads the core action ('Get details') without unnecessary words. Every part of the sentence earns its place by specifying the resource and key parameter, making it highly concise and well-structured for quick understanding.

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 the complexity of a read operation with no annotations and no output schema, the description is incomplete. It fails to explain what 'details' entail, potential error cases, or authentication needs. While the schema covers the single parameter, the overall context for the agent to use the tool effectively is lacking, especially compared to richer sibling tools.

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 schema description coverage is 100%, with the 'id' parameter fully documented in the schema. The description adds no additional meaning beyond what the schema provides (e.g., it doesn't clarify ID format or examples). Since the schema does the heavy lifting, the baseline score of 3 is appropriate, as the description doesn't compensate but also doesn't detract.

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 verb ('Get') and resource ('details for an attachment action by ID'), making the purpose understandable. It distinguishes from siblings like 'create_attachment_action' by focusing on retrieval rather than creation. However, it doesn't specify what 'details' include, which could help differentiate it further from other 'get_' tools.

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 on when to use this tool versus alternatives. While the description implies it's for retrieving attachment action details by ID, it doesn't mention prerequisites (e.g., needing a valid ID) or when to choose this over other 'get_' tools like 'get_message_details'. The absence of usage context leaves the agent without explicit direction.

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