Skip to main content
Glama
DMontgomery40

DeepSeek MCP Server

create_response

Generate a stateless DeepSeek V4.1 response through an OpenAI-compatible Responses API. Accepts text, images, files, tools, and reasoning controls, with optional streaming.

Instructions

Create a stateless DeepSeek V4.1 response using the OpenAI-compatible Responses API. Defaults to deepseek-flash and accepts text, image URLs, base64 images, and Files API file_id inputs. Use reasoning.effort for thinking control, tools for function or server-side web-search tools, and stream=true for semantic SSE aggregation. Send full input history for multi-turn work. Set include_raw_response=true only for provider-payload debugging.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNo
userNo
inputNo
modelNo
toolsNo
top_pNo
streamNo
reasoningNo
extra_bodyNo
temperatureNo
tool_choiceNo
instructionsNo
top_logprobsNo
max_output_tokensNo
include_raw_responseNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
modelNo
usageNo
statusNo
messageNo
retryableNo
error_typeNo
suggestionNo
output_textNo
raw_responseNo
function_callsNo
reasoning_textNo
incomplete_detailsNo
stream_event_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / input / anyOf
      Previous value: -[
      -  {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "items": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "content": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "items": {
      -                    "anyOf": [
      -                      {
      -                        "additionalProperties": {},
      -                        "properties": {
      -                          "text": {
      -                            "minLength": 1,
      -                            "type": "string"
      -                          },
      -                          "type": {
      -                            "const": "input_text",
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "type",
      -                          "text"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "additionalProperties": {},
      -                        "properties": {
      -                          "text": {
      -                            "minLength": 1,
      -                            "type": "string"
      -                          },
      -                          "type": {
      -                            "const": "output_text",
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "type",
      -                          "text"
      -                        ],
      -                        "type": "object"
      -                      }
      -                    ]
      -                  },
      -                  "minItems": 1,
      -                  "type": "array"
      -                }
      -              ]
      -            },
      -            "role": {
      -              "enum": [
      -                "user",
      -                "assistant",
      -                "system",
      -                "developer"
      -              ],
      -              "type": "string"
      -            },
      -            "type": {
      -              "const": "message",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "role",
      -            "content"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "arguments": {
      -              "type": "string"
      -            },
      -            "call_id": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "name": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "type": {
      -              "const": "function_call",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "type",
      -            "call_id",
      -            "name",
      -            "arguments"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "call_id": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "output": {
      -              "type": "string"
      -            },
      -            "type": {
      -              "const": "function_call_output",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "type",
      -            "call_id",
      -            "output"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "content": {
      -              "items": {
      -                "additionalProperties": {},
      -                "properties": {
      -                  "text": {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "type": {
      -                    "const": "reasoning_text",
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "type",
      -                  "text"
      -                ],
      -                "type": "object"
      -              },
      -              "minItems": 1,
      -              "type": "array"
      -            },
      -            "type": {
      -              "const": "reasoning",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "type",
      -            "content"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "type": {
      -              "const": "web_search_call",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "type"
      -          ],
      -          "type": "object"
      -        }
      -      ]
      -    },
      -    "minItems": 1,
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "content": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "items": {
      +                    "anyOf": [
      +                      {
      +                        "anyOf": [
      +                          {
      +                            "additionalProperties": {},
      +                            "properties": {
      +                              "text": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              },
      +                              "type": {
      +                                "const": "input_text",
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "type",
      +                              "text"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          {
      +                            "additionalProperties": {},
      +                            "properties": {
      +                              "text": {
      +                                "minLength": 1,
      +                                "type": "string"
      +                              },
      +                              "type": {
      +                                "const": "output_text",
      +                                "type": "string"
      +                              }
      +                            },
      +                            "required": [
      +                              "type",
      +                              "text"
      +                            ],
      +                            "type": "object"
      +                          }
      +                        ]
      +                      },
      +                      {
      +                        "additionalProperties": {},
      +                        "properties": {
      +                          "detail": {
      +                            "enum": [
      +                              "low",
      +                              "high",
      +                              "original",
      +                              "auto"
      +                            ],
      +                            "type": "string"
      +                          },
      +                          "file_id": {
      +                            "pattern": "^file-api-[a-zA-Z0-9_-]+$",
      +                            "type": "string"
      +                          },
      +                          "image_url": {
      +                            "type": "string"
      +                          },
      +                          "type": {
      +                            "const": "input_image",
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "type"
      +                        ],
      +                        "type": "object"
      +                      }
      +                    ]
      +                  },
      +                  "minItems": 1,
      +                  "type": "array"
      +                }
      +              ]
      +            },
      +            "role": {
      +              "enum": [
      +                "user",
      +                "assistant",
      +                "system",
      +                "developer"
      +              ],
      +              "type": "string"
      +            },
      +            "type": {
      +              "const": "message",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "role",
      +            "content"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "arguments": {
      +              "type": "string"
      +            },
      +            "call_id": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "name": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "type": {
      +              "const": "function_call",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "type",
      +            "call_id",
      +            "name",
      +            "arguments"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "call_id": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "output": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "items": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": {},
      +                        "properties": {
      +                          "text": {
      +                            "minLength": 1,
      +                            "type": "string"
      +                          },
      +                          "type": {
      +                            "const": "input_text",
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "type",
      +                          "text"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {
      +                        "additionalProperties": {},
      +                        "properties": {
      +                          "detail": {
      +                            "enum": [
      +                              "low",
      +                              "high",
      +                              "original",
      +                              "auto"
      +                            ],
      +                            "type": "string"
      +                          },
      +                          "file_id": {
      +                            "pattern": "^file-api-[a-zA-Z0-9_-]+$",
      +                            "type": "string"
      +                          },
      +                          "image_url": {
      +                            "type": "string"
      +                          },
      +                          "type": {
      +                            "const": "input_image",
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "type"
      +                        ],
      +                        "type": "object"
      +                      }
      +                    ]
      +                  },
      +                  "minItems": 1,
      +                  "type": "array"
      +                }
      +              ]
      +            },
      +            "type": {
      +              "const": "function_call_output",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "type",
      +            "call_id",
      +            "output"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "call_id": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "input": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "type": {
      +              "const": "custom_tool_call",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "type",
      +            "call_id",
      +            "name",
      +            "input"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "call_id": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "output": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "items": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": {},
      +                        "properties": {
      +                          "text": {
      +                            "minLength": 1,
      +                            "type": "string"
      +                          },
      +                          "type": {
      +                            "const": "input_text",
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "type",
      +                          "text"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {
      +                        "additionalProperties": {},
      +                        "properties": {
      +                          "detail": {
      +                            "enum": [
      +                              "low",
      +                              "high",
      +                              "original",
      +                              "auto"
      +                            ],
      +                            "type": "string"
      +                          },
      +                          "file_id": {
      +                            "pattern": "^file-api-[a-zA-Z0-9_-]+$",
      +                            "type": "string"
      +                          },
      +                          "image_url": {
      +                            "type": "string"
      +                          },
      +                          "type": {
      +                            "const": "input_image",
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "type"
      +                        ],
      +                        "type": "object"
      +                      }
      +                    ]
      +                  },
      +                  "minItems": 1,
      +                  "type": "array"
      +                }
      +              ]
      +            },
      +            "type": {
      +              "const": "custom_tool_call_output",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "type",
      +            "call_id",
      +            "output"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "content": {
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "text": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "type": {
      +                    "const": "reasoning_text",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "type",
      +                  "text"
      +                ],
      +                "type": "object"
      +              },
      +              "minItems": 1,
      +              "type": "array"
      +            },
      +            "type": {
      +              "const": "reasoning",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "type",
      +            "content"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "type": {
      +              "const": "web_search_call",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "type"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "minItems": 1,
      +    "type": "array"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "error": {
      +      "anyOf": [
      +        {},
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "error_type": {
      +      "enum": [
      +        "deepseek_api_error",
      +        "tool_execution_error"
      +      ],
      +      "type": "string"
      +    },
      +    "function_calls": {
      +      "items": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "incomplete_details": {
      +      "anyOf": [
      +        {},
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "model": {
      +      "type": "string"
      +    },
      +    "output_text": {
      +      "type": "string"
      +    },
      +    "raw_response": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "reasoning_text": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "retryable": {
      +      "type": "boolean"
      +    },
      +    "status": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "stream_event_count": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "suggestion": {
      +      "type": "string"
      +    },
      +    "usage": {
      +      "anyOf": [
      +        {},
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  2. Addedv0.6.0

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations mark it openWorld (true) and non-idempotent/non-destructive, so the description needn't re-establish safety. It adds real value beyond them: the default model (deepseek-flash), the stateless nature, SSE streaming semantics, and the caveat that include_raw_response is debugging-only. It does not mention auth requirements, rate limits, or cost/latency implications of effort levels.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with capability and default, then feature guidance, then the debugging caveat. Five dense sentences with essentially no filler. Slightly long, but every clause maps to a real parameter or behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The presence of an output schema excuses it from explaining return values, and it covers the highest-leverage knobs. However, for a 15-parameter, deeply nested, zero-coverage schema, the majority of tunables (sampling, token limits, output format, tool_choice) are undocumented, leaving meaningful gaps for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 15 parameters, so the description carries the full semantic burden. It explains defaults and intent for model, input (text/image URL/base64/file_id), reasoning.effort, tools, stream, and include_raw_response, but leaves temperature, top_p, top_logprobs, max_output_tokens, instructions, user, text/format, tool_choice, and extra_body completely undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb+resource ('Create a stateless DeepSeek V4.1 response') and pins the API surface ('OpenAI-compatible Responses API'). The 'stateless' framing plus the Responses-API naming distinguishes it from siblings chat_completion and completion without needing to open either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives actionable guidance for when to use specific features: reasoning.effort for thinking control, tools for function/web-search, stream=true for SSE aggregation, include_raw_response only for debugging, and full input history for multi-turn. It never names chat_completion/completion as the alternative, so the when-not-to-use side is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.