tools.yaml declares custom tools. Every tool belongs to one of three implementation
classes; the platform owns schema serving, validation, and routing.
Tool classes
handler_type
Served by
Notes
platform_builtin
the runtime
A fixed set shipped with the platform.
mcp
an MCP server
Registered in policy.yaml; namespaced by prefix.
http
the HTTP executor
Requires an http block. The default class.
Custom tool schema
string
required
What the tool does.
string
platform_builtin, mcp, or http. Defaults to http.
object
Input fields (alias: parameters).
object
Output fields (alias: returns).
object
For HTTP tools: method, url, and optional headers, body, timeout_seconds,
retry.
object
For HTTP tools: maps response fields to output.
list
For HTTP tools: credential keys resolved at call time.
The fields endpoint and type are not accepted; use http.url and handler_type.
Example
tools.yaml
knowledge_base_search: description: Search the support knowledge base. handler_type: http input_schema: query: text max_results: integer http: method: POST url: "https://kb.internal/search"
workflow_registered and api_call are deprecated handler types. They still load
(workflow_registered normalizes to http when an http block is present), but new tools
should use handler_type: http or an MCP server.
See Tools for the authoring guide and the MCP client model.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Division Swarm","colors":{"primary":"#37e2f0","light":"#5cebf6","dark":"#128795"},"logo":{"light":"https://mintcdn.com/division/HrKH-oRLI_Y6H1CT/logo/light.png?fit=max\u0026auto=format\u0026n=HrKH-oRLI_Y6H1CT\u0026q=85\u0026s=f59f486b7549f643601acf889d0e6d88","dark":"https://mintcdn.com/division/HrKH-oRLI_Y6H1CT/logo/dark.png?fit=max\u0026auto=format\u0026n=HrKH-oRLI_Y6H1CT\u0026q=85\u0026s=ed0564bc65d9e2169f011c831549f92d"},"favicon":"https://mintcdn.com/division/HrKH-oRLI_Y6H1CT/favicon.png?fit=max\u0026auto=format\u0026n=HrKH-oRLI_Y6H1CT\u0026q=85\u0026s=2ac43454c55695c5e27343fc321d9b7f","appearance":{"default":"dark"},"navbar":{"links":[{"href":"https://github.com/division-sh/swarm/discussions","label":"Discussions"},{"href":"https://github.com/division-sh/swarm","label":"GitHub"}],"primary":{"type":"button","label":"Quickstart","href":"/quickstart"}},"footer":{"socials":{"github":"https://github.com/division-sh/swarm"}},"integrations":{"ga4":{"measurementId":"G-JKJEKHZ35V"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/division-sh/swarm"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"division","hasAudioNarration":false,"actualSubdomain":"division","customDomains":["docs.division.sh"],"gitSource":{"type":"github","owner":"division-sh","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad10f8afd81ca23748d2460","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API reference","count":46},{"language":"default","tag":"Guides","count":43},{"language":"default","tag":"Reference","count":22},{"language":"default","tag":"Build a flow","count":13},{"language":"default","tag":"Contract reference","count":10},{"language":"default","tag":"Core concepts","count":9},{"language":"default","tag":"Runs","count":9},{"language":"default","tag":"Handlers","count":8},{"language":"default","tag":"Operating Swarm","count":7},{"language":"default","tag":"Language reference","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"reference/contracts/tools","slug":"/reference/contracts/tools","pageMetadata":{"title":"tools.yaml","description":"Tool definitions agents can call.","icon":"wrench","href":"/reference/contracts/tools"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Tool definitions agents can call.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`tools.yaml`}),` declares custom tools. Every tool belongs to one of three implementation\nclasses; the platform owns schema serving, validation, and routing.`]}),`\n`,_jsx(Heading,{level:`2`,id:`tool-classes`,children:`Tool classes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`handler_type`})}),_jsx(_components.th,{children:`Served by`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`platform_builtin`})}),_jsx(_components.td,{children:`the runtime`}),_jsx(_components.td,{children:`A fixed set shipped with the platform.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mcp`})}),_jsx(_components.td,{children:`an MCP server`}),_jsxs(_components.td,{children:[`Registered in `,_jsx(_components.code,{children:`policy.yaml`}),`; namespaced by prefix.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`http`})}),_jsx(_components.td,{children:`the HTTP executor`}),_jsxs(_components.td,{children:[`Requires an `,_jsx(_components.code,{children:`http`}),` block. The default class.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`custom-tool-schema`,children:`Custom tool schema`}),`\n`,_jsx(ParamField,{path:`description`,type:`string`,required:true,id:`param-description`,children:_jsx(_components.p,{children:`What the tool does.`})}),`\n`,_jsx(ParamField,{path:`handler_type`,type:`string`,id:`param-handler-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`platform_builtin`}),`, `,_jsx(_components.code,{children:`mcp`}),`, or `,_jsx(_components.code,{children:`http`}),`. Defaults to `,_jsx(_components.code,{children:`http`}),`.`]})}),`\n`,_jsx(ParamField,{path:`input_schema`,type:`object`,id:`param-input-schema`,children:_jsxs(_components.p,{children:[`Input fields (alias: `,_jsx(_components.code,{children:`parameters`}),`).`]})}),`\n`,_jsx(ParamField,{path:`output_schema`,type:`object`,id:`param-output-schema`,children:_jsxs(_components.p,{children:[`Output fields (alias: `,_jsx(_components.code,{children:`returns`}),`).`]})}),`\n`,_jsx(ParamField,{path:`http`,type:`object`,id:`param-http`,children:_jsxs(_components.p,{children:[`For HTTP tools: `,_jsx(_components.code,{children:`method`}),`, `,_jsx(_components.code,{children:`url`}),`, and optional `,_jsx(_components.code,{children:`headers`}),`, `,_jsx(_components.code,{children:`body`}),`, `,_jsx(_components.code,{children:`timeout_seconds`}),`,\n`,_jsx(_components.code,{children:`retry`}),`.`]})}),`\n`,_jsx(ParamField,{path:`response_mapping`,type:`object`,id:`param-response-mapping`,children:_jsx(_components.p,{children:`For HTTP tools: maps response fields to output.`})}),`\n`,_jsx(ParamField,{path:`credentials`,type:`list`,id:`param-credentials`,children:_jsx(_components.p,{children:`For HTTP tools: credential keys resolved at call time.`})}),`\n`,_jsxs(_components.p,{children:[`The fields `,_jsx(_components.code,{children:`endpoint`}),` and `,_jsx(_components.code,{children:`type`}),` are not accepted; use `,_jsx(_components.code,{children:`http.url`}),` and `,_jsx(_components.code,{children:`handler_type`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:`tools.yaml`,numberOfLines:`9`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`knowledge_base_search`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Search the support knowledge base.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` handler_type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`http`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` input_schema`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` query`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`text`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` max_results`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`integer`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` http`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`POST`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://kb.internal/search\"`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`workflow_registered`}),` and `,_jsx(_components.code,{children:`api_call`}),` are deprecated handler types. They still load\n(`,_jsx(_components.code,{children:`workflow_registered`}),` normalizes to `,_jsx(_components.code,{children:`http`}),` when an `,_jsx(_components.code,{children:`http`}),` block is present), but new tools\nshould use `,_jsx(_components.code,{children:`handler_type: http`}),` or an MCP server.`]})}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/build/tools`,children:`Tools`}),` for the authoring guide and the MCP client model.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"tools.yaml","description":"Tool definitions agents can call.","icon":"wrench","href":"/reference/contracts/tools"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Tool classes","slug":"tool-classes","depth":2,"children":[]},{"title":"Custom tool schema","slug":"custom-tool-schema","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"division","siteName":"Division Swarm","title":"tools.yaml - Division Swarm","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-24T00:00:47.813Z","originalFileLocation":"reference/contracts/tools.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Tool definitions agents can call.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Division Swarm\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/division/d2K2oDQN67si7toU/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/division/d2K2oDQN67si7toU/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/division/d2K2oDQN67si7toU/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/division/d2K2oDQN67si7toU/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/division/d2K2oDQN67si7toU/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/division/d2K2oDQN67si7toU/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/division/d2K2oDQN67si7toU/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/division/d2K2oDQN67si7toU/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/division/d2K2oDQN67si7toU/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"tools.yaml - Division Swarm\">\u003cmeta data-mint-head property=\"og:description\" content=\"Tool definitions agents can call.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Division Swarm\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.division.sh/reference/contracts/tools\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://division.mintlify.site/_mintlify/api/og/v2?division=Contract+reference\u0026amp;title=tools.yaml\u0026amp;description=Tool+definitions+agents+can+call.\u0026amp;theme=d30408466f541a16b36a801a\u0026amp;signature=365ece3640d8832ec5fb860598c8f4b11e0cc7016def9d0e5db0da83bcbdb820\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"tools.yaml - Division Swarm\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Tool definitions agents can call.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://division.mintlify.site/_mintlify/api/og/v2?division=Contract+reference\u0026amp;title=tools.yaml\u0026amp;description=Tool+definitions+agents+can+call.\u0026amp;theme=d30408466f541a16b36a801a\u0026amp;signature=365ece3640d8832ec5fb860598c8f4b11e0cc7016def9d0e5db0da83bcbdb820\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/division/d2K2oDQN67si7toU/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Division Swarm\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#37e2f0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.division.sh/reference/contracts/tools\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/contracts/tools.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.division.sh/#organization\",\"name\":\"Division Swarm\",\"url\":\"https://docs.division.sh\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/division/HrKH-oRLI_Y6H1CT/logo/light.png?fit=max\u0026auto=format\u0026n=HrKH-oRLI_Y6H1CT\u0026q=85\u0026s=f59f486b7549f643601acf889d0e6d88\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.division.sh#website\",\"name\":\"Division Swarm\",\"url\":\"https://docs.division.sh\",\"publisher\":{\"@id\":\"https://docs.division.sh/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.division.sh/reference/contracts/tools#webpage\",\"url\":\"https://docs.division.sh/reference/contracts/tools\",\"name\":\"tools.yaml\",\"description\":\"Tool definitions agents can call.\",\"dateModified\":\"2026-05-24T00:00:47.813Z\",\"isPartOf\":{\"@id\":\"https://docs.division.sh#website\"},\"breadcrumb\":{\"@id\":\"https://docs.division.sh/reference/contracts/tools#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.division.sh/reference/contracts/tools#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Contract reference\",\"item\":\"https://docs.division.sh/reference/contracts/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"tools.yaml\",\"item\":\"https://docs.division.sh/reference/contracts/tools\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.division.sh/reference/contracts/tools#article\",\"headline\":\"tools.yaml\",\"name\":\"tools.yaml\",\"description\":\"Tool definitions agents can call.\",\"url\":\"https://docs.division.sh/reference/contracts/tools\",\"mainEntityOfPage\":{\"@id\":\"https://docs.division.sh/reference/contracts/tools#webpage\"},\"dateModified\":\"2026-05-24T00:00:47.813Z\",\"publisher\":{\"@id\":\"https://docs.division.sh/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.division.sh#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Division Swarm\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Division Swarm\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/reference/contracts/tools.md","siteName":"Division Swarm","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/division-sh/swarm"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"Reference","groups":[{"group":"Contract reference","pages":[{"title":"Contract reference","icon":"file-contract","href":"/reference/contracts/overview"},{"title":"package.yaml","icon":"id-card","href":"/reference/contracts/package"},{"title":"schema.yaml","icon":"sitemap","href":"/reference/contracts/schema"},{"title":"types.yaml","icon":"shapes","href":"/reference/contracts/types"},{"title":"entities.yaml","icon":"table","href":"/reference/contracts/entities"},{"title":"nodes.yaml","icon":"gears","href":"/reference/contracts/nodes"},{"title":"events.yaml","icon":"bolt","href":"/reference/contracts/events"},{"title":"agents.yaml","description":"Agent roles and their configuration.","icon":"robot","href":"/reference/contracts/agents"},{"title":"tools.yaml","icon":"wrench","href":"/reference/contracts/tools"},{"title":"policy.yaml","description":"Configuration values, budget thresholds, and inheritance.","icon":"sliders","href":"/reference/contracts/policy"}]},{"group":"Language reference","pages":[{"title":"Field index","icon":"magnifying-glass","href":"/reference/field-index"},{"title":"Handler fields","icon":"list-tree","href":"/reference/handler-fields"},{"title":"Handler execution model","icon":"diagram-project","href":"/reference/execution-model"},{"title":"Accumulation and projection","icon":"layer-group","href":"/reference/accumulation"},{"title":"CEL reference","icon":"code","href":"/reference/expressions-cel"},{"title":"Dialect rules","icon":"ruler","href":"/reference/dialect-rules"},{"title":"Analyzer checks","icon":"clipboard-check","href":"/reference/analyzer-checks"}]},{"group":"Operations reference","pages":[{"title":"CLI reference","icon":"terminal","href":"/reference/cli"},{"title":"Configuration","icon":"gear","href":"/reference/configuration"},{"title":"Agent workspaces and isolation","icon":"box","href":"/reference/workspaces"},{"title":"MCP gateway","icon":"plug","href":"/reference/mcp-gateway"},{"title":"Glossary","icon":"spell-check","href":"/reference/glossary"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"tools.yaml - Division Swarm","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}