Skip to main content
Glama

businessobject-update

Create or update Business Objects in Simplifier platform with proper project assignments and dependency management for accessing connectors and other business objects.

Instructions

#Create or update a Business Object

Attention: When updating dependencies or tags, allways fetch the Business Object resource first to ensure operating on the latest version. Existing dependencies and tags have to be resent when doing an update - otherwise they would be cleared.

Dependencies are REQUIRED to be added when the BO functions access connectors or other BOs using Simplifier.Connector.* or Simplifier.BusinessObject.* APIs.

Project Assignment

Business Objects must be assigned to projects using the project assignment parameters:

For Creating New BOs:

  • Set projectsBefore to empty array []

  • Set projectsAfterChange to array of project names to assign the BO to

For Updating Existing BOs:

  • Set projectsBefore to current project assignments (from existing BO)

  • Set projectsAfterChange to new project assignments

Example:

{
  "name": "MyBusinessObject",
  "projectsBefore": [],
  "projectsAfterChange": ["ProjectA", "ProjectB"]
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
descriptionYes
dependenciesYesArray of dependencies that this BO requires. CRITICAL: Add connectors and other BOs that will be accessed from BO functions using Simplifier.Connector.<Name> or Simplifier.BusinessObject.<Name> syntax. If not provided when updating, existing dependencies will be preserved.
tagsYesArray of tags for categorizing and organizing this Business Object. If not provided when updating, existing tags will be preserved.
projectsBeforeNoProject names before the change. Use empty array [] when creating new BOs, or provide current projects when updating.
projectsAfterChangeNoProject names to assign the BO to. Required for tracking project assignments.

Implementation Reference

  • The handler function for the 'businessobject-update' tool. It checks if the Business Object exists, constructs the details object including project assignments, and calls either createServerBusinessObject or updateServerBusinessObject on the SimplifierClient.
    }, async ({ name, description, dependencies, tags, projectsBefore, projectsAfterChange }) => {
      return wrapToolResult(`create or update Business Object ${name}`, async () => {
        const trackingKey = trackingToolPrefix + toolNameBusinessObjectUpdate
        let oExisting: any;
        try { oExisting = await simplifier.getServerBusinessObjectDetails(name, trackingKey) } catch { }
        const data: SimplifierBusinessObjectDetails = {
          name: name,
          description: description,
          dependencies: dependencies,
          tags: tags,
          assignedProjects: {
            projectsBefore: projectsBefore || [],
            projectsAfterChange: projectsAfterChange || []
          }
        } as SimplifierBusinessObjectDetails
        if (oExisting) {
          return simplifier.updateServerBusinessObject(data);
        } else {
          return simplifier.createServerBusinessObject(data)
        }
      })
    });
  • Zod input schema for the 'businessobject-update' tool parameters including name, description, dependencies, tags, and project assignments.
    {
      name: z.string(),
      description: z.string(),
      // defaults have been removed for description, dependencies and tags, so that we can add the existing values, if the properties are
      // not given at all
      dependencies: z.array(z.object({
        refType: z.enum(['connector', 'serverbusinessobject', 'plugin']).describe('Type of dependency: "connector" for data connectors, "serverbusinessobject" for other Business Objects, "plugin" for Plugins'),
        name: z.string().describe('name of the connector or server business object (bo) to depend on')
      })).describe('Array of dependencies that this BO requires. CRITICAL: Add connectors and other BOs that will be accessed from BO functions using Simplifier.Connector.<Name> or Simplifier.BusinessObject.<Name> syntax. If not provided when updating, existing dependencies will be preserved.'),
      tags: z.array(z.string()).describe('Array of tags for categorizing and organizing this Business Object. If not provided when updating, existing tags will be preserved.'),
      projectsBefore: z.array(z.string()).default([]).describe('Project names before the change. Use empty array [] when creating new BOs, or provide current projects when updating.'),
      projectsAfterChange: z.array(z.string()).default([]).describe('Project names to assign the BO to. Required for tracking project assignments.')
    },
  • Registration of the 'businessobject-update' tool on the McpServer, defining name, description, input schema, metadata, and handler.
    const toolNameBusinessObjectUpdate = "businessobject-update"
    server.tool(toolNameBusinessObjectUpdate,
      businessObjectUpdateDescription,
      {
        name: z.string(),
        description: z.string(),
        // defaults have been removed for description, dependencies and tags, so that we can add the existing values, if the properties are
        // not given at all
        dependencies: z.array(z.object({
          refType: z.enum(['connector', 'serverbusinessobject', 'plugin']).describe('Type of dependency: "connector" for data connectors, "serverbusinessobject" for other Business Objects, "plugin" for Plugins'),
          name: z.string().describe('name of the connector or server business object (bo) to depend on')
        })).describe('Array of dependencies that this BO requires. CRITICAL: Add connectors and other BOs that will be accessed from BO functions using Simplifier.Connector.<Name> or Simplifier.BusinessObject.<Name> syntax. If not provided when updating, existing dependencies will be preserved.'),
        tags: z.array(z.string()).describe('Array of tags for categorizing and organizing this Business Object. If not provided when updating, existing tags will be preserved.'),
        projectsBefore: z.array(z.string()).default([]).describe('Project names before the change. Use empty array [] when creating new BOs, or provide current projects when updating.'),
        projectsAfterChange: z.array(z.string()).default([]).describe('Project names to assign the BO to. Required for tracking project assignments.')
      },
      {
        title: "Create or update a Business Object",
        readOnlyHint: false,
        destructiveHint: false,
        idempotentHint: false,
        openWorldHint: true
      }, async ({ name, description, dependencies, tags, projectsBefore, projectsAfterChange }) => {
        return wrapToolResult(`create or update Business Object ${name}`, async () => {
          const trackingKey = trackingToolPrefix + toolNameBusinessObjectUpdate
          let oExisting: any;
          try { oExisting = await simplifier.getServerBusinessObjectDetails(name, trackingKey) } catch { }
          const data: SimplifierBusinessObjectDetails = {
            name: name,
            description: description,
            dependencies: dependencies,
            tags: tags,
            assignedProjects: {
              projectsBefore: projectsBefore || [],
              projectsAfterChange: projectsAfterChange || []
            }
          } as SimplifierBusinessObjectDetails
          if (oExisting) {
            return simplifier.updateServerBusinessObject(data);
          } else {
            return simplifier.createServerBusinessObject(data)
          }
        })
      });
  • Top-level call to registerServerBusinessObjectTools within the main registerTools function, which includes the businessobject-update tool registration.
    registerServerBusinessObjectTools(server, simplifier)
