Skip to content

Commit 9b72bb2

Browse files
author
Jesus Terrazas
committed
update to readme
1 parent 26bed50 commit 9b72bb2

1 file changed

Lines changed: 77 additions & 15 deletions

File tree

mcp/README.md

Lines changed: 77 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ POST http://localhost:5309/agents/servers/mcp_MailTools
2424
}
2525
```
2626

27-
Output-
27+
Output:
2828
```json
2929
{
3030
"jsonrpc": "2.0",
@@ -130,7 +130,7 @@ File changes (including manual edits to `mocks/{serverName}.json`) are auto-relo
130130
Fields:
131131
- name (string, required) : Unique identifier.
132132
- description (string) : Human readable summary.
133-
- parameters (array) : Each has name, type (string), isOptional (bool).
133+
- inputSchema (array) : Describes the input schema for the tool call.
134134
- responseTemplate (string) : Text with Handlebars-style placeholders `{{placeholder}}`.
135135
- delayMs (int) : Artificial latency before responding.
136136
- errorRate (double 0-1) : Probability of returning a simulated 500 error.
@@ -172,18 +172,80 @@ Fields:
172172
Email style tool:
173173
```json
174174
{
175-
"name": "Send_Email",
176-
"description": "Send an email (mock).",
177-
"parameters":
178-
[
179-
{ "name": "to", "type": "string", "isOptional": false },
180-
{ "name": "subject", "type": "string", "isOptional": false },
181-
{ "name": "body", "type": "string", "isOptional": true }
182-
],
183-
"responseTemplate": "Email to {{to}} with subject '{{subject}}' sent (mock).",
184-
"delayMs": 250,
185-
"errorRate": 0,
186-
"statusCode": 200,
187-
"enabled": true
175+
"name": "SendEmailWithAttachmentsAsync",
176+
"description": "Create and send an email with optional attachments. Supports both file URIs (OneDrive/SharePoint) and direct file uploads (base64-encoded). IMPORTANT: If recipient names are provided instead of email addresses, you MUST first search for users to find their email addresses.",
177+
"inputSchema": {
178+
"type": "object",
179+
"properties": {
180+
"to": {
181+
"type": "array",
182+
"description": "List of To recipients (MUST be email addresses - if you only have names, search for users first to get their email addresses)",
183+
"items": {
184+
"type": "string"
185+
}
186+
},
187+
"cc": {
188+
"type": "array",
189+
"description": "List of Cc recipients (MUST be email addresses - if you only have names, search for users first to get their email addresses)",
190+
"items": {
191+
"type": "string"
192+
}
193+
},
194+
"bcc": {
195+
"type": "array",
196+
"description": "List of Bcc recipients (MUST be email addresses - if you only have names, search for users first to get their email addresses)",
197+
"items": {
198+
"type": "string"
199+
}
200+
},
201+
"subject": {
202+
"type": "string",
203+
"description": "Subject of the email"
204+
},
205+
"body": {
206+
"type": "string",
207+
"description": "Body of the email"
208+
},
209+
"attachmentUris": {
210+
"type": "array",
211+
"description": "List of file URIs to attach (OneDrive, SharePoint, Teams, or Graph /drives/{id}/items/{id})",
212+
"items": {
213+
"type": "string"
214+
}
215+
},
216+
"directAttachments": {
217+
"type": "array",
218+
"description": "List of direct file attachments with format: [{\"fileName\": \"file.pdf\", \"contentBase64\": \"base64data\", \"contentType\": \"application/pdf\"}]",
219+
"items": {
220+
"type": "object",
221+
"properties": {
222+
"FileName": {
223+
"type": "string"
224+
},
225+
"ContentBase64": {
226+
"type": "string"
227+
},
228+
"ContentType": {
229+
"type": "string"
230+
}
231+
},
232+
"required": []
233+
}
234+
},
235+
"directAttachmentFilePaths": {
236+
"type": "array",
237+
"description": "List of local file system paths to attach; will be read and base64 encoded automatically.",
238+
"items": {
239+
"type": "string"
240+
}
241+
}
242+
},
243+
"required": []
244+
},
245+
"responseTemplate": "Email with subject '{{subject}}' sent successfully (mock).",
246+
"delayMs": 250,
247+
"errorRate": 0,
248+
"statusCode": 200,
249+
"enabled": true
188250
}
189251
```

0 commit comments

Comments
 (0)