Skip to main content
Glama
solutionsunity

OdooSurface MCP

fetch_and_upload

Load a file from a URL or local path and store it as an Odoo attachment. Replace an existing attachment by providing its ID, or omit to create a new one. Returns the attachment ID and source URL.

Instructions

💡 Before multi-step work, check find_skill / list_workflows for canonical recipes. Load a file from a URL or local absolute path and store it as an Odoo ir.attachment. The MCP server handles the transfer — no binary passes through the AI context. Pass attachment_id to replace an existing attachment in-place (same ID, no arch update needed). Omit attachment_id to create a new attachment. Returns {id, src} usable in any context (arch_db, chatter, record field).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
publicNo
res_idNo
sourceYes
is_imageNo
res_modelNoir.ui.view
attachment_idNo
Behavior3/5

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

With no annotations, the description carries full burden. It discloses that the server handles transfer (no binary in context) and that using attachment_id replaces in-place without architecture update. Some behavioral aspects are covered, but it omits safety details like error handling or destructive potential.

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?

The description is moderately concise with a tip and three operational sentences. However, it could be tightened by removing the emoji and better front-loading the core action.

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?

Given the complexity (7 params, no annotations, no output schema), the description is incomplete. It fails to document most parameters and does not fully describe return values beyond {id, src}, leaving significant gaps for an AI agent.

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

Parameters2/5

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

Schema description coverage is 0%. The description explains only source and attachment_id, leaving 5 other parameters (name, public, res_id, is_image, res_model) undocumented. This is insufficient for a 7-parameter tool.

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 loads a file from a URL or local path and stores it as an ir.attachment. It also provides a hint to check sibling tools for canonical recipes, distinguishing its purpose.

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?

The description offers a usage tip to check find_skill/list_workflows before multi-step work and explains when to use attachment_id vs omit. However, it lacks explicit guidance on when not to use this tool versus siblings like upload_binary.

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