Behavior4/5

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

Annotations indicate readOnlyHint=false (mutation), openWorldHint=true (flexible inputs), idempotentHint=false (non-idempotent), and destructiveHint=false (non-destructive). The description adds valuable behavioral context beyond this: it warns about the need to fetch the latest version before updates to avoid conflicts, clarifies that dependencies and tags must be resent during updates or they will be cleared, and specifies that dependencies are REQUIRED for certain API accesses. This enriches the agent's understanding of mutation risks and prerequisites.

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 well-structured with clear sections (attention notes, project assignment rules, example) and uses markdown formatting effectively. It is appropriately sized for a complex tool with 6 parameters, though it could be slightly more concise by integrating some schema-like details. Every sentence adds value, such as warnings about data preservation and project handling.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (6 parameters, mutation operation, no output schema), the description is largely complete. It covers purpose, usage guidelines, critical behavioral nuances, and parameter semantics. However, it lacks details on the response format or error handling, which would be helpful since there's no output schema. The annotations provide safety context, but the description fills in practical gaps well.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema description coverage at 67%, the description compensates significantly by explaining parameter semantics not fully covered in the schema. It details the critical role of dependencies (required for Simplifier.Connector.* or Simplifier.BusinessObject.* APIs), provides explicit rules for projectsBefore and projectsAfterChange parameters with creation vs. update scenarios, and includes a practical JSON example. This adds substantial meaning beyond the schema's basic property descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool's purpose: 'Create or update a Business Object.' It distinguishes this from sibling tools like businessobject-delete, businessobject-function-update, and connector-update by focusing on the core Business Object resource itself rather than functions, connectors, or deletion operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool: for creating or updating Business Objects. It includes critical warnings about fetching the latest version before updates and resending dependencies/tags to avoid clearing them. It also distinguishes usage between creation (projectsBefore as empty array) and updates (projectsBefore as current assignments), offering clear alternatives within the tool's scope.

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/simplifier-ag/simplifier-mcp'

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