Softflow
Softflow / AI tool-calling evaluation

MCP · function calling · failure tests

AI tool-calling evaluationThe demo works.What happens on a bad day?

I can test an existing assistant that calls your APIs or MCP tools. The work is a defined set of real tasks, expected outcomes and failure cases, followed by reproducible findings and a prioritized fix plan. It is not a promise that a model will always behave perfectly.

SoftflowA bounded audit before another release.

01Cases from real user jobs02Permission and write checks03Reproducible findings

01 / Specific use cases

Evaluate the workflow, not just the final sentence.

A tool-using assistant can sound confident while choosing the wrong tool, passing the wrong account ID or retrying a write that may have succeeded. A useful evaluation observes the prompt, selected tool, arguments, API response, final answer and side effect. The test set should come from the tasks your users actually perform, plus the cases that could cause harm.

Pre-release review

Check a small set of expected tasks before exposing a new MCP server or API action to users.

Regression after a change

Compare tool routing and outcomes before and after model, schema or backend updates.

Failure investigation

Reproduce denied access, stale data, timeouts or duplicate writes and identify where the contract breaks.

Choose the right review

Tool contract test, model evaluation or full workflow audit?

The useful unit is the user task and its side effects. A passing JSON schema alone does not prove the task works.

A workflow audit is useful when

  • The assistant already calls tools in a testable environment.
  • There are real user jobs and expected results.
  • Failures or unauthorized actions have business impact.
  • A release or model change needs a defensible decision.

Start elsewhere when

  • No tools or target task have been defined.
  • The backend cannot supply controlled test records.
  • The team only wants a general model benchmark unrelated to its workflow.

We can narrow the first engagement to one high-risk tool rather than evaluate everything.

02 / Choose the right solution

A test report is useful only if it leads to a decision.

If no tool workflow exists yet, start with a scoped build or pilot instead. If it exists but the team cannot tell whether it is reliable enough to ship, a separate evaluation can define the acceptance bar and expose the highest-risk failures. I can test the agreed system, but I do not claim universal model safety or a certification that guarantees future results.

Need the tool integration built first? ↗

What you receive

  • Inventory of intended user jobs, tools and high-impact side effects
  • Representative cases with expected tool, argument and outcome
  • Repeatable runs for success, denial, missing data, timeouts and write ambiguity
  • Findings with evidence, severity and reproducible steps
  • Prioritized fixes and a small regression suite or handover plan

Illustrative evaluation scope

Pilot: three tools in a request-management assistant.

Imagine an assistant with request.read, request.list and request.create. The team wants to release it to more users. A bounded audit uses two test accounts and controlled API responses to check tool choice, arguments, final answers, authorization and duplicate-write behaviour. The findings identify whether to release, fix or limit the tool set.

01 / Specify

Agree the user jobs, allowed accounts and unacceptable outcomes.

02 / Instrument

Capture tool calls and API results without storing secrets.

03 / Exercise

Run normal, denied, missing, timed-out and ambiguous-write cases.

04 / Report

Provide evidence, severity, suggested fixes and a rerun set.

What would make this pilot acceptable?

Illustrative criteria to adapt to your system.
SituationExpected behaviourHow to verify
Read own requestChoose the correct tool and match the source status.Compare trace and API record.
Read other accountNo private field reaches the answer.Run with two test accounts.
Unknown requestReport no match; do not fabricate one.Use a missing ID.
Create request timeoutDo not blindly create a duplicate.Simulate response loss after write.
New model versionDetect changed tool routing or answer quality.Run the same cases on both versions.

The audit ends with a release recommendation for the tested scope, not a timeless certificate. Fixes can be implemented and rerun as a separate stage.

03 / A useful boundary

A model score is not a security control.

We distinguish model behaviour from backend enforcement. The API must still validate identity, arguments and permissions on every call. Write actions need confirmation, idempotency or reconciliation appropriate to the business task. Sensitive production data should be replaced with approved test records or handled under an agreed data policy.

Evidence, not a single score

Inspect selection, arguments, results and side effects.

A final-answer grade can miss an unsafe intermediate call.

01

Tool selection

Was the right operation selected, or should no tool have run?

02

Arguments and access

Were IDs, account context and permissions checked by the API?

03

Recovery

Did timeouts, retries and partial writes produce an honest state?

04

Regression

Can the same cases run after a schema, model or client change?

OpenAI recommends evaluating tool workflows on correctness, tool use, retries, latency, cost and safety outcomes, not only token efficiency. Technical source ↗

A bounded evaluation

Start with the failures the business cannot afford.

The test plan is written before the run so a passing result means something.

  1. 01

    Define scope

    List the user jobs, tools, accounts, release decision and unacceptable outcomes.

    Output / evaluation brief
  2. 02

    Create cases

    Build expected paths and adversarial cases using test data and controlled API responses.

    Output / test set
  3. 03

    Run and inspect

    Record tool selection, inputs, API results, final answer and side effects.

    Output / evidence
  4. 04

    Report and hand over

    Prioritize fixes, rerun critical cases and document the regression route.

    Output / decision report

After the review

A report the engineering team can act on.

I hand over the case matrix, sanitized traces, findings, severity rationale, reproducible steps and a prioritized fix list. The test harness or run instructions can become a regression gate. Any remediation and future monitoring are quoted separately.

04 / Cost and scope

Quote by workflow and risk, not by a generic “AI audit.”

A read-only assistant with three tools is different from a multi-account workflow with payments, writes and several model providers. I quote a named tool set and test matrix, and separate the evaluation from any repair work. Provider usage, test-environment setup and sensitive-data handling are explicit dependencies.

Describe the first task ↗

Questions before you start

Do you need access to production data?

Not by default. Representative test accounts and sanitized records are preferable. If production evidence is essential, the handling rules must be agreed first.

Will you change our code during the audit?

The evaluation can be independent. Fixes and implementation are scoped separately so the findings remain clear.

Can you guarantee the model never calls the wrong tool?

No. We can measure failures on a representative set, improve routing and keep backend checks in place.

Can you test MCP and ordinary function calls?

Yes, if the target client, tool schemas and test environment are available. The protocol differs, but the workflow-level checks are similar.

What should we send first?

A short user task, the tool list or sanitized schemas, target client, known failures and whether any tool can change data. Do not send live credentials through the form.

Can you audit a proprietary client?

Yes if a test environment and the relevant tool/API traces are available under agreed access rules.

How many cases do you run?

We choose a bounded set after mapping the tools and risks. A small high-impact matrix is more useful than a large collection of generic prompts.

Do you use an LLM judge?

It can help with some text quality checks, but permissions, tool arguments and side effects should also have deterministic assertions.

Start with a concrete task

What should the tool workflow solve?

Describe the current workflow, systems and desired result. Please do not send credentials or customer data yet.

  1. I check the right technical route.
  2. We define the first version and tests.
  3. I send a scoped proposal and price.

Prefer email?
hello@softflow.cz

At least 20 characters. No passwords, tokens or customer personal data.

How your enquiry is handled

Your contact details and message are sent to Softflow so we can respond about this project. Hosting and email services process the form. It does not subscribe you to marketing. A hashed network identifier helps limit spam. Contact hello@softflow.cz about your data.

Related servicesMCP server developmentMCP server deployment and hardeningClaude API integration developmentChatGPT plugin development

Softflow is an independent development service. The workflows above are illustrative, not client case studies.