Skip to content

Class: ResourceLink

A resource that the server is capable of reading, included in a prompt or tool call result.

URI: mcp:ResourceLink

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

      ResourceLink : _meta





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



      ResourceLink : annotations





        ResourceLink --> "0..1" Annotations : annotations
        click Annotations href "../Annotations/"



      ResourceLink : description

      ResourceLink : icons





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



      ResourceLink : mimeType

      ResourceLink : name

      ResourceLink : size

      ResourceLink : title

      ResourceLink : type

      ResourceLink : uri

Inheritance

Slots

Name Cardinality and Range Description Inheritance
uri 1
uri
A resource URI direct
mimeType 0..1
String
The MIME type of a resource, if known direct
description 0..1
String
A human-readable description direct
size 0..1
Integer
The size of the raw resource content, in bytes direct
type 1
String
Type discriminator field direct
_meta 0..1
MetaObject
Optional metadata object HasMeta
annotations 0..1
Annotations
Optional annotations for the client HasAnnotations
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

Identifier and Mapping Information

Schema Source

Mappings

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

LinkML Source

Direct

name: ResourceLink
description: A resource that the server is capable of reading, included in a prompt
  or tool call result.
from_schema: https://w3id.org/lmodel/mcp
mixins:
- HasMeta
- HasAnnotations
- HasName
- HasIcons
slots:
- uri
- mimeType
- description
- size
- type
slot_usage:
  name:
    name: name
    required: true
  uri:
    name: uri
    required: true
  type:
    name: type
    required: true
    equals_string: resource_link

Induced

name: ResourceLink
description: A resource that the server is capable of reading, included in a prompt
  or tool call result.
from_schema: https://w3id.org/lmodel/mcp
mixins:
- HasMeta
- HasAnnotations
- HasName
- HasIcons
slot_usage:
  name:
    name: name
    required: true
  uri:
    name: uri
    required: true
  type:
    name: type
    required: true
    equals_string: resource_link
attributes:
  uri:
    name: uri
    description: A resource URI.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: uri
    owner: ResourceLink
    domain_of:
    - ResourceLink
    - ResourceContents
    - TextResourceContents
    - BlobResourceContents
    - Resource
    - Root
    - ResourceTemplateReference
    - ResourceUpdatedNotificationParams
    - ReadResourceRequestParams
    - SubscribeRequestParams
    - UnsubscribeRequestParams
    range: uri
    required: true
  mimeType:
    name: mimeType
    description: The MIME type of a resource, if known.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: mimeType
    owner: ResourceLink
    domain_of:
    - Icon
    - ImageContent
    - AudioContent
    - ResourceLink
    - ResourceContents
    - TextResourceContents
    - BlobResourceContents
    - Resource
    - ResourceTemplate
    range: string
  description:
    name: description
    description: A human-readable description.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    slot_uri: dct:description
    alias: description
    owner: ResourceLink
    domain_of:
    - Implementation
    - ResourceLink
    - Resource
    - ResourceTemplate
    - PromptArgument
    - Prompt
    - JsonSchema
    - Tool
    - StringSchema
    - NumberSchema
    - BooleanSchema
    - UntitledSingleSelectEnumSchema
    - TitledSingleSelectEnumSchema
    - UntitledMultiSelectEnumSchema
    - TitledMultiSelectEnumSchema
    - LegacyTitledEnumSchema
    - GetPromptResult
    range: string
  size:
    name: size
    description: The size of the raw resource content, in bytes.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: size
    owner: ResourceLink
    domain_of:
    - ResourceLink
    - Resource
    range: integer
  type:
    name: type
    description: Type discriminator field.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: type
    owner: ResourceLink
    domain_of:
    - TextContent
    - ImageContent
    - AudioContent
    - ContentBlock
    - EmbeddedResource
    - ResourceLink
    - ToolUseContent
    - ToolResultContent
    - PromptReference
    - ResourceTemplateReference
    - SchemaItems
    - JsonSchema
    - StringSchema
    - NumberSchema
    - BooleanSchema
    - UntitledSingleSelectEnumSchema
    - TitledSingleSelectEnumSchema
    - UntitledMultiSelectEnumSchema
    - TitledMultiSelectEnumSchema
    - LegacyTitledEnumSchema
    range: string
    required: true
    equals_string: resource_link
  _meta:
    name: _meta
    description: Optional metadata object.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: _meta
    owner: ResourceLink
    domain_of:
    - HasMeta
    range: MetaObject
  annotations:
    name: annotations
    description: Optional annotations for the client.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: annotations
    owner: ResourceLink
    domain_of:
    - HasAnnotations
    - Tool
    range: Annotations
    inlined: true
  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: ResourceLink
    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: ResourceLink
    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: ResourceLink
    domain_of:
    - HasIcons
    range: Icon
    multivalued: true
    inlined: true
    inlined_as_list: true