Skip to main content
Glama
fabiancasta

My Awesome MCP Server

by fabiancasta

search_count

Read-only

Count Odoo records matching a search domain for a specified model, helping AI agents verify data volumes and filter results before ERP actions.

Instructions

Count records matching a domain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesTechnical model name, e.g. 'res.partner'
domainNoOdoo search domain, e.g. [["customer_rank", ">", 0]]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds nothing beyond that: it doesn't say what happens when 'domain' is omitted (implied: count all records of the model), nor whether the count honors record rules/access rights. For a count tool with annotation coverage, this is thin.

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?

A single front-loaded sentence with the verb first and zero filler. It is efficient, though its brevity comes at the cost of the guidance noted in other dimensions.

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?

For a simple read-only counting tool with fully documented parameters and no output schema, the minimum needed to call it correctly is present. Missing is the key behavioral note that omitting 'domain' counts every record in the model, plus any routing hint toward search_records when full rows are needed.

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%, and the schema already documents both 'model' and 'domain' with concrete examples, so the schema carries the parameter burden. The description only echoes 'domain' and adds no format or edge-case detail beyond it; baseline 3 applies.

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

Purpose4/5

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

States a specific verb ('Count') and resource ('records matching a domain'), which lets an agent distinguish it from the sibling search_records that returns records rather than a tally. However, it never names or contrasts with that sibling explicitly, so differentiation is implied rather than stated.

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

Usage Guidelines2/5

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

There is no guidance on when to prefer this over search_records, nor any mention of prerequisites or exclusions. The use case (avoid fetching full records when only a total is needed) is only inferable from the tool name.

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