Skip to main content
Glama
My Awesome MCP Server

My Awesome MCP Server

by fabiancasta

create_record

Creates a new record in a specified Odoo ERP model from field values. Supply an idempotency key to avoid duplicate records.

Instructions

Create a record.

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": {
      "model": "<model>",
      "values": "<values>"
    },
    "name": "create_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesTechnical model name, e.g. 'res.partner'
valuesYesField values
idempotency_keyNoOptional. A key unique to this change (e.g. a UUID). Repeating the call with the same key returns the first result instead of creating a duplicate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Optional. A key unique to this change (e.g. a UUID). Repeating the call with the same key returns the first result instead of creating a duplicate.",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

C2.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the basic write semantics are covered structurally. The description adds nothing beyond that – no note on required model permissions, validation failures, or what happens when values contain invalid fields – and no annotation contradiction exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

One short sentence with zero padding, so nothing is wasted, but it is under-specified rather than front-loaded with useful detail. Brevity here reflects an absence of content rather than disciplined editing.

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?

For a write tool with a nested values object and no output schema, the agent needs to know what a successful call returns (e.g., the new record ID) and how values map to model fields. None of that appears, leaving a real gap for a mutation operation.

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 model, values, and idempotency_key are already documented in the schema, including the duplicate-suppression behavior of the idempotency key. The description adds no meaning beyond the schema; baseline 3 applies.

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

Purpose2/5

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

"Create a record" restates the tool name and adds no scope, no resource specificity, and no distinction from siblings like update_record or search_records. An agent learns nothing it could not infer from the name alone.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no mention of prerequisites, and no reference to any alternative such as update_record for existing rows. The agent must guess at the boundary between creating and updating.

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