Skip to main content
Glama

server_get_task

Retrieve configuration details for a scheduled task on a specific server to manage automation settings.

Instructions

Get configuration for a specific scheduled task

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
server_idYesServer ID or UUID
task_idYesTask ID

Implementation Reference

  • The `server_get_task` tool is registered and implemented here, using the `client.get` method to fetch task details from the API.
    server.tool(
      "server_get_task",
      "Get configuration for a specific scheduled task",
      {
        server_id: z.string().describe("Server ID or UUID"),
        task_id: z.string().describe("Task ID"),
      },
      async ({ server_id, task_id }) => {
        try {
          const data = await client.get(`/servers/${server_id}/tasks/${task_id}`);
          return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
        } catch (error) {
          const msg = error instanceof Error ? error.message : String(error);
          return { content: [{ type: "text", text: `Error: ${msg}` }], isError: true };
        }
      }

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/HadiCherkaoui/crafty-mcp'

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