Static source inference · medium confidence · detected: Logging
Deprecated protocol patterns detected
Summary
This server has 13 tools with moderate-quality definitions. Most tools have descriptions and input schemas present, but they suffer from several critical issues: (1) The 'execute_method' tool is dangerously generic with no constraints, accepting arbitrary model names and methods, this is a major security and usability red flag. (2) Descriptions are mostly Spanish-language, limiting LLM understanding in English contexts. (3) Parameter descriptions are minimal and lack format/constraint guidance (e.g., date filters lack examples or validation hints). (4) Output schemas are not documented, the tools return success/error dicts but do not declare the shape of successful results. (5) No tool provides pagination metadata or guidance for chaining (e.g., when a search returns IDs, do they work in downstream tools?). (6) Error handling is generic; responses like 'error: str(e)' give the agent no recovery path. The tools themselves are well-intentioned (accounting, inventory, sales, purchase modules are logically organized) but lack the polish and clarity required for production agent use.
execute_method tool is an unrestricted RPC gateway with no permission checks, method whitelist, or security constraints. Any caller can invoke any Odoo model method with arbitrary args/kwargs, enabling data corruption, deletion, or information disclosure.
Output schemas are not documented for any tool. Agents have no visibility into the shape of successful responses, forcing them to infer field names and structures, this causes hallucination and chaining failures.
DELETE or completely redesign execute_method. If custom method execution is necessary, implement a strict whitelist of allowed (model, method) pairs, add permission checks, rate limiting, and audit logging. Currently it is a security vulnerability.
Document output schemas for all 13 tools. Include the shape of the success response (e.g., for search_journal_entries: { count: int, total_count: int, entries: [{name, ref, date, journal_id, state, amount_total, lines: [...]}, ...] }).
Translate all tool descriptions to English (or at minimum, provide English variants). Tool descriptions in Spanish will confuse English-trained LLMs.
Add type and description to all array/object parameters. For create_journal_entry.lines, document that each line must have: { account_id: int (required), name: string (optional), debit: float, credit: float }. For analyze_financial_ratios.ratios, list valid ratio names (ROE, EBITDA, debt_to_equity, etc.).
Add enum constraints to state filters. For search_journal_entries, define state enum: ['draft', 'posted', 'cancelled']. For search_purchase_orders and search_sales_orders, define the enum of valid states per Odoo business logic.
Enhance error messages with recovery guidance. Instead of {'success': False, 'error': 'An error occurred'}, return {'success': False, 'error': 'Journal not found (ID=123). Valid journal IDs: [1, 5, 7]. Or call search_journal_entries() to find available journals.'}
Mark state-changing tools (create_*) in descriptions as WRITE operations. E.g., 'Creates a new journal entry (WRITE). This is irreversible; use cautiously.'
Spec posture evidence
Inferred effective spec: <=2025-11-25.
Relies on Logging (deprecated) - log to stderr or use OpenTelemetry
Parameter descriptions are minimal and lack format/constraint guidance. Date parameters do not include examples (YYYY-MM-DD format is used in code but not documented). Array/object elements are not typed (e.g., 'ratios' array, 'order_lines' array have no type or element description).
Error handling is generic. All tools return {'success': False, 'error': str(e)} with no recovery guidance. When a date is invalid, the error message says so, but for most errors, the agent learns nothing, it cannot determine if the error is retryable, if a lookup is needed, or if the operation is unrecoverable.
Tool descriptions are in Spanish, which limits LLM understanding in English-primary contexts. LLMs trained primarily on English may not reason correctly about Spanish descriptions.
State-changing tools (create_journal_entry, create_inventory_adjustment, create_purchase_order, create_sales_order) do not warn in descriptions that they are WRITE operations with irreversible side effects. Agents need this classification to decide if they should request confirmation.
Enum constraints are not declared in schemas. For example, 'state' filters in search tools have no enum of valid values (draft, confirmed, approved, etc.). LLMs must guess valid values or the search fails silently.
No result limits or pagination guidance. While some tools accept limit/offset, there is no documentation of default limits, max limits, or guidance on when to paginate. Tools like analyze_inventory_turnover and analyze_sales_performance do not specify how many results they return.
Set explicit result limits and document pagination. For analyze_* tools, define max results (e.g., 'Returns up to 100 ratios'). For search_* tools, default limit=20, max limit=100.
Add idempotency guidance. If create_journal_entry is idempotent (retrying with same ref produces same entry), state this. If not, warn that retries may create duplicates.
Provide parameter examples in descriptions. E.g., for date_from, include 'Format: YYYY-MM-DD (e.g., 2024-01-15)'. For state, include 'Valid values: draft, posted, cancelled.'
Document which fields from search results can be chained to other tools. E.g., 'journal_id from search_journal_entries can be passed to create_journal_entry as journal_id parameter.'