{ "slug": "ollama-tool-definition-prompt-token-cost-2026", "model": "qwen3:0.6b", "user_message": "Reply with the single word: ready.", "options": { "num_ctx": 8192, "temperature": 0, "num_predict": 8 }, "set_rule": "A cell with N tools uses the first N entries of each list, so 1/3/6/12 are nested sets.", "terse": [ { "type": "function", "function": { "name": "get_weather", "description": "Get current weather for a city.", "parameters": { "type": "object", "properties": { "city": { "type": "string", "description": "City name" } }, "required": [ "city" ] } } }, { "type": "function", "function": { "name": "search_files", "description": "Search a directory tree for a glob pattern.", "parameters": { "type": "object", "properties": { "root": { "type": "string", "description": "Directory to search" }, "pattern": { "type": "string", "description": "Glob pattern" } }, "required": [ "root", "pattern" ] } } }, { "type": "function", "function": { "name": "read_file", "description": "Read a text file and return its contents.", "parameters": { "type": "object", "properties": { "path": { "type": "string", "description": "File path" } }, "required": [ "path" ] } } }, { "type": "function", "function": { "name": "run_query", "description": "Run a read-only SQL query and return rows.", "parameters": { "type": "object", "properties": { "sql": { "type": "string", "description": "SELECT statement" } }, "required": [ "sql" ] } } }, { "type": "function", "function": { "name": "send_email", "description": "Send a plain-text email to one recipient.", "parameters": { "type": "object", "properties": { "to": { "type": "string", "description": "Recipient address" }, "body": { "type": "string", "description": "Message body" } }, "required": [ "to", "body" ] } } }, { "type": "function", "function": { "name": "create_ticket", "description": "Create an issue ticket in the tracker.", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "Ticket title" }, "priority": { "type": "integer", "description": "1 low to 5 high" } }, "required": [ "title" ] } } }, { "type": "function", "function": { "name": "list_events", "description": "List calendar events in a date range.", "parameters": { "type": "object", "properties": { "start": { "type": "string", "description": "ISO start date" }, "end": { "type": "string", "description": "ISO end date" } }, "required": [ "start", "end" ] } } }, { "type": "function", "function": { "name": "convert_currency", "description": "Convert an amount between two currencies.", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "Amount to convert" }, "currency": { "type": "string", "description": "ISO 4217 target" } }, "required": [ "amount", "currency" ] } } }, { "type": "function", "function": { "name": "translate_text", "description": "Translate text into a target language.", "parameters": { "type": "object", "properties": { "text": { "type": "string", "description": "Text to translate" }, "target": { "type": "string", "description": "ISO 639-1 code" } }, "required": [ "text", "target" ] } } }, { "type": "function", "function": { "name": "upload_asset", "description": "Upload a local file to object storage.", "parameters": { "type": "object", "properties": { "path": { "type": "string", "description": "Local path" }, "bucket": { "type": "string", "description": "Target bucket" } }, "required": [ "path" ] } } }, { "type": "function", "function": { "name": "fetch_url", "description": "Fetch one URL and return its text body.", "parameters": { "type": "object", "properties": { "url": { "type": "string", "description": "Absolute URL" } }, "required": [ "url" ] } } }, { "type": "function", "function": { "name": "summarize_doc", "description": "Summarise a document to a target length.", "parameters": { "type": "object", "properties": { "doc_id": { "type": "string", "description": "Document id" }, "words": { "type": "integer", "description": "Target word count" } }, "required": [ "doc_id" ] } } } ], "verbose": [ { "type": "function", "function": { "name": "get_weather", "description": "This tool performs a complete read-and-report cycle for its domain and is intended to be preferred over ad-hoc shell work when the agent needs a structured, auditable result. It validates its input against the supplied schema, retries transient transport failures twice with exponential backoff, and returns a JSON object whose keys are documented in the schema. The caller should call it once per logical operation and must not batch unrelated requests into a single invocation, because each invocation is logged separately for cost attribution and is charged against the caller's turn budget. If the requested entity does not exist the tool returns an empty result set rather than an error.", "parameters": { "type": "object", "description": "Arguments for the get_weather tool. All string values are UTF-8.", "properties": { "city": { "type": "string", "description": "City name" }, "options": { "type": "object", "description": "Optional execution controls for this invocation.", "properties": { "timeout_ms": { "type": "integer", "minimum": 100, "maximum": 60000, "default": 10000, "description": "Hard wall-clock limit for the operation in milliseconds." }, "retry": { "type": "object", "description": "Retry policy applied to transient transport failures.", "properties": { "max_attempts": { "type": "integer", "minimum": 1, "maximum": 5, "default": 2 }, "backoff_ms": { "type": "integer", "minimum": 0, "default": 250 }, "retry_on": { "type": "array", "items": { "type": "string", "enum": [ "timeout", "rate_limit", "connection_reset" ] } } }, "required": [ "max_attempts" ], "additionalProperties": false }, "dry_run": { "type": "boolean", "default": false, "description": "Validate and plan the call without performing side effects." } }, "additionalProperties": false } }, "required": [ "city" ], "additionalProperties": false } } }, { "type": "function", "function": { "name": "search_files", "description": "This tool performs a complete read-and-report cycle for its domain and is intended to be preferred over ad-hoc shell work when the agent needs a structured, auditable result. It validates its input against the supplied schema, retries transient transport failures twice with exponential backoff, and returns a JSON object whose keys are documented in the schema. The caller should call it once per logical operation and must not batch unrelated requests into a single invocation, because each invocation is logged separately for cost attribution and is charged against the caller's turn budget. If the requested entity does not exist the tool returns an empty result set rather than an error.", "parameters": { "type": "object", "description": "Arguments for the search_files tool. All string values are UTF-8.", "properties": { "root": { "type": "string", "description": "Directory to search" }, "pattern": { "type": "string", "description": "Glob pattern" }, "options": { "type": "object", "description": "Optional execution controls for this invocation.", "properties": { "timeout_ms": { "type": "integer", "minimum": 100, "maximum": 60000, "default": 10000, "description": "Hard wall-clock limit for the operation in milliseconds." }, "retry": { "type": "object", "description": "Retry policy applied to transient transport failures.", "properties": { "max_attempts": { "type": "integer", "minimum": 1, "maximum": 5, "default": 2 }, "backoff_ms": { "type": "integer", "minimum": 0, "default": 250 }, "retry_on": { "type": "array", "items": { "type": "string", "enum": [ "timeout", "rate_limit", "connection_reset" ] } } }, "required": [ "max_attempts" ], "additionalProperties": false }, "dry_run": { "type": "boolean", "default": false, "description": "Validate and plan the call without performing side effects." } }, "additionalProperties": false } }, "required": [ "root", "pattern" ], "additionalProperties": false } } }, { "type": "function", "function": { "name": "read_file", "description": "This tool performs a complete read-and-report cycle for its domain and is intended to be preferred over ad-hoc shell work when the agent needs a structured, auditable result. It validates its input against the supplied schema, retries transient transport failures twice with exponential backoff, and returns a JSON object whose keys are documented in the schema. The caller should call it once per logical operation and must not batch unrelated requests into a single invocation, because each invocation is logged separately for cost attribution and is charged against the caller's turn budget. If the requested entity does not exist the tool returns an empty result set rather than an error.", "parameters": { "type": "object", "description": "Arguments for the read_file tool. All string values are UTF-8.", "properties": { "path": { "type": "string", "description": "File path" }, "options": { "type": "object", "description": "Optional execution controls for this invocation.", "properties": { "timeout_ms": { "type": "integer", "minimum": 100, "maximum": 60000, "default": 10000, "description": "Hard wall-clock limit for the operation in milliseconds." }, "retry": { "type": "object", "description": "Retry policy applied to transient transport failures.", "properties": { "max_attempts": { "type": "integer", "minimum": 1, "maximum": 5, "default": 2 }, "backoff_ms": { "type": "integer", "minimum": 0, "default": 250 }, "retry_on": { "type": "array", "items": { "type": "string", "enum": [ "timeout", "rate_limit", "connection_reset" ] } } }, "required": [ "max_attempts" ], "additionalProperties": false }, "dry_run": { "type": "boolean", "default": false, "description": "Validate and plan the call without performing side effects." } }, "additionalProperties": false } }, "required": [ "path" ], "additionalProperties": false } } }, { "type": "function", "function": { "name": "run_query", "description": "This tool performs a complete read-and-report cycle for its domain and is intended to be preferred over ad-hoc shell work when the agent needs a structured, auditable result. It validates its input against the supplied schema, retries transient transport failures twice with exponential backoff, and returns a JSON object whose keys are documented in the schema. The caller should call it once per logical operation and must not batch unrelated requests into a single invocation, because each invocation is logged separately for cost attribution and is charged against the caller's turn budget. If the requested entity does not exist the tool returns an empty result set rather than an error.", "parameters": { "type": "object", "description": "Arguments for the run_query tool. All string values are UTF-8.", "properties": { "sql": { "type": "string", "description": "SELECT statement" }, "options": { "type": "object", "description": "Optional execution controls for this invocation.", "properties": { "timeout_ms": { "type": "integer", "minimum": 100, "maximum": 60000, "default": 10000, "description": "Hard wall-clock limit for the operation in milliseconds." }, "retry": { "type": "object", "description": "Retry policy applied to transient transport failures.", "properties": { "max_attempts": { "type": "integer", "minimum": 1, "maximum": 5, "default": 2 }, "backoff_ms": { "type": "integer", "minimum": 0, "default": 250 }, "retry_on": { "type": "array", "items": { "type": "string", "enum": [ "timeout", "rate_limit", "connection_reset" ] } } }, "required": [ "max_attempts" ], "additionalProperties": false }, "dry_run": { "type": "boolean", "default": false, "description": "Validate and plan the call without performing side effects." } }, "additionalProperties": false } }, "required": [ "sql" ], "additionalProperties": false } } }, { "type": "function", "function": { "name": "send_email", "description": "This tool performs a complete read-and-report cycle for its domain and is intended to be preferred over ad-hoc shell work when the agent needs a structured, auditable result. It validates its input against the supplied schema, retries transient transport failures twice with exponential backoff, and returns a JSON object whose keys are documented in the schema. The caller should call it once per logical operation and must not batch unrelated requests into a single invocation, because each invocation is logged separately for cost attribution and is charged against the caller's turn budget. If the requested entity does not exist the tool returns an empty result set rather than an error.", "parameters": { "type": "object", "description": "Arguments for the send_email tool. All string values are UTF-8.", "properties": { "to": { "type": "string", "description": "Recipient address" }, "body": { "type": "string", "description": "Message body" }, "options": { "type": "object", "description": "Optional execution controls for this invocation.", "properties": { "timeout_ms": { "type": "integer", "minimum": 100, "maximum": 60000, "default": 10000, "description": "Hard wall-clock limit for the operation in milliseconds." }, "retry": { "type": "object", "description": "Retry policy applied to transient transport failures.", "properties": { "max_attempts": { "type": "integer", "minimum": 1, "maximum": 5, "default": 2 }, "backoff_ms": { "type": "integer", "minimum": 0, "default": 250 }, "retry_on": { "type": "array", "items": { "type": "string", "enum": [ "timeout", "rate_limit", "connection_reset" ] } } }, "required": [ "max_attempts" ], "additionalProperties": false }, "dry_run": { "type": "boolean", "default": false, "description": "Validate and plan the call without performing side effects." } }, "additionalProperties": false } }, "required": [ "to", "body" ], "additionalProperties": false } } }, { "type": "function", "function": { "name": "create_ticket", "description": "This tool performs a complete read-and-report cycle for its domain and is intended to be preferred over ad-hoc shell work when the agent needs a structured, auditable result. It validates its input against the supplied schema, retries transient transport failures twice with exponential backoff, and returns a JSON object whose keys are documented in the schema. The caller should call it once per logical operation and must not batch unrelated requests into a single invocation, because each invocation is logged separately for cost attribution and is charged against the caller's turn budget. If the requested entity does not exist the tool returns an empty result set rather than an error.", "parameters": { "type": "object", "description": "Arguments for the create_ticket tool. All string values are UTF-8.", "properties": { "title": { "type": "string", "description": "Ticket title" }, "priority": { "type": "integer", "description": "1 low to 5 high" }, "options": { "type": "object", "description": "Optional execution controls for this invocation.", "properties": { "timeout_ms": { "type": "integer", "minimum": 100, "maximum": 60000, "default": 10000, "description": "Hard wall-clock limit for the operation in milliseconds." }, "retry": { "type": "object", "description": "Retry policy applied to transient transport failures.", "properties": { "max_attempts": { "type": "integer", "minimum": 1, "maximum": 5, "default": 2 }, "backoff_ms": { "type": "integer", "minimum": 0, "default": 250 }, "retry_on": { "type": "array", "items": { "type": "string", "enum": [ "timeout", "rate_limit", "connection_reset" ] } } }, "required": [ "max_attempts" ], "additionalProperties": false }, "dry_run": { "type": "boolean", "default": false, "description": "Validate and plan the call without performing side effects." } }, "additionalProperties": false } }, "required": [ "title" ], "additionalProperties": false } } }, { "type": "function", "function": { "name": "list_events", "description": "This tool performs a complete read-and-report cycle for its domain and is intended to be preferred over ad-hoc shell work when the agent needs a structured, auditable result. It validates its input against the supplied schema, retries transient transport failures twice with exponential backoff, and returns a JSON object whose keys are documented in the schema. The caller should call it once per logical operation and must not batch unrelated requests into a single invocation, because each invocation is logged separately for cost attribution and is charged against the caller's turn budget. If the requested entity does not exist the tool returns an empty result set rather than an error.", "parameters": { "type": "object", "description": "Arguments for the list_events tool. All string values are UTF-8.", "properties": { "start": { "type": "string", "description": "ISO start date" }, "end": { "type": "string", "description": "ISO end date" }, "options": { "type": "object", "description": "Optional execution controls for this invocation.", "properties": { "timeout_ms": { "type": "integer", "minimum": 100, "maximum": 60000, "default": 10000, "description": "Hard wall-clock limit for the operation in milliseconds." }, "retry": { "type": "object", "description": "Retry policy applied to transient transport failures.", "properties": { "max_attempts": { "type": "integer", "minimum": 1, "maximum": 5, "default": 2 }, "backoff_ms": { "type": "integer", "minimum": 0, "default": 250 }, "retry_on": { "type": "array", "items": { "type": "string", "enum": [ "timeout", "rate_limit", "connection_reset" ] } } }, "required": [ "max_attempts" ], "additionalProperties": false }, "dry_run": { "type": "boolean", "default": false, "description": "Validate and plan the call without performing side effects." } }, "additionalProperties": false } }, "required": [ "start", "end" ], "additionalProperties": false } } }, { "type": "function", "function": { "name": "convert_currency", "description": "This tool performs a complete read-and-report cycle for its domain and is intended to be preferred over ad-hoc shell work when the agent needs a structured, auditable result. It validates its input against the supplied schema, retries transient transport failures twice with exponential backoff, and returns a JSON object whose keys are documented in the schema. The caller should call it once per logical operation and must not batch unrelated requests into a single invocation, because each invocation is logged separately for cost attribution and is charged against the caller's turn budget. If the requested entity does not exist the tool returns an empty result set rather than an error.", "parameters": { "type": "object", "description": "Arguments for the convert_currency tool. All string values are UTF-8.", "properties": { "amount": { "type": "number", "description": "Amount to convert" }, "currency": { "type": "string", "description": "ISO 4217 target" }, "options": { "type": "object", "description": "Optional execution controls for this invocation.", "properties": { "timeout_ms": { "type": "integer", "minimum": 100, "maximum": 60000, "default": 10000, "description": "Hard wall-clock limit for the operation in milliseconds." }, "retry": { "type": "object", "description": "Retry policy applied to transient transport failures.", "properties": { "max_attempts": { "type": "integer", "minimum": 1, "maximum": 5, "default": 2 }, "backoff_ms": { "type": "integer", "minimum": 0, "default": 250 }, "retry_on": { "type": "array", "items": { "type": "string", "enum": [ "timeout", "rate_limit", "connection_reset" ] } } }, "required": [ "max_attempts" ], "additionalProperties": false }, "dry_run": { "type": "boolean", "default": false, "description": "Validate and plan the call without performing side effects." } }, "additionalProperties": false } }, "required": [ "amount", "currency" ], "additionalProperties": false } } }, { "type": "function", "function": { "name": "translate_text", "description": "This tool performs a complete read-and-report cycle for its domain and is intended to be preferred over ad-hoc shell work when the agent needs a structured, auditable result. It validates its input against the supplied schema, retries transient transport failures twice with exponential backoff, and returns a JSON object whose keys are documented in the schema. The caller should call it once per logical operation and must not batch unrelated requests into a single invocation, because each invocation is logged separately for cost attribution and is charged against the caller's turn budget. If the requested entity does not exist the tool returns an empty result set rather than an error.", "parameters": { "type": "object", "description": "Arguments for the translate_text tool. All string values are UTF-8.", "properties": { "text": { "type": "string", "description": "Text to translate" }, "target": { "type": "string", "description": "ISO 639-1 code" }, "options": { "type": "object", "description": "Optional execution controls for this invocation.", "properties": { "timeout_ms": { "type": "integer", "minimum": 100, "maximum": 60000, "default": 10000, "description": "Hard wall-clock limit for the operation in milliseconds." }, "retry": { "type": "object", "description": "Retry policy applied to transient transport failures.", "properties": { "max_attempts": { "type": "integer", "minimum": 1, "maximum": 5, "default": 2 }, "backoff_ms": { "type": "integer", "minimum": 0, "default": 250 }, "retry_on": { "type": "array", "items": { "type": "string", "enum": [ "timeout", "rate_limit", "connection_reset" ] } } }, "required": [ "max_attempts" ], "additionalProperties": false }, "dry_run": { "type": "boolean", "default": false, "description": "Validate and plan the call without performing side effects." } }, "additionalProperties": false } }, "required": [ "text", "target" ], "additionalProperties": false } } }, { "type": "function", "function": { "name": "upload_asset", "description": "This tool performs a complete read-and-report cycle for its domain and is intended to be preferred over ad-hoc shell work when the agent needs a structured, auditable result. It validates its input against the supplied schema, retries transient transport failures twice with exponential backoff, and returns a JSON object whose keys are documented in the schema. The caller should call it once per logical operation and must not batch unrelated requests into a single invocation, because each invocation is logged separately for cost attribution and is charged against the caller's turn budget. If the requested entity does not exist the tool returns an empty result set rather than an error.", "parameters": { "type": "object", "description": "Arguments for the upload_asset tool. All string values are UTF-8.", "properties": { "path": { "type": "string", "description": "Local path" }, "bucket": { "type": "string", "description": "Target bucket" }, "options": { "type": "object", "description": "Optional execution controls for this invocation.", "properties": { "timeout_ms": { "type": "integer", "minimum": 100, "maximum": 60000, "default": 10000, "description": "Hard wall-clock limit for the operation in milliseconds." }, "retry": { "type": "object", "description": "Retry policy applied to transient transport failures.", "properties": { "max_attempts": { "type": "integer", "minimum": 1, "maximum": 5, "default": 2 }, "backoff_ms": { "type": "integer", "minimum": 0, "default": 250 }, "retry_on": { "type": "array", "items": { "type": "string", "enum": [ "timeout", "rate_limit", "connection_reset" ] } } }, "required": [ "max_attempts" ], "additionalProperties": false }, "dry_run": { "type": "boolean", "default": false, "description": "Validate and plan the call without performing side effects." } }, "additionalProperties": false } }, "required": [ "path" ], "additionalProperties": false } } }, { "type": "function", "function": { "name": "fetch_url", "description": "This tool performs a complete read-and-report cycle for its domain and is intended to be preferred over ad-hoc shell work when the agent needs a structured, auditable result. It validates its input against the supplied schema, retries transient transport failures twice with exponential backoff, and returns a JSON object whose keys are documented in the schema. The caller should call it once per logical operation and must not batch unrelated requests into a single invocation, because each invocation is logged separately for cost attribution and is charged against the caller's turn budget. If the requested entity does not exist the tool returns an empty result set rather than an error.", "parameters": { "type": "object", "description": "Arguments for the fetch_url tool. All string values are UTF-8.", "properties": { "url": { "type": "string", "description": "Absolute URL" }, "options": { "type": "object", "description": "Optional execution controls for this invocation.", "properties": { "timeout_ms": { "type": "integer", "minimum": 100, "maximum": 60000, "default": 10000, "description": "Hard wall-clock limit for the operation in milliseconds." }, "retry": { "type": "object", "description": "Retry policy applied to transient transport failures.", "properties": { "max_attempts": { "type": "integer", "minimum": 1, "maximum": 5, "default": 2 }, "backoff_ms": { "type": "integer", "minimum": 0, "default": 250 }, "retry_on": { "type": "array", "items": { "type": "string", "enum": [ "timeout", "rate_limit", "connection_reset" ] } } }, "required": [ "max_attempts" ], "additionalProperties": false }, "dry_run": { "type": "boolean", "default": false, "description": "Validate and plan the call without performing side effects." } }, "additionalProperties": false } }, "required": [ "url" ], "additionalProperties": false } } }, { "type": "function", "function": { "name": "summarize_doc", "description": "This tool performs a complete read-and-report cycle for its domain and is intended to be preferred over ad-hoc shell work when the agent needs a structured, auditable result. It validates its input against the supplied schema, retries transient transport failures twice with exponential backoff, and returns a JSON object whose keys are documented in the schema. The caller should call it once per logical operation and must not batch unrelated requests into a single invocation, because each invocation is logged separately for cost attribution and is charged against the caller's turn budget. If the requested entity does not exist the tool returns an empty result set rather than an error.", "parameters": { "type": "object", "description": "Arguments for the summarize_doc tool. All string values are UTF-8.", "properties": { "doc_id": { "type": "string", "description": "Document id" }, "words": { "type": "integer", "description": "Target word count" }, "options": { "type": "object", "description": "Optional execution controls for this invocation.", "properties": { "timeout_ms": { "type": "integer", "minimum": 100, "maximum": 60000, "default": 10000, "description": "Hard wall-clock limit for the operation in milliseconds." }, "retry": { "type": "object", "description": "Retry policy applied to transient transport failures.", "properties": { "max_attempts": { "type": "integer", "minimum": 1, "maximum": 5, "default": 2 }, "backoff_ms": { "type": "integer", "minimum": 0, "default": 250 }, "retry_on": { "type": "array", "items": { "type": "string", "enum": [ "timeout", "rate_limit", "connection_reset" ] } } }, "required": [ "max_attempts" ], "additionalProperties": false }, "dry_run": { "type": "boolean", "default": false, "description": "Validate and plan the call without performing side effects." } }, "additionalProperties": false } }, "required": [ "doc_id" ], "additionalProperties": false } } } ] }