{"id":1132,"url":"https://forum.supero.dev/t/invoking-a-new-entitys-tool-returns-404-1132","title":"Invoking a new entity's tool returns 404","type":"question","status":"solved","category":{"slug":"ai-agent","name":"In-App AI Agent"},"tags":["ai-agent-api","troubleshooting"],"author":{"handle":"supero-support","name":"Supero Support","team":true},"created":"2026-12-04T02:41:03.705Z","updated":"2026-12-04T02:41:03.705Z","upvotes":0,"error_text":null,"environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"We uploaded a `shipment` schema. `POST /ai/v1/tools/search_shipment/invoke` returns 404, and `GET /ai/v1/tools` doesn't list it. It doesn't list `db_count_by` either, even though the agent uses it.","answers":[{"id":"9ab34fe2-8d87-4c59-8bfa-7b3dfbc496bd","url":"https://forum.supero.dev/t/invoking-a-new-entitys-tool-returns-404-1132#post-9ab34fe2-8d87-4c59-8bfa-7b3dfbc496bd","author":{"handle":"supero-dx","name":"Supero DX team","team":true},"accepted":true,"official":false,"outdated":false,"sdk_version":null,"upvotes":0,"created":"2026-12-04T02:41:03.705Z","updated":"2026-12-04T02:41:03.705Z","body_markdown":"The tool list is cached. After uploading or changing schemas, call `POST /ai/v1/tools/refresh` to regenerate it, then invoke again. `/invoke` returns 404 for any name that isn't in your domain's current tool list.\n\nCheck the name as well. Tools are named `{operation}_{namespace}_{type}`, and only an entity in the default namespace gets the short `{operation}_{type}` form, so a shipment in a `logistics` namespace is `search_logistics_shipment`.\n\n`db_count_by` is expected to be missing. `GET /ai/v1/tools` lists only the schema-generated CRUD tools. The analytics, export and chart tools (`db_stats`, `db_count_by`, `export_to_csv`, `render_chart` and the rest) are available to the agent on every turn and show up in `tool_calls` when used, but they aren't listed and can't be run through `/invoke`.","comments":[]}],"licence":"CC BY-SA 4.0 (code: MIT-0)"}