Skip to main content
Glama
rlymbur

Amazon VPC Lattice MCP Server

by rlymbur

get_source_prompts

Retrieve sample prompts by specifying a source name to assist in AWS VPC Lattice networking documentation and configurations.

Instructions

Get sample prompts for a specific source

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
source_nameYesName of the source to get prompts for

Implementation Reference

  • Handler logic for the 'get_source_prompts' tool. It takes source_name from arguments, looks up the source in the sources array, and returns the source's prompts as a JSON-formatted text response. Throws error if source not found.
    case 'get_source_prompts': {
      const { source_name } = request.params.arguments as { source_name: string };
      const source = sources.find(s => s.name === source_name);
      
      if (!source) {
        throw new McpError(
          ErrorCode.InvalidParams,
          `Source not found: ${source_name}`
        );
      }
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(source.prompts, null, 2)
          }
        ]
      };
    }
  • Input schema definition for the 'get_source_prompts' tool, specifying that it requires a 'source_name' string parameter.
    inputSchema: {
      type: 'object',
      properties: {
        source_name: {
          type: 'string',
          description: 'Name of the source to get prompts for'
        }
      },
      required: ['source_name'],
      additionalProperties: false
    },
  • src/tools.ts:25-39 (registration)
    Tool registration entry in the exported 'tools' array, including name, description, and input schema. This array is used by the MCP server to list available tools.
    {
      name: 'get_source_prompts',
      description: 'Get sample prompts for a specific source',
      inputSchema: {
        type: 'object',
        properties: {
          source_name: {
            type: 'string',
            description: 'Name of the source to get prompts for'
          }
        },
        required: ['source_name'],
        additionalProperties: false
      },
    },
  • Supporting data file providing the 'sources' array with source names, URLs, and sample prompts used by the get_source_prompts handler.
    export const sources = [
      {
        name: 'AWS Documentation',
        url: 'https://docs.aws.amazon.com',
        prompts: [
          'What are the key features of {service}?',
          'How do I configure {service} for {use_case}?',
          'What are the best practices for using {service}?'
        ]
      },
      {
        name: 'AWS Gateway API Controller for VPC Lattice',
        url: 'https://github.com/aws/aws-application-networking-k8s',
        prompts: [
          'Does the EKS controller support {feature}',
          'Show me {type} issues in the EKS controller repo'
        ]
      },
      {
        name: 'Kubernetes Gateway API',
        url: 'https://gateway-api.sigs.k8s.io/',
        prompts: [
          'Fix error: {error_message}',
          'Best practices for {resource}'
        ]
      }
    ];
  • src/index.ts:36-38 (registration)
    MCP server request handler for listing tools, returning the 'tools' array which includes get_source_prompts.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools,
    }));

Tool Definition Quality

Score is being calculated. Check back soon.

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/rlymbur/amazon-vpc-lattice-mcp-server'

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