Skip to main content
Glama

customize_order

Submit special requests for existing orders to modify items or add instructions. Provide order ID and specific customization details.

Instructions

Make special requests for your order. Results may vary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
order_idYesThe order ID to customize
requestYesYour special request

Implementation Reference

  • Handler function for the "customize_order" tool.
    async ({ order_id, request }) => {
      const order = orders.find((o) => o.id === order_id);
      if (!order) {
        return {
          content: [
            {
              type: "text",
              text: `Order ${order_id} not found. Can't customize what doesn't exist. That's philosophy.`,
            },
          ],
        };
      }
    
      const responses = [
        `Special request "${request}" has been noted. The line cook nodded solemnly.`,
        `"${request}" - Bold choice. We've alerted the tortilla whisperer.`,
        `Request received: "${request}". Our AI-powered burrito engineer is on it.`,
        `"${request}" - This has never been requested before. You are a pioneer.`,
        `We've forwarded "${request}" to our Chief Guacamole Officer for approval.`,
      ];
    
      const response = responses[Math.floor(Math.random() * responses.length)];
    
      return {
        content: [
          {
            type: "text",
            text: `# Customization Request\n\n**Order:** ${order_id}\n**Request:** ${request}\n\n${response}\n\n> ${getRandomQuip()}`,
          },
        ],
      };
  • index.js:343-349 (registration)
    Registration of the "customize_order" tool with its schema definition.
    server.tool(
      "customize_order",
      "Make special requests for your order. Results may vary.",
      {
        order_id: z.string().describe("The order ID to customize"),
        request: z.string().describe("Your special request"),
      },

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/YoshiSaurus/mcp-otle'

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