Skip to main content
Glama

share_to_published

Publish articles to your Tiny Tiny RSS feed by creating entries in the Published source with title, URL, and content.

Instructions

创建一篇文章到已发布 (Published) 源中

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes文章标题
urlYes文章 URL
contentYes文章内容

Implementation Reference

  • Tool registration and handler definition for 'share_to_published'. It wraps the client's 'shareToPublished' method.
    server.tool(
      "share_to_published",
      "创建一篇文章到已发布 (Published) 源中",
      {
        title: z.string().describe("文章标题"),
        url: z.string().url().describe("文章 URL"),
        content: z.string().describe("文章内容"),
      },
      async (params) => {
        try {
          await client.shareToPublished(params);
          return ok("分享到已发布成功");
        } catch (e: unknown) {
          return fail(`分享失败: ${(e as Error).message}`);
        }
      },
    );
  • Actual implementation of the shareToPublished method in TtrssClient, which sends the request to the API.
    async shareToPublished(params: {
      title: string;
      url: string;
      content: string;
    }): Promise<{ status: string }> {
      return this.request("shareToPublished", params);
    }

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