Skip to main content
Glama

fet_entity_upsert

Insert or update a timetable entity by providing document ID, entity kind, and JSON field values; omit the index to append a new entry.

Instructions

Insert or update an entity. fields is a JSON object mirroring XML children (e.g. Subject: {Name, Long_Name, Code, Comments}). Omit index to append.

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": {
      "documentId": "<documentId>",
      "kind": "<kind>",
      "fields": "<fields>"
    },
    "name": "fet_entity_upsert"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
indexNo
fieldsYes
documentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one non-obvious behavioral trait: omitting index appends rather than updates. It is silent on how an update is targeted when index is supplied, what happens on mismatch or nonexistent index, whether changes overwrite or merge, and what the call returns (there is no output schema) — significant gaps for a mutation tool.

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?

Three short sentences, front-loaded with the verb, then the payload shape, then the index rule. Nothing is wasted and the ordering matches how an agent would decide to call it.

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?

This is a mutation tool with no annotations, no output schema, four parameters at 0% schema coverage, and a free-form nested object. The description covers the fields shape and the append flag but omits documentId, kind semantics, update-targeting, error behavior, and the return value, which is essential for chaining follow-up calls.

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 description coverage is 0%, so the description must compensate; it does explain the trickiest parameter well, describing fields as a JSON object mirroring XML children with a concrete Subject example, and clarifies index's append semantics. It leaves documentId entirely unexplained and gives no meaning for the kind enum values (e.g., days vs real_days), which are non-obvious from the schema alone.

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 verb 'Insert or update' (upsert) plus 'an entity' names a specific operation and resource, and it is clearly distinct from the get/list/remove siblings. It stops short of explicitly differentiating itself from fet_entity_set_list or stating scope, so it does not reach 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?

'Omit index to append' gives one concrete usage rule, and the verb implies the primary use case. However, there is no explicit guidance on when to choose this over fet_entity_set_list or fet_entity_get, and no stated prerequisites such as needing an open document or matching kind.

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