{"id":51080323,"url":"https://github.com/shipfastlabs/toolkit-calculator","last_synced_at":"2026-06-23T17:02:17.203Z","repository":{"id":363149819,"uuid":"1255359270","full_name":"shipfastlabs/toolkit-calculator","owner":"shipfastlabs","description":"[READ ONLY] Subtree split of the Calculator tool - see github.com/shipfastlabs/toolkit","archived":false,"fork":false,"pushed_at":"2026-06-07T16:20:34.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-07T18:13:24.278Z","etag":null,"topics":["ai","laravel","laravel-ai","tool"],"latest_commit_sha":null,"homepage":"https://github.com/shipfastlabs/toolkit","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shipfastlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-31T18:24:43.000Z","updated_at":"2026-06-07T16:20:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shipfastlabs/toolkit-calculator","commit_stats":null,"previous_names":["shipfastlabs/toolkit-calculator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/shipfastlabs/toolkit-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shipfastlabs%2Ftoolkit-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shipfastlabs%2Ftoolkit-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shipfastlabs%2Ftoolkit-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shipfastlabs%2Ftoolkit-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shipfastlabs","download_url":"https://codeload.github.com/shipfastlabs/toolkit-calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shipfastlabs%2Ftoolkit-calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34698946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","laravel","laravel-ai","tool"],"created_at":"2026-06-23T17:02:16.384Z","updated_at":"2026-06-23T17:02:17.195Z","avatar_url":"https://github.com/shipfastlabs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shipfastlabs/toolkit-calculator\n\n[![Latest Version](https://img.shields.io/packagist/v/shipfastlabs/toolkit-calculator.svg)](https://packagist.org/packages/shipfastlabs/toolkit-calculator)\n[![Total Downloads](https://img.shields.io/packagist/dt/shipfastlabs/toolkit-calculator.svg)](https://packagist.org/packages/shipfastlabs/toolkit-calculator)\n\n\u003e Calculator tool for the Laravel AI SDK\n\nPart of the [shipfastlabs/toolkit](https://github.com/shipfastlabs/toolkit) catalog of reusable AI tools for the Laravel AI SDK.\n\n\u003c!-- AUTO-GENERATED: do not edit above this line. Run `tools/docgen.sh`. --\u003e\n\n## Installation\n\n```bash\ncomposer require shipfastlabs/toolkit-calculator\n```\n\n## Usage\n\nInstantiate the tool and pass it to an agent's `tools()`:\n\n```php\nuse Shipfastlabs\\Toolkit\\Calculator\\CalculatorTool;\n\n$tools = [new CalculatorTool];\n```\n\n## Input schema\n\n| Parameter | Type | Required | Description |\n|---|---|---|---|\n| `expression` | string | yes | The mathematical expression to evaluate, e.g. `\"3 * (4 + 1)\"`. |\n\nSupports `+`, `-`, `*`, `/`, `%`, `^` (exponent, right-associative), parentheses, unary `+`/`-` and decimal numbers.\n\n## Configuration\n\nNone. The calculator is pure and ships no config or service provider.\n\n## Safety\n\nThe expression is parsed by a small recursive-descent evaluator; PHP's `eval()` is never used. Invalid input, division or modulo by zero, and non-finite results are returned to the model as plain strings rather than thrown, so the model can recover.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshipfastlabs%2Ftoolkit-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshipfastlabs%2Ftoolkit-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshipfastlabs%2Ftoolkit-calculator/lists"}