Skip to main content
Glama
chatmcp

MCP Server Flomo

by chatmcp

write_note

Create and save markdown-formatted notes directly to Flomo using this tool. Ideal for quick text input and organization through the MCP Server Flomo interface.

Instructions

Write note to flomo

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesText content of the note with markdown format

Implementation Reference

  • MCP handler for the 'write_note' tool: validates content, instantiates FlomoClient, calls writeNote, checks result, and returns formatted success response.
    case "write_note": {
      const content = String(request.params.arguments?.content);
      if (!content) {
        throw new Error("Content is required");
      }
    
      const flomo = new FlomoClient({ apiUrl });
      const result = await flomo.writeNote({ content });
    
      if (!result.memo || !result.memo.slug) {
        throw new Error(
          `Failed to write note to flomo: ${result?.message || "unknown error"}`
        );
      }
    
      return {
        content: [
          {
            type: "text",
            text: `Write note to flomo success, result: ${JSON.stringify(
              result
            )}`,
          },
        ],
      };
    }
  • Input schema for the 'write_note' tool, defining the required 'content' string property.
      name: "write_note",
      description: "Write note to flomo",
      inputSchema: {
        type: "object",
        properties: {
          content: {
            type: "string",
            description: "Text content of the note with markdown format",
          },
        },
        required: ["content"],
      },
    },
  • src/index.ts:44-63 (registration)
    Registers the 'write_note' tool in response to ListToolsRequest by returning its specification.
    server.setRequestHandler(ListToolsRequestSchema, async (request) => {
      return {
        tools: [
          {
            name: "write_note",
            description: "Write note to flomo",
            inputSchema: {
              type: "object",
              properties: {
                content: {
                  type: "string",
                  description: "Text content of the note with markdown format",
                },
              },
              required: ["content"],
            },
          },
        ],
      };
    });
  • Helper function in FlomoClient that performs the actual POST request to the Flomo API to create a note and enhances the response with a memo URL.
    async writeNote({ content }: { content: string }) {
      try {
        if (!content) {
          throw new Error("invalid content");
        }
    
        const req = {
          content,
        };
    
        const resp = await fetch(this.apiUrl, {
          method: "POST",
          headers: {
            "Content-Type": "application/json",
          },
          body: JSON.stringify(req),
        });
    
        if (!resp.ok) {
          throw new Error(`request failed with status ${resp.statusText}`);
        }
    
        let result = await resp.json();
    
        if (result && result.memo && result.memo.slug) {
          const memoUrl = `https://v.flomoapp.com/mine/?memo_id=${result.memo.slug}`;
          result.memo.url = memoUrl;
        }
    
        return result;
      } catch (e) {
        throw e;
      }
    }
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions 'write' which implies a mutation operation, but doesn't specify authentication requirements, rate limits, side effects, or what happens on success/failure. This leaves significant gaps for a tool that creates content.

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 at just three words, front-loading the essential information with zero wasted words. It efficiently communicates the core purpose without unnecessary elaboration.

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?

For a write operation tool with no annotations and no output schema, the description is insufficiently complete. It doesn't address behavioral aspects like authentication, error handling, or what the tool returns, leaving the agent with significant uncertainty about how to properly use this mutation tool.

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?

The schema has 100% description coverage, with the single parameter 'content' clearly documented as 'Text content of the note with markdown format'. The description adds no additional parameter information beyond what the schema provides, meeting the baseline for high schema coverage.

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 ('write') and target resource ('note to flomo'), providing a specific verb+resource combination. However, with no sibling tools mentioned, there's no opportunity to distinguish from alternatives, preventing a perfect score.

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?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or contextual constraints. It simply states what the tool does without offering usage instructions.

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

Related 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/chatmcp/mcp-server-flomo'

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