Skip to main content
Glama

scoring-rule-upsert

Idempotent

Upsert a scoring rule

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
profileIdYesScoring profile UUID
__requestBodyYesRequest body

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / __requestBody / properties / answerType / description
      Added value: +"Drives shape validation for `pointValues`. Must match the referenced\nsignal template's answer type — mismatch surfaces as an\n`INVALID_POINT_VALUES` 422 at write time rather than a silent\ncompute failure later.\n"
    • addedInput schema / properties / __requestBody / properties / pointValues / description
      Added value: +"Point-value mapping for one rule. The shape varies by the answer type of the\nreferenced signal template — exactly one of `true`/`false`, `ranges`, or `choices`\nis populated.\n"
    • addedInput schema / properties / __requestBody / properties / pointValues / properties / choices / description
      Added value: +"Used by `list` answer types. Map of allowed list value → points awarded if present in the answer."
    • addedInput schema / properties / __requestBody / properties / pointValues / properties / false / description
      Added value: +"Points awarded when a boolean signal answers `false`. Used by `boolean` answer types."
    • addedInput schema / properties / __requestBody / properties / pointValues / properties / mode / description
      Added value: +"Optional. Controls how a `list` rule combines matched choices. Defaults\nto `additive` (sum matched, clamp to highest single choice) — the v1\nbehaviour. Other modes:\n\n* `best-match` — award only the highest-scoring matched choice.\n* `contains-all` — award `max(choices)` only if every configured choice appears.\n* `contains-none` — award `max(choices)` only if none of the configured choices appear.\n* `exact-match` — award `sum(choices)` only when the answer set equals the configured set exactly.\n"
    • addedInput schema / properties / __requestBody / properties / pointValues / properties / true / description
      Added value: +"Points awarded when a boolean signal answers `true`. Used by `boolean` answer types."
  2. Added

TDQS

C2.1/5.0
Behavior2/5

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

The description adds no behavioral information beyond the annotations. While annotations indicate idempotentHint=true and destructiveHint=false, the description does not explain what 'upsert' entails (e.g., whether it creates new rules, updates existing ones, or both) or any side effects such as overwriting existing rule configurations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely short, but this is under-specification rather than concise writing. It consists of a single tautological sentence that adds no value; a useful description would include details about the request body and upsert behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with a complex nested request body (five answer types, multiple point-value modes, enum constraints) and no output schema, a one-line description is wholly inadequate. The description gives no information about required fields, validation rules, or how upsert semantics apply, making it impossible for an agent to correctly construct an invocation.

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 100%, with detailed parameter descriptions for profileId and the nested request body properties (e.g., answerType drives shape validation). The description itself provides no parameter information, but the schema fully compensates, so the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Upsert a scoring rule' simply restates the tool name 'scoring-rule-upsert' in sentence form, providing no additional detail about the specific behavior, scope, or how it differs from sibling tools like scoring-rule-delete or scoring-rule-list. It is a tautology rather than an informative purpose statement.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description offers no guidance on when to use this tool versus alternatives, no prerequisites, no exclusions, and no mention of related tools that could achieve similar outcomes (e.g., scoring-assignment-create for assigning rules). With no usage context, an agent cannot determine appropriate invocation scenarios.

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