Skip to main content
Glama
bit2beat

Bitrix24 MCP server

b24_tasks_update

Updates specified fields of an existing Bitrix24 task. Requires task ID and field data.

Instructions

Actualiza campos de una tarea existente.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
fieldsYesCampos a actualizar
webhook_urlNo

Implementation Reference

  • The core handler function that executes the 'b24_tasks_update' tool logic. It calls the Bitrix24 REST API 'tasks.task.update' with the task ID and fields, returning success.
    export async function tasksUpdate({ id, fields, webhook_url }) {
      const client = new Bitrix24Client(resolveWebhook(webhook_url));
      await client.call('tasks.task.update', { taskId: id, fields });
      return { portal: client.portal, updated_id: id, success: true };
    }
  • Zod schema defining the input validation for the tool: id (string|number), fields (record of any), and optional webhook_url.
    export const tasksUpdateSchema = z.object({
      id: z.union([z.string(), z.number()]),
      fields: z.record(z.any()).describe('Campos a actualizar'),
      webhook_url: z.string().url().optional(),
    });
  • index.js:187-189 (registration)
    Registers the tool with the MCP server using server.tool() with the name 'b24_tasks_update', description, schema, and wrapped handler.
    server.tool('b24_tasks_update',
      'Actualiza campos de una tarea existente.',
      tasksUpdateSchema.shape, wrap(tasksUpdate));
  • The 'wrap' function that wraps the handler to serialize its result as JSON text content and catch errors.
    function wrap(fn) {
      return async (params) => {
        try {
          const result = await fn(params);
          return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
        } catch (err) {
          const msg = err.response?.data
            ? `${err.message}\nBitrix24: ${JSON.stringify(err.response.data)}`
            : err.message;
          return { content: [{ type: 'text', text: `Error: ${msg}` }], isError: true };
        }
      };
    }
  • index.js:35-35 (registration)
    Import statement that brings in tasksUpdateSchema and tasksUpdate from src/tools/tasks.js.
    tasksUpdateSchema, tasksUpdate,
Behavior2/5

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

With no annotations, the description must fully disclose behavior. It only states 'updates fields' without specifying whether updates are merged or overwritten, required permissions, or error handling.

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, concise sentence without redundancy. However, it lacks structure and additional detail that could fit into a few more sentences.

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 no output schema and minimal description, the tool definition is incomplete. The agent lacks information on response format, merge vs replace behavior, and error conditions, reducing its ability to use the tool correctly.

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

Parameters2/5

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

Schema description coverage is only 33% (only 'fields' has a description). The description adds no extra meaning beyond the schema for 'id' or 'webhook_url', leaving the agent without clarity on parameter semantics.

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 verb 'Actualiza' (updates) and the resource 'campos de una tarea existente' (fields of an existing task). This distinguishes it from sibling tools like create, list, get, and complete.

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 guidance is provided on when to use this tool versus alternatives. There is no mention of prerequisites, context, or when to avoid using it.

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/bit2beat/bitrix24-mcp'

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