Template:ToolTest: Difference between revisions

From Public AI Wiki
Jolow (talk | contribs)
Created page with "Tool template test"
 
Jolow (talk | contribs)
No edit summary
Line 1: Line 1:
Tool template test
<noinclude>
Template for storing MCP tools using Cargo.
 
{{#cargo_declare:
_table = Tools
|ToolName = String
|Description = Text
|RepoURL = URL
|Author = 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>
 
<includeonly>
{{#cargo_store:
_table = Tools
|ToolName = {{{ToolName|}}}
|Description = {{{Description|}}}
|RepoURL = {{{RepoURL|}}}
|Author = {{{Author|}}}
|ToolType = {{{ToolType|}}}
}}
 
'''Tool:''' {{{ToolName}}} 
'''Description:''' {{{Description}}}
</includeonly>

Revision as of 05:19, 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

ParameterDescriptionTypeStatus
Tool nameToolName

no description

Stringrequired
DescriptionDescription

no description

Stringrequired
Repository URLRepoURL

no description

Stringoptional
AuthorAuthor

no description

Stringoptional
Tool typeToolType

no description

Stringoptional