Skip to main content
Glama
its-dart

Dart MCP Server

by its-dart

update_doc

Modify document details in Dart MCP Server by updating its title, text content, and folder location using the document ID.

Instructions

Update an existing doc. You can modify its title, text content, and folder.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderNoThe title of the folder to place the doc in
idYesThe 12-character alphanumeric ID of the doc
textNoThe text content of the doc, which can include markdown formatting
titleNoThe title of the doc

Implementation Reference

  • Handler for the update_doc tool. Validates the document ID using getIdValidated, casts arguments to DocUpdate type, calls DocService.updateDoc with the ID and update data, and returns the updated document as a JSON string in the tool response.
    case UPDATE_DOC_TOOL.name: {
      const id = getIdValidated(args.id);
      const docData = args as DocUpdate;
      const doc = await DocService.updateDoc(id, { item: docData });
      return {
        content: [{ type: "text", text: JSON.stringify(doc, null, 2) }],
      };
    }
  • Schema definition for the update_doc tool, specifying input parameters: required 'id' (12-char alphanumeric), optional 'title', 'text', and 'folder'.
    export const UPDATE_DOC_TOOL: Tool = {
      name: "update_doc",
      description:
        "Update an existing doc. You can modify its title, text content, and folder.",
      inputSchema: {
        type: "object",
        properties: {
          id: {
            type: "string",
            description: "The 12-character alphanumeric ID of the doc",
            pattern: "^[a-zA-Z0-9]{12}$",
          },
          title: {
            type: "string",
            description: "The title of the doc",
          },
          text: {
            type: "string",
            description:
              "The text content of the doc, which can include markdown formatting",
          },
          folder: {
            type: "string",
            description: "The title of the folder to place the doc in",
          },
        },
        required: ["id"],
      },
    };
  • index.ts:192-214 (registration)
    Registration of all tools including UPDATE_DOC_TOOL in the TOOLS array, which is served via ListToolsRequestSchema.
    const TOOLS = [
      // Config
      GET_CONFIG_TOOL,
      // Tasks
      CREATE_TASK_TOOL,
      LIST_TASKS_TOOL,
      GET_TASK_TOOL,
      UPDATE_TASK_TOOL,
      DELETE_TASK_TOOL,
      // Docs
      CREATE_DOC_TOOL,
      LIST_DOCS_TOOL,
      GET_DOC_TOOL,
      UPDATE_DOC_TOOL,
      DELETE_DOC_TOOL,
      // Comments
      ADD_TASK_COMMENT_TOOL,
      LIST_TASK_COMMENTS_TOOL,
      // Other
      GET_DARTBOARD_TOOL,
      GET_FOLDER_TOOL,
      GET_VIEW_TOOL,
    ];
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 states this is an update operation (implying mutation) but doesn't disclose behavioral traits like permission requirements, whether changes are reversible, rate limits, or what happens to unspecified fields. 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 a single, efficient sentence that front-loads the core purpose ('Update an existing doc') and specifies modifiable fields. There is no wasted verbiage, and every word contributes to understanding the tool's function.

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 this is a mutation tool with no annotations and no output schema, the description is incomplete. It doesn't explain what the tool returns, error conditions, or behavioral constraints. While the schema covers parameters well, the overall context for safe and effective use is lacking, especially for an update operation.

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 the schema fully documents all four parameters (id, title, text, folder). The description lists modifiable fields ('title, text content, and folder'), which aligns with the schema but adds no additional semantic context beyond what's already in the parameter descriptions. Baseline 3 is appropriate when the schema does the heavy lifting.

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 ('Update') and resource ('an existing doc'), and specifies what can be modified ('title, text content, and folder'). It distinguishes from creation tools like 'create_doc' by emphasizing 'existing'. However, it doesn't explicitly differentiate from other update tools like 'update_task' beyond the resource name.

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. It doesn't mention prerequisites (e.g., needing the doc ID), when not to use it (e.g., for creating new docs), or compare it to sibling tools like 'update_task'. Usage is implied through the action and resource but not explicitly stated.

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/its-dart/dart-mcp-server'

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