Skip to main content
Glama

ym_call_method

Destructive

Execute Yandex Market Partner API operations by operation ID; write and destructive calls require explicit confirmation to proceed.

Instructions

Execute one catalog endpoint by operation_id.

Read endpoints run immediately. WRITE endpoints require confirm_write=true. DESTRUCTIVE endpoints require confirm_write=true AND i_understand_this_modifies_data=true (nothing is sent otherwise).

Args: operation_id: id from the catalog (see {svc}_search_methods). path_values: values for {placeholders} in the path. query: query-string parameters. body: JSON request body. confirm_write: required for write/destructive operations. i_understand_this_modifies_data: required for destructive operations. Returns JSON: {"ok": true, "status", "data"} or the error envelope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNo
queryNo
path_valuesNo
operation_idYes
confirm_writeNo
i_understand_this_modifies_dataNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.3

TDQS

A4.8/5.0
Behavior5/5

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

The description discloses exactly how the guardrails behave: read endpoints run immediately, writes require confirm_write, destructive endpoints require both confirm_write and i_understand_this_modifies_data. This meaningfully exceeds the annotations (destructiveHint=true) by explaining the safety mechanism and that nothing is sent for destructive endpoints without explicit confirmation.

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?

The purpose is stated in the first sentence, the safety escalation (read → write → destructive) is in a clear three-line block, and every parameter has a one-line definition. No filler; high signal density.

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

Completeness5/5

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

For a generic endpoint executor, the description covers prerequisites (operation_id from ym_search_methods), argument categories, write/destructive guardrails, and the response envelope. The catalog linkage and output-shape note make it self-sufficient despite the absence of an output schema.

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?

With schema descriptions at 0%, the description compensates fully: it defines operation_id as a catalog ID, path_values as placeholder substitutions, query as query-string parameters, body as the request JSON, and both safety flags with exact conditions. This is exactly the extra meaning an agent needs to invoke the call correctly.

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?

Opens with a specific verb and resource: 'Execute one catalog endpoint by operation_id.' This immediately frames the tool as the execution counterpart to discovery tools like ym_search_methods and ym_describe_method, and the read/write/destructive breakdown further sharpens what it does.

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

Usage Guidelines4/5

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

Provides clear operational guidance: operation_ids come from {prefix}_search_methods, writes require confirm_write=true, destructive calls require the additional i_understand_this_modifies_data=true, and reads run immediately. It does not explicitly contrast with siblings like ym_call_raw, so the when-to-use-vs-alternative guidance is good but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.