Skip to main content
Glama

Upsert dossier view

upsert_dossier_view
Idempotent

Create or update a SCREEN VIEW in a Mappe — the object that holds its own drafting stages. A view has a number and a title; its variants (stage 1 sketch, stage 2 rendered HTML, stage 3 designed image) hang off it, so ten views in three stages are ten objects rather than thirty unrelated rows. Returns the markdown reference to paste into a document; that reference points at the VIEW, so it stays valid when a variant is added or the effective one changes.

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": {
      "number": "<number>"
    },
    "name": "upsert_dossier_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
titleNoRequired when creating.
numberYesThe number the view is referred to by in the concept. One per Mappe.
grant_idNo
tender_idNo
dossier_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this is an idempotent, non-destructive upsert within a closed world, so the safety profile is covered. The description's genuinely additive detail is the return value — a markdown reference that targets the VIEW and stays valid when variants change — which matters since no output schema exists. However it discloses nothing about update semantics (what an upsert overwrites), required permissions, or parent-scope requirements.

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?

Front-loaded with a precise definition, then layering the object model and return value. The 'ten views in three stages are ten objects rather than thirty unrelated rows' illustration is a little long but does real explanatory work for the domain; there is no filler.

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?

Good on identity and return value for a mutation tool, but a six-parameter upsert should clarify the parent-scope parameters and update behavior, especially with low schema coverage. It is adequate for an agent that already knows the Mappe data model and thin for one that does not.

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 only 33% across six parameters; the description adds meaning only for 'number' and 'title' (one per Mappe, required when creating), which the schema already largely states. It says nothing about dossier_id as the parent scope or the roles of grant_id, tender_id, and note, leaving half the parameters undocumented anywhere.

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?

States a specific verb+resource ('Create or update a SCREEN VIEW in a Mappe') and defines the object as one that 'holds its own drafting stages', with variants hanging off it — which implicitly separates it from upsert_view_variant without naming that sibling. An agent knows what this tool acts on, though it never names the alternative tool explicitly.

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 through the object model (create a view first, then variants belong to it), but there is no explicit when-to-use/when-not guidance, no statement of when to prefer updating vs creating, and no pointer to get_dossier_view for reads. The reader must infer routing from domain vocabulary.

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.

Resources