Skip to main content
Glama

Status da audiência

astrea_set_hearing_status

Complete, cancel with a required reason, or reopen a hearing in Astrea by hearing ID and status to keep legal hearing records current.

Instructions

Conclui, cancela (exige motivo) ou reabre uma audiência.

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": {
      "status": "<status>"
    },
    "name": "astrea_set_hearing_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNo
statusYesIN_PROGRESS=pendente, DONE=concluído, CANCELED=cancelado
hearingIdNoID da audiência no Astrea

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, and the description is consistent with them — cancellation being paired with reopening signals the change is reversible, which supports destructiveHint=false. The description contributes one real behavioral fact (the reason requirement on cancel) but says nothing about authentication, whether already-DONE hearings can be reopened, or what happens on an invalid transition.

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?

A single sentence, front-loaded with the three actions in the order that matters, with the one non-obvious constraint tucked into a parenthetical rather than a separate clause. No filler and nothing to cut.

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 three-parameter state-machine tool with no output schema, the definition covers the essentials but leaves the transition rules undefined: an agent cannot tell whether reopening a DONE hearing or re-canceling a CANCELED one is valid, nor whether an error or a silent no-op results. A brief note on valid transitions would close the remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 67% schema coverage, the `reason` parameter ships with no schema description at all, and the sentence "cancela (exige motivo)" is what tells the agent that a reason must be supplied specifically when status=CANCELED — a constraint the schema (which marks only `status` required) actively obscures. The status enum values are already documented in the schema, so the description rightly does not repeat them.

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 a specific resource ("uma audiência") and the three concrete transitions it performs: conclude, cancel, reopen. An agent can map these to the DONE/CANCELED/IN_PROGRESS enum without guessing. It does not, however, distinguish itself from look-alike siblings such as astrea_set_appointment_status or astrea_set_deadline_status, leaving the resource discrimination implicit in the Portuguese noun.

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?

The parenthetical "(exige motivo)" is genuine conditional guidance: it tells the agent cancellation has a precondition the other two transitions do not. Beyond that, nothing states when to prefer this tool over astrea_update_hearing or astrea_delete_hearing, nor which status transitions are legal from a given current state.

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

Deploy Server

Other Tools