Skip to main content
Glama

count_article_blocks

Получить количество блоков статьи, удовлетворяющих фильтрам. Принимает те же параметры, что и get_article_blocks, но возвращает только blocksCount, без самих блоков.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "article_id": "<article_id>"
    },
    "name": "count_article_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
typesNoРазрешённые типы блоков. Пустой список или None — без фильтра по типу.
searchNoМассив подстрок для поиска (OR между элементами). Блок проходит фильтр, если хотя бы одна подстрока встречается в любом строковом значении внутри поля data блока (рекурсивно). Сравнение регистронезависимое. Пустые строки игнорируются.
article_idYesИдентификатор статьи

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden. It does disclose the key behavioral trait — the response contains only blocksCount and no block payloads — but says nothing about read-only nature, permissions, error behavior for a missing article, or filtering semantics, which is a meaningful gap for an unannotated tool.

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?

Two short sentences, zero filler, and the distinguishing behavior is stated up front. Every clause earns its place.

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?

Filtering is fully documented in the schema and an output schema exists, so return structure need not be explained. The description still notes that only blocksCount is returned, which is helpful; the only missing piece is error/precondition behavior, a minor gap given the tool's simplicity.

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%, so types, search, and article_id are all documented in the schema itself. The description adds only a cross-reference to get_article_blocks for parameter meaning, not any additional syntax or semantics, so the baseline 3 applies.

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?

A specific verb and resource (count article blocks) plus explicit scope (only blocks matching the filters). It names the sibling get_article_blocks and states the precise difference — same parameters, returns only blocksCount — so an agent can distinguish the two immediately.

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?

"Accepts the same parameters as get_article_blocks but returns only blocksCount, without the blocks themselves" effectively tells the agent when to pick this over the sibling: when only the count is needed. It does not spell out exclusions or preconditions (e.g. article must exist), so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources