Skip to main content
Glama
tylerjharden

odoo-json2

by tylerjharden

odoo_call

Call Odoo 19 External JSON-2 API methods to execute CRUD operations and custom methods on models, using named keyword arguments.

Instructions

Call one Odoo 19 External JSON-2 method: POST /json/2/{model}/{method}. Body is named kwargs only (ids, context, plus params). One SQL transaction per call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsNoRecord ids for record methods (read, write, unlink, …). Omit for @api.model methods.
debugNoIf true, include Odoo error.debug traceback on HTTP errors. Default false.
modelYesTechnical model name, e.g. res.partner
methodYesModel method, e.g. search_read
paramsNoExtra named kwargs for the method: domain, fields, limit, offset, values, … Do not use positional args.
contextNoOdoo context object, e.g. {"lang": "en_US"}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It discloses that it uses named kwargs and runs one SQL transaction per call, but it does not mention potential data mutation, error handling, authentication requirements, or side effects. For a generic method caller, this is a significant gap.

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?

Two sentences with zero fluff. The main action (calling a method) is front-loaded, followed by the key request format and transaction detail. Every word earns its place.

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 generic method-call tool with no output schema and no annotations, the description is too sparse. It does not explain the response format, error behavior, or how to construct complex params (e.g., domain, fields). The agent would have to infer too much from the schema alone, which is insufficient for a tool that can invoke arbitrary methods.

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 coverage is 100%, so baseline is 3. The description adds the note that only named kwargs (ids, context, plus params) are allowed, clarifying the relationship between parameters and going beyond the schema's individual descriptions. This raises the score to 4.

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?

States exactly what it does: calls one Odoo 19 External JSON-2 method via a specific HTTP endpoint. Clear verb+resource, and the sibling odoo_version is obviously different, so no ambiguity.

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

Usage Guidelines4/5

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

The description implies this is the tool for making method calls, and the only sibling is odoo_version which serves a different purpose. However, it does not explicitly state when not to use this tool or mention alternatives, so it falls short of a 5.

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