Authoring Guide
Minimal Pattern
Attach mcp:Tool metadata under hints:
$namespaces:
mcp: https://eoap.github.io/cwl-mcp-extension#
hints:
mcp:Tool:
annotations:
readOnlyHint: true
Authoring Tips
- Set
nameonly when the default normalized CWLidis not good enough. - Reuse CWL
labelanddocunless you need MCP-specific presentation text. - Keep
useWhenanddoNotUseWhenconcise and action-oriented. - Treat
aliasesas discovery aids, not as alternate identifiers. - Avoid restating CWL
inputsoroutputsinsidemcp:Tool.
Example
$namespaces:
mcp: https://eoap.github.io/cwl-mcp-extension#
hints:
mcp:Tool:
name: buffer_geometry
aliases:
- buffer a geometry
- expand an area of interest
useWhen: |
Use when the user needs to expand a point or polygon into a buffered area.
doNotUseWhen: |
Do not use when exact geometry preservation is required.
annotations:
readOnlyHint: true
destructiveHint: false
idempotentHint: true
openWorldHint: false