Skip to main content
Glama
informatics-isi-edu

Deriva MCP Server

Official

insert_records

Insert new records into domain-specific tables, such as Subject or image metadata. Provide table name and list of record dictionaries to add rows and get inserted count and RIDs.

Instructions

Insert new records into a domain table.

IMPORTANT: This tool is for domain-specific tables only (e.g., Subject, Image metadata). Do NOT use for:

  • Datasets → use create_dataset(), add_dataset_members()

  • Features → use add_feature_value()

  • Vocabularies → use add_term()

  • Executions → use create_execution()

  • Workflows → use create_workflow()

  • Assets with files → use the DerivaML Python API execution workflow

Args: table_name: Name of the domain table to insert into. records: List of dictionaries with column values.

Returns: JSON with inserted_count and record RIDs.

Example: insert_records("Subject", [{"Name": "Patient A", "Age": 45}])

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
recordsYes
table_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It does state it inserts records (mutation), returns JSON with inserted_count and RIDs, and provides an example. However, it omits important behavioral traits like permission requirements, schema validation, whether tables must already exist, or error handling behavior.

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 a clear one-line purpose, an IMPORTANT exclusion block, Args, Returns, and Example sections. It's slightly lengthy but every section serves a purpose, and the exclusions are essential. The front-loaded opening is effective.

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 and the presence of a large sibling set, the description covers purpose, exclusions, parameters, return format, and an example. It lacks explicit statements about table existence or column validation, but with an output schema present, this is reasonably complete. A small gap is the absence of prerequisites like 'table must already exist'.

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?

Schema description coverage is 0%, so the description fully compensates. It explicitly explains both parameters: 'table_name: Name of the domain table to insert into' and 'records: List of dictionaries with column values', plus a concrete example. This adds significant meaning beyond the bare schema types.

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 states 'Insert new records into a domain table' with a specific verb and resource, immediately distinguishing it from siblings. It further enumerates exclusions (datasets, features, vocabularies, executions, workflows, assets) with alternative tool names, providing clear sibling differentiation.

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?

Explicitly marks the tool for domain-specific tables only, and provides a detailed 'Do NOT use for' list with specific alternative tools (e.g., create_dataset, add_feature_value, add_term). This gives the agent unambiguous when-to-use and when-not-to-use guidance.

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/informatics-isi-edu/deriva-mcp'

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