Skip to main content
Glama
solutionsunity

OdooSurface MCP

upload_binary

Upload a local file to an Odoo binary field. Reads the file from an absolute path and writes it to the specified record's field, enabling cross-instance binary migration.

Instructions

💡 Before multi-step work, check find_skill / list_workflows for canonical recipes. Upload a local file into an Odoo record's binary field. Reads the file at source_path (absolute path on the MCP server filesystem), encodes it, and writes it to the specified field via the ORM — no base64 in AI context. Use this as the target step in a cross-instance binary migration: call download_binary on source MCP first, then upload_binary on target MCP using the same path. Returns {success, model, record_id, field, size_bytes} or {error}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldYes
modelYes
record_idYes
source_pathYes
Behavior4/5

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

With no annotations, the description reveals key behaviors: reads file from absolute path on server filesystem, encodes, writes via ORM, and returns success/error. It also notes that no base64 appears in AI context, enhancing transparency for a write operation.

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 a single paragraph that front-loads a helpful tip, then states the primary action, migration use case, and return format. Every sentence adds value, no fluff.

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?

Given 4 parameters, no output schema, and no annotations, the description covers the main use case and return format, but lacks details on error handling, file limitations, or parameter constraints. It references sibling download_binary but not fetch_and_upload.

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 coverage is 0%, but parameter names are self-explanatory. The description adds context for source_path (absolute path on server) and field (binary field), but does not detail model or record_id. This partially compensates for the lack of schema descriptions.

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 clearly states the tool uploads a local file into an Odoo record's binary field, distinguishing it from siblings like download_binary and fetch_and_upload. It specifies the verb 'upload' and resource 'file into Odoo record's binary field', with additional context about reading from source_path and encoding.

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 provides explicit guidance: check find_skill/list_workflows for recipes, and use this as the target step in a cross-instance binary migration with download_binary. It does not list when not to use it, but the migration context clearly distinguishes from alternatives.

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/solutionsunity/odoo-surface-mcp'

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