Skip to main content
Glama
casaley-mcp

casaley-mcp

by s00rk

list_departments

Read-onlyIdempotent

Retrieve a branch’s department and category tree with per-node filters to narrow product, price, and offer queries.

Instructions

Árbol de departamentos y categorías de una sucursal. Cada nodo trae filters (department, group_code…) para acotar búsquedas.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_departments"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoNiveles del árbol a devolver.
storeNoId numérico de la sucursal (ver `list_stores`). Vacío: la configurada.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, non-destructive and open-world, so the safety profile needs no restating. The description adds one genuinely useful behavioral fact beyond annotations — that returned nodes contain `filters` usable to narrow searches — but is silent on depth truncation behavior or any failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with zero filler, front-loading what the tool returns before explaining its workflow purpose. Nothing can be trimmed without losing meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A simple read-only tool with an output schema and complete parameter documentation; the description covers what it returns and why you would call it. The only small gap is not identifying which search tools consume the returned `filters`.

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 100%: `depth` (1–4 levels) and `store` (with the `list_stores` cross-reference and null default) are fully documented in the schema. The description adds no further meaning to either parameter, so the baseline of 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?

Identifies the specific resource (the department/category tree of a branch) and adds what a caller actually receives: nodes carrying `filters` tokens. It is not tautological and is distinguishable from list-type siblings, though it never explicitly contrasts itself with them.

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 second sentence implicitly routes usage: fetch the tree to obtain `filters` (department, group_code…) used to narrow later searches. That gives a clear call context, but there is no explicit when-not guidance or named alternative for getting the same data.

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