Skip to main content
Glama

astrea_compromisso_criar

Cria um COMPROMISSO/evento na agenda, vinculado a um processo no Astrea.

  • case_id: id do processo (ver astrea_processos).

  • title: título do compromisso.

  • start: início em ISO (ex.: 2026-07-10T14:00:00Z). Interpretado no fuso do servidor (UTC).

  • end: opcional, fim em ISO; se omitido, 30 min após o início.

  • all_day: opcional, true para dia inteiro.

  • location: opcional, endereço/local.

  • responsible_id: opcional, id do membro responsável (ver astrea_responsaveis). Se omitir, fica no usuário da integração e pode NÃO aparecer na agenda do advogado. Passe o id da pessoa para o compromisso aparecer na agenda dela.

  • repeat: opcional, cria uma SÉRIE recorrente numa só chamada (semanal/mensal/etc.). A 1ª ocorrência é o start; cada ocorrência preserva o horário e a duração. Cada compromisso é independente (edite/exclua individualmente com astrea_compromisso_editar/_excluir). Devolve appointment_id (o id do compromisso criado; na série, um por ocorrência) — guarde para editar/excluir depois.

Bulk support: accepts case_ids, responsible_ids for batched execution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNo
startYes
titleYes
repeatNo
all_dayNo
case_idYes
case_idsNo
locationNo
responsible_idNo
responsible_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / repeat
      Added value: +{
      +  "properties": {
      +    "count": {
      +      "type": "number"
      +    },
      +    "frequency": {
      +      "enum": [
      +        "daily",
      +        "weekly",
      +        "monthly",
      +        "yearly"
      +      ],
      +      "type": "string"
      +    },
      +    "interval": {
      +      "default": 1,
      +      "type": "number"
      +    },
      +    "until": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "frequency"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / responsible_id
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / responsible_ids
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Added

TDQS

A3.8/5.0
Behavior4/5

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

The description adds meaningful behavioral details beyond the annotations: start is interpreted in server timezone (UTC), end defaults to start+30 minutes, responsible_id omission may hide the event from the attorney's calendar, and repeat creates a recurring series in one call. This is strong context for a mutation tool, though it does not describe the return value or 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?

The description is front-loaded with a clear purpose sentence followed by a scannable bullet list. Every parameter explanation earns its place by adding format, default, or behavioral nuance, and there is no filler or repetition.

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 10-parameter creation tool with no output schema, the description explains core semantics and important defaults, but it does not state what the tool returns (e.g., the created compromisso ID) and omits the plural parameters. The missing output information is a notable gap since no output schema exists to compensate.

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?

Schema description coverage is 0%, so the description carries the parameter documentation burden. It explains 8 of the 10 parameters well, including ISO format, defaults, and behavioral caveats. It does not cover the plural variants case_ids and responsible_ids, which are missing from the parameter documentation entirely, so the coverage is strong but incomplete.

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 states a specific verb ('Cria') and resource ('COMPROMISSO/evento na agenda'), with the additional scope that it must be linked to an Astrea process. It is clear and likely distinguishable from edit/delete siblings by the 'criar' verb, but it does not explicitly contrast with astrea_tarefa_criar or astrea_andamento_criar, so sibling differentiation is only implicit.

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 description implies use for creating calendar appointments/events tied to a process, and gives helpful lookup directions ('ver astrea_processos', 'ver astrea_responsaveis'). However, there is no explicit guidance on when to prefer this tool over alternatives such as astrea_tarefa_criar or astrea_compromisso_editar, and no exclusion criteria.

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.