Skip to main content
Glama

upsert_chemical_classes_batch

Batch insert or update chemical classes by matching existing names case-insensitively, so you can add new classes and revise current ones in one call.

Instructions

Batch insert or update chemical classes matching case-insensitively on name.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chemical_classes": "<chemical_classes>"
    },
    "name": "upsert_chemical_classes_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
chemical_classesYesArray of chemical classes to upsert

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the most important behavioral trait for an upsert: the match is case-insensitive on name, so existing rows are found regardless of casing. It omits equally load-bearing behavior: whether a matched record's description field is overwritten or left alone, whether the batch is atomic or partially applied on failure, and whether any permission or ordering constraints apply.

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?

One sentence, front-loaded with the operation and resource, with the matching rule attached as a qualifier. Nothing is redundant and no filler precedes the operative information.

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?

This is a batch mutation with no annotations and no output schema, so the description is the only place an agent can learn what happens on partial failure, which fields get overwritten on match, and what the call returns (e.g., counts of inserted vs updated). None of that is present, leaving meaningful risk for an agent invoking a bulk write.

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% for the single parameter, so the schema already documents the array and its fields; baseline 3 applies. The description does add real meaning by establishing that 'name' is the identity key and matched case-insensitively, but it says nothing about how 'description' behaves on update versus insert.

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?

States a specific verb pair ('batch insert or update') and an exact resource ('chemical classes'), plus the conflict key ('matching case-insensitively on name'). An agent can tell it apart from the single-record create_chemical_class/update_chemical_class siblings by the 'batch' qualifier, though no sibling is named.

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

Usage Guidelines3/5

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

The word 'batch' plus 'insert or update' implies this is for bulk loading where duplicates may exist, which steers an agent away from the single-record tools. However, it never says when to prefer this over create_chemical_class/update_chemical_class or populate_chemical_classes, nor does it state any prerequisite such as an existing platform/dataset.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.