Skip to main content
Glama

update_tile

Modify tile details like title, description, split attributes, and leaf status to maintain accurate hierarchical research organization.

Instructions

Update a tile's information (title, description, split attributes, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tileIdYesID of the tile to update
titleNoNew title
descriptionNoNew description (precise definition)
splitAttributeNoUpdated split attribute
splitRationaleNoUpdated split rationale
isLeafNoMark as leaf node

Implementation Reference

  • Core implementation of updateTile method in ResearchTreeManager class. Updates specified tile properties (title, description, split info, isLeaf) and updates timestamp.
    updateTile(
      tileId: string,
      updates: {
        title?: string;
        description?: string;
        splitAttribute?: string;
        splitRationale?: string;
        isLeaf?: boolean;
      }
    ): Tile {
      const tile = this.tiles.get(tileId);
      if (!tile) {
        throw new Error(`Tile ${tileId} not found`);
      }
    
      if (updates.title !== undefined) tile.title = updates.title;
      if (updates.description !== undefined) tile.description = updates.description;
      if (updates.splitAttribute !== undefined) tile.splitAttribute = updates.splitAttribute;
      if (updates.splitRationale !== undefined) tile.splitRationale = updates.splitRationale;
      if (updates.isLeaf !== undefined) tile.isLeaf = updates.isLeaf;
    
      tile.updatedAt = new Date();
    
      return tile;
    }
  • MCP tool execution handler for 'update_tile'. Parses arguments, calls treeManager.updateTile, and returns JSON stringified result.
    case "update_tile": {
      const result = treeManager.updateTile(args.tileId as string, {
        title: args.title as string | undefined,
        description: args.description as string | undefined,
        splitAttribute: args.splitAttribute as string | undefined,
        splitRationale: args.splitRationale as string | undefined,
        isLeaf: args.isLeaf as boolean | undefined,
      });
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(result, null, 2),
          },
        ],
      };
    }
  • src/index.ts:180-213 (registration)
    Tool registration in TOOLS array, including name, description, and input schema definition.
    {
      name: "update_tile",
      description: "Update a tile's information (title, description, split attributes, etc.)",
      inputSchema: {
        type: "object",
        properties: {
          tileId: {
            type: "string",
            description: "ID of the tile to update",
          },
          title: {
            type: "string",
            description: "New title",
          },
          description: {
            type: "string",
            description: "New description (precise definition)",
          },
          splitAttribute: {
            type: "string",
            description: "Updated split attribute",
          },
          splitRationale: {
            type: "string",
            description: "Updated split rationale",
          },
          isLeaf: {
            type: "boolean",
            description: "Mark as leaf node",
          },
        },
        required: ["tileId"],
      },
    },
  • Input schema for update_tile tool, defining parameters and validation.
    inputSchema: {
      type: "object",
      properties: {
        tileId: {
          type: "string",
          description: "ID of the tile to update",
        },
        title: {
          type: "string",
          description: "New title",
        },
        description: {
          type: "string",
          description: "New description (precise definition)",
        },
        splitAttribute: {
          type: "string",
          description: "Updated split attribute",
        },
        splitRationale: {
          type: "string",
          description: "Updated split rationale",
        },
        isLeaf: {
          type: "boolean",
          description: "Mark as leaf node",
        },
      },
      required: ["tileId"],
    },
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 'update' implying mutation but doesn't disclose behavioral traits like required permissions, 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core action ('update a tile's information') with illustrative examples. There's no wasted text, though it could be slightly more structured (e.g., separating purpose from examples). It earns its place but isn't perfectly optimized.

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 a mutation tool with 6 parameters, no annotations, and no output schema, the description is incomplete. It lacks behavioral context (e.g., error handling, side effects), doesn't explain return values, and provides minimal guidance. The 100% schema coverage helps with parameters, but overall context is insufficient for safe and 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%, so the schema fully documents all 6 parameters. The description adds minimal value by listing examples (title, description, split attributes, etc.) that align with parameters, but doesn't provide additional semantics beyond what's in the schema. Baseline 3 is appropriate as 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 verb 'update' and resource 'tile's information' with specific examples (title, description, split attributes, etc.). It distinguishes from siblings like 'get_tile' (read) and 'split_tile' (different operation), though it doesn't explicitly contrast with all siblings. The purpose is specific but could be more distinct from similar tools.

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., tile must exist), when not to use it (e.g., for creating new tiles vs. updating existing ones), or refer to sibling tools like 'create_tree' or 'split_tile' for related operations. Usage is implied by the name 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

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/k-chrispens/tiling-trees-mcp'

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