Skip to content

Class: Prompt

A prompt or prompt template that the server offers.

URI: mcp:Prompt

 classDiagram
    class Prompt
    click Prompt href "../Prompt/"
      HasMeta <|-- Prompt
        click HasMeta href "../HasMeta/"
      HasName <|-- Prompt
        click HasName href "../HasName/"
      HasIcons <|-- Prompt
        click HasIcons href "../HasIcons/"

      Prompt : _meta





        Prompt --> "0..1" MetaObject : _meta
        click MetaObject href "../MetaObject/"



      Prompt : arguments





        Prompt --> "*" PromptArgument : arguments
        click PromptArgument href "../PromptArgument/"



      Prompt : description

      Prompt : icons





        Prompt --> "*" Icon : icons
        click Icon href "../Icon/"



      Prompt : name

      Prompt : title

Inheritance

Slots

Name Cardinality and Range Description Inheritance
arguments *
PromptArgument
A list of arguments to use for templating the prompt direct
description 0..1
String
A human-readable description direct
_meta 0..1
MetaObject
Optional metadata object HasMeta
name 1
String
Intended for programmatic or logical use, but used as a display name in past ... HasName
title 0..1
String
Intended for UI and end-user contexts — optimized to be human-readable and ea... HasName
icons *
Icon
Optional set of sized icons that the client can display in a user interface HasIcons

Usages

used by used in type used
ListPromptsResult prompts range Prompt

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self mcp:Prompt
native mcp:Prompt

LinkML Source

Direct

name: Prompt
description: A prompt or prompt template that the server offers.
from_schema: https://w3id.org/lmodel/mcp
mixins:
- HasMeta
- HasName
- HasIcons
slots:
- arguments
- description
slot_usage:
  arguments:
    name: arguments
    description: A list of arguments to use for templating the prompt.
    range: PromptArgument
    multivalued: true
    inlined_as_list: true
  name:
    name: name
    required: true

Induced

name: Prompt
description: A prompt or prompt template that the server offers.
from_schema: https://w3id.org/lmodel/mcp
mixins:
- HasMeta
- HasName
- HasIcons
slot_usage:
  arguments:
    name: arguments
    description: A list of arguments to use for templating the prompt.
    range: PromptArgument
    multivalued: true
    inlined_as_list: true
  name:
    name: name
    required: true
attributes:
  arguments:
    name: arguments
    description: A list of arguments to use for templating the prompt.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: arguments
    owner: Prompt
    domain_of:
    - Prompt
    - CompletionContext
    - CallToolRequestParams
    - GetPromptRequestParams
    range: PromptArgument
    multivalued: true
    inlined_as_list: true
  description:
    name: description
    description: A human-readable description.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    slot_uri: dct:description
    alias: description
    owner: Prompt
    domain_of:
    - Implementation
    - ResourceLink
    - Resource
    - ResourceTemplate
    - PromptArgument
    - Prompt
    - JsonSchema
    - Tool
    - StringSchema
    - NumberSchema
    - BooleanSchema
    - UntitledSingleSelectEnumSchema
    - TitledSingleSelectEnumSchema
    - UntitledMultiSelectEnumSchema
    - TitledMultiSelectEnumSchema
    - LegacyTitledEnumSchema
    - GetPromptResult
    range: string
  _meta:
    name: _meta
    description: Optional metadata object.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: _meta
    owner: Prompt
    domain_of:
    - HasMeta
    range: MetaObject
  name:
    name: name
    description: Intended for programmatic or logical use, but used as a display name
      in past specs or fallback (if title is not present).
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    slot_uri: schema:name
    alias: name
    owner: Prompt
    domain_of:
    - HasName
    - ToolUseContent
    - Root
    - CompletionArgument
    - SchemaProperties
    - ElicitationContent
    - ModelHint
    - CallToolRequestParams
    - GetPromptRequestParams
    range: string
    required: true
  title:
    name: title
    description: Intended for UI and end-user contexts — optimized to be human-readable
      and easily understood.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    slot_uri: dct:title
    alias: title
    owner: Prompt
    domain_of:
    - HasName
    - ToolAnnotations
    - EnumOption
    - JsonSchema
    - StringSchema
    - NumberSchema
    - BooleanSchema
    - UntitledSingleSelectEnumSchema
    - TitledSingleSelectEnumSchema
    - UntitledMultiSelectEnumSchema
    - TitledMultiSelectEnumSchema
    - LegacyTitledEnumSchema
    range: string
  icons:
    name: icons
    description: Optional set of sized icons that the client can display in a user
      interface.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: icons
    owner: Prompt
    domain_of:
    - HasIcons
    range: Icon
    multivalued: true
    inlined: true
    inlined_as_list: true