Skip to content

Commit 236c14e

Browse files
chore: extract some types in mcp docs
1 parent 1daecd2 commit 236c14e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/mcp-server/src/tools/async/chat/completions/list-chat-async-completions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
1818
export const tool: Tool = {
1919
name: 'list_chat_async_completions',
2020
description:
21-
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nRetrieve a list of all asynchronous chat completion requests for a given user.\n\n# Response Schema\n```json\n{\n type: 'object',\n title: 'ListAsyncApiChatCompletionsResponse',\n properties: {\n requests: {\n type: 'array',\n title: 'Requests',\n items: {\n type: 'object',\n title: 'AsyncApiChatCompletionsResponseSummary',\n properties: {\n id: {\n type: 'string',\n title: 'Id'\n },\n created_at: {\n type: 'integer',\n title: 'Created At'\n },\n model: {\n type: 'string',\n title: 'Model'\n },\n status: {\n type: 'string',\n title: 'AsyncProcessingStatus',\n description: 'Status enum for async processing.',\n enum: [ 'CREATED',\n 'IN_PROGRESS',\n 'COMPLETED',\n 'FAILED'\n ]\n },\n completed_at: {\n type: 'integer',\n title: 'Completed At'\n },\n failed_at: {\n type: 'integer',\n title: 'Failed At'\n },\n started_at: {\n type: 'integer',\n title: 'Started At'\n }\n },\n required: [ 'id',\n 'created_at',\n 'model',\n 'status'\n ]\n }\n },\n next_token: {\n type: 'string',\n title: 'Next Token'\n }\n },\n required: [ 'requests'\n ]\n}\n```",
21+
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nRetrieve a list of all asynchronous chat completion requests for a given user.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/completion_list_response',\n $defs: {\n completion_list_response: {\n type: 'object',\n title: 'ListAsyncApiChatCompletionsResponse',\n properties: {\n requests: {\n type: 'array',\n title: 'Requests',\n items: {\n type: 'object',\n title: 'AsyncApiChatCompletionsResponseSummary',\n properties: {\n id: {\n type: 'string',\n title: 'Id'\n },\n created_at: {\n type: 'integer',\n title: 'Created At'\n },\n model: {\n type: 'string',\n title: 'Model'\n },\n status: {\n type: 'string',\n title: 'AsyncProcessingStatus',\n description: 'Status enum for async processing.',\n enum: [ 'CREATED',\n 'IN_PROGRESS',\n 'COMPLETED',\n 'FAILED'\n ]\n },\n completed_at: {\n type: 'integer',\n title: 'Completed At'\n },\n failed_at: {\n type: 'integer',\n title: 'Failed At'\n },\n started_at: {\n type: 'integer',\n title: 'Started At'\n }\n },\n required: [ 'id',\n 'created_at',\n 'model',\n 'status'\n ]\n }\n },\n next_token: {\n type: 'string',\n title: 'Next Token'\n }\n },\n required: [ 'requests'\n ]\n }\n }\n}\n```",
2222
inputSchema: {
2323
type: 'object',
2424
properties: {

packages/mcp-server/src/tools/search/create-search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
1818
export const tool: Tool = {
1919
name: 'create_search',
2020
description:
21-
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nSearch the web and retrieve relevant web page contents.\n\n# Response Schema\n```json\n{\n type: 'object',\n title: 'ApiSearchResponse',\n properties: {\n id: {\n type: 'string',\n title: 'Id'\n },\n results: {\n type: 'array',\n title: 'Results',\n items: {\n type: 'object',\n title: 'ApiSearchPage',\n properties: {\n snippet: {\n type: 'string',\n title: 'Snippet'\n },\n title: {\n type: 'string',\n title: 'Title'\n },\n url: {\n type: 'string',\n title: 'Url'\n },\n date: {\n type: 'string',\n title: 'Date'\n },\n last_updated: {\n type: 'string',\n title: 'Last Updated'\n }\n },\n required: [ 'snippet',\n 'title',\n 'url'\n ]\n }\n },\n server_time: {\n type: 'string',\n title: 'Server Time'\n }\n },\n required: [ 'id',\n 'results'\n ]\n}\n```",
21+
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nSearch the web and retrieve relevant web page contents.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/search_create_response',\n $defs: {\n search_create_response: {\n type: 'object',\n title: 'ApiSearchResponse',\n properties: {\n id: {\n type: 'string',\n title: 'Id'\n },\n results: {\n type: 'array',\n title: 'Results',\n items: {\n type: 'object',\n title: 'ApiSearchPage',\n properties: {\n snippet: {\n type: 'string',\n title: 'Snippet'\n },\n title: {\n type: 'string',\n title: 'Title'\n },\n url: {\n type: 'string',\n title: 'Url'\n },\n date: {\n type: 'string',\n title: 'Date'\n },\n last_updated: {\n type: 'string',\n title: 'Last Updated'\n }\n },\n required: [ 'snippet',\n 'title',\n 'url'\n ]\n }\n },\n server_time: {\n type: 'string',\n title: 'Server Time'\n }\n },\n required: [ 'id',\n 'results'\n ]\n }\n }\n}\n```",
2222
inputSchema: {
2323
type: 'object',
2424
properties: {

0 commit comments

Comments
 (0)