Skip to main content
Glama

update_article

Modify article statuses in Tiny Tiny RSS by setting, clearing, or toggling starred, published, unread, or note states for specified articles.

Instructions

更新文章状态。field: 0=星标, 1=已发布, 2=未读, 3=笔记。mode: 0=取消, 1=设置, 2=切换。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
article_idsYes文章 ID 列表,逗号分隔 (如 '123,456')
fieldYes操作字段: 0=星标, 1=已发布, 2=未读, 3=笔记
modeYes操作模式: 0=取消, 1=设置, 2=切换
dataNo当 field=3 (笔记) 时,笔记内容

Implementation Reference

  • Registration and tool handler for update_article in src/tools/articles.ts.
    server.tool(
      "update_article",
      "更新文章状态。field: 0=星标, 1=已发布, 2=未读, 3=笔记。mode: 0=取消, 1=设置, 2=切换。",
      {
        article_ids: z.string().describe("文章 ID 列表,逗号分隔 (如 '123,456')"),
        field: z.number().min(0).max(3).describe("操作字段: 0=星标, 1=已发布, 2=未读, 3=笔记"),
        mode: z.number().min(0).max(2).describe("操作模式: 0=取消, 1=设置, 2=切换"),
        data: z.string().optional().describe("当 field=3 (笔记) 时,笔记内容"),
      },
      async (params) => {
        try {
          const result = await client.updateArticle(params);
          return ok(`操作成功,更新了 ${result.updated} 篇文章`);
        } catch (e: unknown) {
          return fail(`更新文章失败: ${(e as Error).message}`);
        }
      },
    );
  • API client method for performing the update_article request.
    async updateArticle(params: {
      article_ids: string;
      mode: number;
      field: number;
      data?: string;
    }): Promise<{ status: string; updated: number }> {
      return this.request("updateArticle", params);
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden. It describes the action ('更新文章状态') and parameter meanings, but lacks behavioral traits like permissions needed, whether changes are reversible, rate limits, or what happens on success/failure. For a mutation tool with zero annotation coverage, this is a significant gap in transparency.

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 description is extremely concise and front-loaded, with two sentences that directly explain the tool's purpose and parameter meanings. Every sentence earns its place by providing essential information without waste, making it highly efficient in structure.

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 annotations and no output schema, the description is incomplete for a mutation tool. It covers basic purpose and parameters but lacks behavioral context, error handling, or return values. For a tool with 4 parameters and potential side effects, more completeness is needed to guide effective use.

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%, providing detailed parameter descriptions. The description adds minimal value by listing field and mode mappings (e.g., 'field: 0=星标'), which are already covered in the schema. It doesn't add syntax, format, or usage nuances beyond the schema, so baseline 3 is appropriate.

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 verb ('更新' meaning 'update') and resource ('文章状态' meaning 'article status'), specifying it's for updating article status. It distinguishes from siblings like get_article (read) or set_article_label (label-specific), but doesn't explicitly contrast with all siblings. The purpose is specific but lacks full sibling differentiation.

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. It doesn't mention prerequisites, context, or exclusions, such as when to use set_article_label instead for labels or share_to_published for publishing. Usage is implied only through parameter descriptions, with no explicit when/when-not statements.

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/aooiuu/ttrss-mcp'

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