Skip to main content
Glama

product_ai

Domande in linguaggio naturale sul database di prodotti (~4,6M, Open Facts). Il modello genera la SQL, l'esegue e restituisce i risultati. Esempio: domanda='prodotti italiani con alto contenuto proteico'.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "domanda": "<domanda>"
    },
    "name": "product_ai"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo
domandaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden, and it does reveal the important mechanism: an LLM generates and runs SQL server-side, so results may be non-deterministic and depend on model interpretation. It omits whether the operation is read-only, what happens on invalid or unanswerable questions, latency/cost of generation, and whether query results are truncated.

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?

Three tight sentences: capability first, mechanism second, example last. Every sentence adds information and the front-loading is good; only minor trimming would be possible without loss.

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 text-to-SQL tool with no annotations and no output schema, the definition should explain the result shape (rows/records, fields), the role of 'n', and failure modes. It covers only the mechanism and an input example, leaving key operational details absent.

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% and the description compensates only for 'domanda', and only implicitly through a single example question. The 'n' parameter (default 10) is never mentioned in the description, so its meaning as a result limit must be guessed entirely from its title and default.

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 capability: natural-language questions against a ~4.6M record product database, with the model translating to SQL, executing it, and returning results. The example question makes the expected input shape concrete. It does not explicitly contrast with siblings like product_search or product_compare, so sibling differentiation is left to the agent.

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?

Usage is only implied through the worked example ('prodotti italiani con alto contenuto proteico'), which suggests using this for free-form filtering questions rather than structured lookups. There is no explicit statement of when to prefer this over product_search, nor any exclusion or prerequisite such as schema knowledge or language of input.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.