Skip to main content
Glama
bit2beat

Bitrix24 MCP server

b24_products_get

Retrieve full product details from Bitrix24 by providing the product ID.

Instructions

Obtiene el detalle completo de un producto por ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID del producto
webhook_urlNo

Implementation Reference

  • The handler function that executes the 'b24_products_get' tool logic. It creates a Bitrix24Client, calls 'catalog.product.get' with the provided ID, and returns the product details.
    export async function productsGet({ id, webhook_url }) {
      const client = new Bitrix24Client(resolveWebhook(webhook_url));
      const res = await client.call('catalog.product.get', { id });
      return { portal: client.portal, product: res.result };
    }
  • Zod schema for the 'b24_products_get' tool. Defines input: id (string|number) and webhook_url (optional URL).
    export const productsGetSchema = z.object({
      id: z.union([z.string(), z.number()]).describe('ID del producto'),
      webhook_url: z.string().url().optional(),
    });
  • index.js:267-269 (registration)
    Registration of the 'b24_products_get' tool on the MCP server, binding the schema and handler via wrap().
    server.tool('b24_products_get',
      'Obtiene el detalle completo de un producto por ID.',
      productsGetSchema.shape, wrap(productsGet));
  • Uses 'Bitrix24Client' from '../bitrix24/client.js' and 'resolveWebhook' from '../utils/resolve-webhook.js' as helpers to execute the API call.
    export async function productsGet({ id, webhook_url }) {
      const client = new Bitrix24Client(resolveWebhook(webhook_url));
      const res = await client.call('catalog.product.get', { id });
      return { portal: client.portal, product: res.result };
    }
Behavior2/5

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

The description states 'gets the full detail' but does not reveal what constitutes full detail, nor does it mention any behavioral traits such as authentication requirements, error handling (e.g., ID not found), or side effects. With no annotations provided, the description carries the full burden but falls short.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence with no unnecessary words. However, it is too brief and lacks important details, making it under-specified rather than efficiently informative. It could be improved by adding context without becoming verbose.

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 tool's complexity (2 parameters, no output schema, no annotations), the description is incomplete. It does not describe the return format, error scenarios, or the purpose of the optional webhook_url. This leaves the agent with insufficient information to use the tool effectively.

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?

The schema has 2 parameters with 50% description coverage (id has a description, webhook_url does not). The description does not add any meaning beyond the schema; it only reiterates that the tool gets a product by ID. The webhook_url parameter is not explained, so the description fails to compensate for the schema's lack of clarity.

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

Purpose4/5

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

The description clearly states the action (obtiene detalle completo) and the resource (producto por ID). It effectively conveys that this tool retrieves a full product detail by its ID. However, it does not explicitly differentiate itself from sibling tools like b24_products_list or b24_products_sections, though the tool name and description imply it is for individual retrieval.

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. For example, there is no mention that for listing products one should use b24_products_list, or that b24_products_get is intended only when the ID is known. The description lacks any contextual usage advice.

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