Skip to content

[FEATURE]: outputSchema for mcp tools should be exposed to LLM #27577

@bo-tato

Description

@bo-tato

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

For MCP tools, the optional outputSchema provides information about the output to expect from the tool. But opencode is not including this in context, only the tool description. According to the MCP spec:

Providing an output schema helps clients and LLMs understand and properly handle structured tool outputs by:
...
Guiding clients and LLMs to properly parse and utilize the returned data

so I think the information from tool's outputSchema should be included in the LLM context in some way.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions