Skip to content

Class: ToolUseContent

A request from the assistant to call a tool.

URI: mcp:ToolUseContent

 classDiagram
    class ToolUseContent
    click ToolUseContent href "../ToolUseContent/"
      HasMeta <|-- ToolUseContent
        click HasMeta href "../HasMeta/"

      ToolUseContent : _meta





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



      ToolUseContent : id

      ToolUseContent : input





        ToolUseContent --> "1" ToolInput : input
        click ToolInput href "../ToolInput/"



      ToolUseContent : name

      ToolUseContent : type

Inheritance

Slots

Name Cardinality and Range Description Inheritance
id 1
String
A unique identifier for this tool use direct
type 1
String
Type discriminator field direct
name 1
String
Intended for programmatic or logical use, but used as a display name in past ... direct
input 1
ToolInput
The arguments to pass to the tool direct
_meta 0..1
MetaObject
Optional metadata object HasMeta

Identifier and Mapping Information

Schema Source

Mappings

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

LinkML Source

Direct

name: ToolUseContent
description: A request from the assistant to call a tool.
from_schema: https://w3id.org/lmodel/mcp
mixins:
- HasMeta
slots:
- id
- type
- name
- input
slot_usage:
  id:
    name: id
    description: A unique identifier for this tool use.
    range: string
    required: true
  type:
    name: type
    required: true
    equals_string: tool_use
  name:
    name: name
    required: true
  input:
    name: input
    range: ToolInput
    required: true
    inlined: true

Induced

name: ToolUseContent
description: A request from the assistant to call a tool.
from_schema: https://w3id.org/lmodel/mcp
mixins:
- HasMeta
slot_usage:
  id:
    name: id
    description: A unique identifier for this tool use.
    range: string
    required: true
  type:
    name: type
    required: true
    equals_string: tool_use
  name:
    name: name
    required: true
  input:
    name: input
    range: ToolInput
    required: true
    inlined: true
attributes:
  id:
    name: id
    description: A unique identifier for this tool use.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: id
    owner: ToolUseContent
    domain_of:
    - ToolUseContent
    - JSONRPCRequest
    - JSONRPCResultResponse
    - JSONRPCErrorResponse
    range: string
    required: true
  type:
    name: type
    description: Type discriminator field.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: type
    owner: ToolUseContent
    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: tool_use
  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: ToolUseContent
    domain_of:
    - HasName
    - ToolUseContent
    - Root
    - CompletionArgument
    - SchemaProperties
    - ElicitationContent
    - ModelHint
    - CallToolRequestParams
    - GetPromptRequestParams
    range: string
    required: true
  input:
    name: input
    description: The arguments to pass to the tool.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: input
    owner: ToolUseContent
    domain_of:
    - ToolUseContent
    range: ToolInput
    required: true
    inlined: true
  _meta:
    name: _meta
    description: Optional metadata object.
    from_schema: https://w3id.org/lmodel/mcp
    rank: 1000
    alias: _meta
    owner: ToolUseContent
    domain_of:
    - HasMeta
    range: MetaObject