Template:Tool: Difference between revisions

From Public AI Wiki
Jolow (talk | contribs)
No edit summary
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Template for storing MCP tools using Cargo.
Template for storing MCP tools using Cargo.
{{#cargo_declare:
{{#cargo_declare:
  _table = Tools
  _table = Tools
Line 10: Line 9:
  |ToolType = String
  |ToolType = String
}}
}}
<templatedata>
{
  "description": "Registers an MCP tool in the shared tools database.",
  "params": {
    "ToolName": {
      "label": "Tool name",
      "type": "string",
      "required": true
    },
    "Description": {
      "label": "Description",
      "type": "string",
      "required": true
    },
    "RepoURL": {
      "label": "Repository URL",
      "type": "string"
    },
    "Author": {
      "label": "Author",
      "type": "string"
    },
    "ToolType": {
      "label": "Tool type",
      "type": "string"
    }
  }
}
</templatedata>
</noinclude>
</noinclude>
<includeonly>
<includeonly>
<div style="border: 1px solid #ddd; padding: 15px; margin-bottom: 20px; border-radius: 5px; background-color: #f9f9f9;">
=== {{{ToolName|}}} ===
'''{{{Description|}}}'''
{{#if:{{{RepoURL|}}}|* '''Repository:''' {{{RepoURL|}}}}}
{{#if:{{{Author|}}}|* '''Author:''' {{{Author|}}}}}
{{#if:{{{ToolType|}}}|* '''Type:''' {{{ToolType|}}}}}
</div>
{{#cargo_store:
{{#cargo_store:
  _table = Tools
  _table = Tools
Line 21: Line 60:
}}
}}
</includeonly>
</includeonly>
<noinclude>
<templatedata>
{
"params": {
"ToolName": {},
"Description": {},
"RepoURL": {},
"Author": {},
"ToolType": {}
},
"description": "Test"
}
</templatedata>
</noinclude>

Latest revision as of 06:14, 22 December 2025

Template for storing MCP tools using Cargo. This template defines the table "Tools". View table.

Registers an MCP tool in the shared tools database.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Tool nameToolName

no description

Stringrequired
DescriptionDescription

no description

Stringrequired
Repository URLRepoURL

no description

Stringoptional
AuthorAuthor

no description

Stringoptional
Tool typeToolType

no description

Stringoptional