Skip to main content
Glama

get_task

Retrieve complete details of a task using its database ID or HRID (e.g., PRJ-123).

Instructions

Get detailed information about a specific task by database ID or HRID (e.g., "PRJ-123")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdYes

Implementation Reference

  • src/tools.ts:62-74 (registration)
    Tool definition for 'get_task' registered in the VAIZ_TOOLS array with name, description, and inputSchema. This is the static schema definition that gets merged with remote tool definitions at runtime.
    {
      name: 'get_task',
      description:
        'Get detailed information about a specific task by database ID or HRID (e.g., "PRJ-123")',
      inputSchema: {
        type: 'object',
        properties: {
          taskId: { type: 'string', minLength: 1 },
        },
        required: ['taskId'],
        additionalProperties: false,
      },
    },
  • Handler registration in the proxy server. All tool calls (including 'get_task') are handled generically by the CallToolRequestSchema handler which proxies the request to the remote backend. The static VAIZ_TOOLS definitions are merged via mergeByName when listing tools.
    private registerHandlers(): void {
      const lowLevel = this.mcpServer.server;
    
      lowLevel.setRequestHandler(ListToolsRequestSchema, async () => {
        this.log('← tools/list');
        try {
          const result = (await this.proxyToRemote('tools/list')) as {
            tools?: Tool[];
          };
          const remoteTools = result?.tools ?? [];
          return { tools: mergeByName(VAIZ_TOOLS, remoteTools) };
        } catch {
          const cached = this.responseCache.get('tools/list') as {
            tools?: Tool[];
          } | undefined;
          return {
            tools: mergeByName(VAIZ_TOOLS, cached?.tools ?? []),
          };
        }
      });
  • The actual execution handler for 'get_task' - it is proxied to the remote backend via CallToolRequestSchema. The tool name and arguments (including taskId) are forwarded to the remote Vaiz MCP API.
    lowLevel.setRequestHandler(CallToolRequestSchema, async (request) => {
      this.log(`← tools/call ${request.params.name}`);
      const result = await this.proxyToRemote('tools/call', request.params);
      return result as { content: Array<{ type: string; text: string }> };
    });
  • Helper function used during registration to merge hardcoded tool definitions (including 'get_task') with remote tool definitions fetched from the backend.
    function mergeByName<T extends { name: string }>(
      hardcoded: T[],
      remote: T[],
    ): T[] {
      const map = new Map<string, T>();
      for (const item of hardcoded) map.set(item.name, item);
      for (const item of remote) map.set(item.name, item);
      return [...map.values()];
    }
  • Input schema for the 'get_task' tool: requires a single 'taskId' string parameter (minLength: 1). The taskId can be a database ID or an HRID like 'PRJ-123'.
      inputSchema: {
        type: 'object',
        properties: {
          taskId: { type: 'string', minLength: 1 },
        },
        required: ['taskId'],
        additionalProperties: false,
      },
    },
Behavior3/5

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

No annotations provided. The description only says 'detailed information' without specifying the nature of the data, potential side effects (likely none), or authentication requirements. Adequate but could be more detailed.

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?

A single, clear sentence that is concise and front-loaded. Every word is purposeful, and there is no extraneous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simplicity (1 parameter, no output schema), the description is nearly complete. It clearly explains how to call the tool. A minor gap is not describing the expected return structure or fields, but this is not critical for basic usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The sole parameter taskId has only basic type/constraints in the schema (string, minLength 1). The description adds significant value by explaining it accepts both database IDs and HRIDs, with a concrete example 'PRJ-123', which the schema alone does not convey.

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

Purpose5/5

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

The description clearly states the action (Get), the resource (detailed information about a specific task), and the two methods to identify the task (database ID or HRID with example). This distinguishes it from sibling tools like get_tasks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

While the description implies when to use (when needing details for a single identified task), it does not explicitly provide guidance on when to use this tool versus alternatives like get_tasks, nor does it mention when not to use.

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/vaizcom/vaiz-mcp'

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