Can an Agent Use an Unfamiliar Tool from Its Schema Alone? How to Test It

An agent can produce valid JSON and still use the wrong tool. It can choose the right tool and still confuse a company identifier with an account identifier. A schema-usability experiment should separate those failures from provider availability and model reasoning.

This article proposes a controlled test of whether an unfamiliar tool contract communicates enough information for an agent to complete a task. It reports a method, not experimental results. No paid tools were invoked, and no success rates are claimed.

Method reviewed October 18, 2026. o11 publishes this protocol. Fixtures and experimental conditions below are proposed artifacts. A local stub can test contract usability; it cannot certify a live supplier or establish production reliability.

What schema alone means

Define the information available to the model. In a strict condition, it receives the user task, tool name, description, input schema, and documented output contract. It does not receive a worked solution, provider-specific tutorial, or hidden implementation notes.

That condition tests a contract, not a model’s total capability. A model may already know a popular API from training. Conversely, a fictional tool can remove familiarity while creating a less realistic task. Record both limitations.

The MCP tools specification supplies a common tool description and call structure. JSON Schema describes syntactic validation, including required fields and object-property rules. Neither alone establishes that the model understands what an identifier means or which tool satisfies a business task. MCP tools, JSON Schema object reference.

Keep the phrase schema alone precise in any published result. If the model receives examples or a discovery system that supplies extra instructions, that is a different, potentially useful condition.

Create three experimental conditions

Use a minimal contract condition, an improved-description condition, and a description-plus-examples condition. Hold the underlying operation and task fixed. Change only the information whose effect you want to measure.

The minimal condition should still be a valid contract, not an intentionally broken straw man. The improved condition can clarify units, identifier sources, enum meanings, and side effects. The examples condition adds a small set of legitimate examples that do not reveal the exact evaluation answers.

Separate discovery from execution. In a discovery trial, the model chooses among several plausible tools. In an argument trial, give it the intended tool and test whether it can construct valid inputs. This prevents a selection error from obscuring an otherwise clear schema.

Do not tune against the final evaluation tasks repeatedly. Use a development set for improving descriptions and a held-out set for assessment. Otherwise, the experiment can become a test of memorizing the fixtures rather than communicating a reusable contract.

Build tasks that expose semantic errors

Include tasks with explicit information, missing information, ambiguous identifiers, units, optional behavior, and a prohibited action. Use synthetic or authorized public data and clearly label fictional fixtures.

An illustrative task can ask an agent to search a fictional organization’s public records while supplying a separate workspace account identifier. The trap is semantic: the account identifier is not the organization’s public-record identifier. The correct behavior is to discover the needed record or ask for missing information.

Another task can request a bounded result count while the schema also contains a page-size parameter. Grade whether the agent understands total results versus per-page size. A request can pass type validation while producing far more work than intended.

Include a task the available tools cannot fulfill. The accepted behavior is to explain the missing capability or prerequisite. An experiment that rewards every completed-looking answer encourages guessing rather than productive tool use.

Use a controlled execution fixture

A local stub can validate inputs and return deterministic fixture outcomes. It should implement the documented semantics rather than mirror the model’s assumptions. Keep it independent from the description changes under evaluation.

For each task, define the expected operation, acceptable argument predicates, permitted side effects, and accepted final result. Predicates are often better than one exact JSON string because harmless field ordering or equivalent values should not fail a trial.

Add controlled error responses: missing prerequisite, invalid identifier, denied permission, delayed job, and uncertain outcome. Observe whether the agent takes the appropriate next step. Do not allow the test harness to silently repair arguments before scoring.

Label stubbed execution prominently. Passing the fixture means the agent used the contract correctly under controlled conditions. A later authorized live evaluation must separately verify supplier acceptance, real outputs, and charges. The agent-readiness framework explains those evidence levels.

Freeze model and context

Record model identity, available settings, system instructions, tool order, context, and attempt limit. Preserve the exact contract presented in each condition. If the runtime transforms schemas, capture that transformed representation too.

Balance condition order and reset conversation state between independent trials. A model that sees a clarified contract first may carry that information into a later minimal-contract trial unless context is isolated.

Repeat tasks enough to observe variability relevant to your decision. Choose the sample size and reporting method before interpreting results. A single successful call establishes possibility, not a stable success rate.

Anthropic’s guidance on writing tools emphasizes realistic tasks, inspecting agent traces, and improving descriptions from observed failures. Use that approach for diagnosis while keeping the evaluation set protected from repeated tuning. Anthropic tool-development guidance.

Score the stages independently

StagePassing conditionExample failure
SelectionOperation fits the task and available authorityPrivate-account search chosen for a public-web question
SyntaxArguments satisfy the adopted schemaRequired field omitted
SemanticsValues mean what the task requiresAccount ID substituted for record ID
RecoveryNext action matches the observed stateUnknown submitted job purchased again
OutcomeFinal artifact meets the task rubricUnsupported answer despite valid execution

Report counts and denominators for every stage. Do not calculate argument validity only among selected successes without also showing selection failures. That conditional metric can be useful, but readers need to know what was excluded.

For an illustrative formula, semantic validity equals semantically correct requests divided by attempted requests. Task acceptance equals accepted outputs divided by all assigned tasks. These definitions are proposed metrics, not observed results.

Keep an auditable trial record

Store a trial identifier, task identifier, condition, model configuration reference, contract hash or version, selected operation, arguments, validation result, fixture response, final output, and reviewer judgment.

Use an empty template:

trial_id, task_id, condition, model_reference, contract_reference
selected_operation, syntax_valid, semantic_valid, recovery_valid
task_accepted, attempt_count, failure_category, trace_reference

This is a schema for actual observations, not a generated dataset. Keep secrets and personal data out of shared traces. Preserve permitted artifacts so a second reviewer can understand why a trial passed or failed.

Have reviewers inspect semantic failures with a written rubric. If two argument forms are both valid, update the predicate consistently and document the correction. Do not change acceptance rules selectively to improve a preferred condition’s score.

Interpret improvements carefully

If clearer descriptions improve argument construction, the result supports improving those descriptions for the tested tasks. It does not establish that the same change improves every model or every provider operation.

If examples help, inspect whether they teach a general rule or simply resemble the task too closely. Test a held-out variation involving different identifiers or missing information. A good contract should help the agent know when it cannot proceed.

Report failure categories rather than only a percentage difference. Repeated identifier confusion suggests a naming or description issue. Repeated unavailable-tool selection suggests discovery or scoping work. Repeated unsupported final claims may require result interpretation changes beyond the input schema.

Keep economic effects separate. Better contract usability may reduce wasted attempts, but a cost-saving claim requires actual usage and charge evidence. The research workflow cost protocol defines that additional measurement.

Turn findings into better tools

Use specific corrections: state units, distinguish similar identifiers, explain where prerequisite values come from, identify side effects, and make unknown or missing data explicit. Remove unnecessary options from a task-specific wrapper when they only add confusion.

Retain necessary provider differences. A shared tool interface should make discovery and execution easier without pretending that every search, browser, or media operation has identical semantics. The reusable tool-layer guide explains how to share common lifecycle behavior while preserving meaningful contracts.

Re-run the affected trials after a correction, and keep the previous evidence. A useful outcome is a contract an unfamiliar agent can use more reliably under a clear task and permission boundary. That directly supports the OpenRouter-for-tools goal: less integration interpretation between a developer’s idea and a useful result.

Sources

Give your agents a wallet.
Open up their world.

The paid web, through one simple API.

Get started
Become a partner Sell your product/API to agents using o11.

Keep reading