Skip to content

Introduce outputSchema (was: Should output also have a schema?) #9

Description

@bokand

The explainer includes an example returning some structured output:

return {
        content: [
            {
                type: "text",
                text: `Stamp "${name}" added successfully! The collection now contains ${stamps.length} stamps.`, 
            },
        ]
    };

Should we include an outputSchema as MCP recently added?

I'm not sure the schema itself helps (the return is already a JavaScript object...) but descriptions might help the agent understand what the output means?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions