Skip to main content
Glama

questionTypes_upsert

Upsert a question type: create new or update existing with customizable properties including AI generation, grading, and translations.

Instructions

Creates a new question type or updates an existing one. If the question type already exists, it will be updated; otherwise, a new one will be created.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
$schemaNo
idNoUnique identifier for the question type (e.g. 'my-org.color-picker')
nameNoDisplay name for the question type, can be a simple string or translation object
descriptionNoDescription of the question type, can be a simple string or translation object
iconNoPath to the icon for this question type
shortcutNoKeyboard shortcut for quick access to this question type
generationNoOptions for AI question generation
gradingNoOptions for AI question grading
scanningNoOptions for AI question scanning
timeEstimateMinutesNoEstimated time in minutes to complete this question type
isAiNoWhether this question type uses AI functionality
backgroundColorNoBackground color for the question type
enforcePositionNoPosition enforcement for this question type
enforceTitleNoEnforced title for this question type
hideSettingsNoWhether to hide settings for this question type
isPreviewRefreshableNoWhether the preview can be refreshed for this question type
hasSimpleScoringNoWhether this question type has simple scoring
titlePlaceholderNoPlaceholder text for the title field
descriptionPlaceholderNoPlaceholder text for the description field
untitledPlaceholderNoPlaceholder text for untitled questions
componentsNoPaths to the components used by this question type
settingsNoConfiguration settings for the question type
publicNoWhether this question type is public and can be used by all users
translationsNoCustom translations for this question type
capabilitiesNoCapabilities of the question type for various operations
exportNoExport configuration for various formats
metadataNoOptional metadata for the question type, only used by external applications
stylesheetNo
indexNo
isDefaultNo
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the key behavioral trait: it creates or updates based on whether the question type already exists (implied by the 'id' field). However, it omits other critical details like return value, error conditions, or authorization requirements.

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?

Two short, clear sentences. No filler or redundant information. Efficiently communicates the core function.

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?

Given the tool has 30 parameters, no output schema, and no annotations, the description is far too sparse. It does not explain what the tool returns, which fields are required for create vs. update, or how to verify the operation's success. For such a complex tool, more context is needed.

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 high (87%), so the schema already documents most parameters. The description adds minimal value beyond the schema, only clarifying the existence check (which maps to the 'id' field). No new semantic details beyond the schema.

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

Purpose5/5

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

The description clearly states the tool creates or updates a question type, using a standard upsert pattern. It distinguishes from siblings like 'questionTypes_delete' or 'questionTypes_get' by specifying the combined create/update behavior.

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 implicitly indicates use when you want to create or update a question type based on existence, but provides no explicit guidance on when to prefer this over separate create/update tools (which are not present as siblings). No alternatives or exclusions are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/examplary-ai/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server