Skip to main content
Glama

upsert_molecules_batch

Insert or update multiple molecules under a chemical class, matching records by case-insensitive name to prevent duplicate entries.

Instructions

Batch insert or update molecules under a specific chemical class matching on lower(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_class_id": "<chemical_class_id>",
      "molecules": "<molecules>"
    },
    "name": "upsert_molecules_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
moleculesYesArray of molecules to upsert
chemical_class_idYesParent Chemical Class ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the whole behavioral burden, and it does disclose the important part: the match key is lower(name), so case-insensitive name collisions resolve to updates rather than duplicates. It stops short of stating which existing fields are overwritten on match, whether deletes are possible, or any auth/limit constraints.

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?

A single, front-loaded sentence with no filler. The operation, the resource, the scope, and the match rule all appear in one pass, which is exactly the density an agent needs.

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

Completeness3/5

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

Parameters are fully documented and there is no output schema to explain, but with no annotations and a mutating upsert, the description omits what the call returns and what happens to non-key fields on conflict. An agent can invoke it but cannot predict its effect on existing records.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema by identifying name as the matching key and clarifying it is compared case-insensitively. It says nothing about how chemical_class_id is validated or how themes/description behave on update, keeping it out of the top band.

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 gives a specific verb pair (batch insert or update) and a specific resource (molecules) scoped under a chemical class, which cleanly separates it from single-record tools like create_molecule. It does not name the nearest sibling (populate_molecules_bulk or upsert_chemical_classes_batch), so sibling differentiation is only implicit.

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?

"Batch insert or update" implies when this tool is preferable to single-create calls, and "matching on lower(name)" hints at the conflict condition. However, there is no explicit when-to-use/when-not guidance and no named alternative for bulk-populate or single-upsert paths.

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