Skip to main content
Glama

kpis_escritorio

Read-onlyIdempotent

Returns office KPIs for a given period: deadline compliance and misses, overdue open deadlines, active cases, disputed value by area, lawyer workload, and fee status.

Instructions

Indicadores do escritório: prazos cumpridos x perdidos (e taxa de cumprimento) no período, prazos vencidos ainda em aberto, volume de processos ativos e valor em disputa por área, carga por advogado (processos ativos, prazos nos próximos 15 dias, prazos perdidos) e honorários (atrasados, a vencer, recebidos no período).

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": "kpis_escritorio"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodo_diasNoJanela retroativa, em dias, para prazos cumpridos/perdidos e honorários recebidos.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description does add useful scoping detail: some metrics are point-in-time (overdue open deadlines, active cases, workload) while others are within the retroactive window, and the upcoming-deadline view uses a fixed 15-day horizon rather than the period parameter. It says nothing about cost, latency, or volume of results, and the output schema already carries return structure.

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 enumerating the metric groups in a logical order with no filler. It is dense but every clause corresponds to a distinct returned metric group.

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?

For a single-parameter, read-only reporting tool with a full output schema and complete annotations, the description covers what an agent needs to select it. The only remaining gap is explicit differentiation from the sibling deadline/case tools.

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?

There is only one parameter (periodo_dias) and schema description coverage is 100%, including default 90 and 7-730 bounds. The description reinforces which metrics are period-scoped but does not add syntax or semantics beyond what the schema already states, 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?

The description names the resource (office indicators) and enumerates the concrete metrics returned: deadlines met/lost with compliance rate, open overdue deadlines, active case volume and disputed value by area, per-lawyer workload, and fees. That is far more specific than the name alone. It does not explicitly distinguish itself from siblings like prazos_vencendo or buscar_processo, so it falls short of a 5.

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 implied: this is the aggregate/reporting view for the office as a whole, as opposed to the transactional sibling tools. There is no explicit statement of when to prefer this over, say, prazos_vencendo or buscar_processo, and no prerequisites or exclusions are stated.

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