Skip to main content
Glama
devlimelabs

Meilisearch MCP Server

by devlimelabs

get-task

Retrieve detailed information about a specific Meilisearch task using its unique identifier to monitor progress and check status.

Instructions

Get information about a specific task

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskUidYesUnique identifier of the task

Implementation Reference

  • Direct registration of the 'get-task' tool using server.tool(), including description, input schema, and handler function.
    server.tool(
      "get-task",
      "Get information about a specific task",
      {
        taskUid: z.number().describe("Unique identifier of the task"),
      },
      async ({ taskUid }: GetTaskParams) => {
        try {
          const response = await apiClient.get(`/tasks/${taskUid}`);
          return {
            content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }],
          };
        } catch (error) {
          return createErrorResponse(error);
        }
      }
    );
  • The handler function that executes the tool logic: fetches task details from Meilisearch API /tasks/{taskUid} and returns formatted JSON response or error.
    async ({ taskUid }: GetTaskParams) => {
      try {
        const response = await apiClient.get(`/tasks/${taskUid}`);
        return {
          content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }],
        };
      } catch (error) {
        return createErrorResponse(error);
      }
    }
  • TypeScript interface defining input parameters for the get-task tool.
    interface GetTaskParams {
      taskUid: number;
    }
  • src/index.ts:70-70 (registration)
    Top-level call to registerTaskTools which includes the 'get-task' tool registration.
    registerTaskTools(server);
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. It states it 'gets information,' implying a read-only operation, but doesn't disclose behavioral traits such as permissions required, rate limits, error handling, or what happens if the taskUid doesn't exist. This leaves significant gaps for a tool that likely interacts with a task management system.

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?

The description is a single, straightforward sentence that efficiently conveys the core purpose without unnecessary words. It's appropriately sized for a simple tool, though it could be slightly more informative without losing conciseness.

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 task-related operations (with many sibling tools), no annotations, and no output schema, the description is incomplete. It doesn't explain what information is returned, how errors are handled, or how it fits into the broader context of task management, making it inadequate for full understanding.

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?

Schema description coverage is 100%, with the parameter 'taskUid' documented as 'Unique identifier of the task.' The description adds no additional meaning beyond this, as it doesn't explain the format, range, or source of taskUid. Since the schema does the heavy lifting, the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Get information about a specific task' clearly states the verb ('Get') and resource ('task'), but it's vague about what information is retrieved. It distinguishes from siblings like 'list-tasks' (which lists multiple tasks) but doesn't specify how it differs from 'get-tasks' (plural) or what makes a task 'specific' beyond the parameter.

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 explicit guidance on when to use this tool versus alternatives like 'get-tasks' or 'list-tasks' is provided. The description implies usage for a single task via the parameter, but it doesn't clarify prerequisites, error conditions, or when other tools might be more appropriate.

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/devlimelabs/meilisearch-ts-mcp'

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