Skip to content

Class: Resource

A known resource that the server is capable of reading.

URI: mcp:Resource

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

      Resource : _meta





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



      Resource : annotations





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



      Resource : description

      Resource : icons





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



      Resource : mimeType

      Resource : name

      Resource : size

      Resource : title

      Resource : 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
_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

Usages

used by used in type used
ListResourcesResult resources range Resource

Identifier and Mapping Information

Schema Source

Mappings

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

LinkML Source

Direct

name: Resource
description: A known resource that the server is capable of reading.
from_schema: https://w3id.org/lmodel/mcp
mixins:
- HasMeta
- HasAnnotations
- HasName
- HasIcons
slots:
- uri
- mimeType
- description
- size
slot_usage:
  name:
    name: name
    required: true
  uri:
    name: uri
    required: true

Induced

name: Resource
description: A known resource that the server is capable of reading.
from_schema: https://w3id.org/lmodel/mcp
mixins:
- HasMeta
- HasAnnotations
- HasName
- HasIcons
slot_usage:
  name:
    name: name
    required: true
  uri:
    name: uri
    required: true
attributes:
  uri:
    name: uri
    description: A resource URI.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: uri
    owner: Resource
    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: Resource
    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: Resource
    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: Resource
    domain_of:
    - ResourceLink
    - Resource
    range: integer
  _meta:
    name: _meta
    description: Optional metadata object.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: _meta
    owner: Resource
    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: Resource
    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: Resource
    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: Resource
    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: Resource
    domain_of:
    - HasIcons
    range: Icon
    multivalued: true
    inlined: true
    inlined_as_list: true