Csv

2 posts

datadog3 min readCurated summary

Designing MCP tools for agents: Lessons from building Datadog's MCP server

Datadog’s initial MCP server simply exposed existing APIs, but real-world agent use revealed major problems with context limits, inaccurate trend analysis, and tool overload. The team redesigned its tools around token efficiency, query-based analysis, and a smaller, more deliberate tool surface. These changes improved both answer quality and cost, though emerging agent features may eventually reduce the need for some optimizations. ## Context Efficiency Matters - Observability results can be extremely large: a log record may range from roughly 100 characters to 1 MB. - CSV or TSV is more token-efficient than JSON for tabular data, often using about half as many tokens per record. - YAML can reduce token usage for nested data by around 20% compared with JSON. - Removing rarely used fields from default responses, while allowing agents to request them when needed, further reduces output size. - Combined formatting and field-trimming improvements allowed some tools to return approximately five times more records within the same token budget. - Pagination by record count is unreliable when records vary greatly in size. Datadog instead paginates by token budget and returns a cursor when the limit is reached. - Tools such as Cursor and Claude Code increasingly write long results to disk, which could make response-format efficiency less important in the future. ## Let Agents Query Data - Retrieval-only tools forced agents to infer trends from incomplete samples, such as guessing which services generated the most errors. - Agents sometimes repeatedly fetched logs to compensate, wasting tokens and producing unreliable answers. - SQL lets agents aggregate and filter data directly: ```sql SELECT service, COUNT(*) AS error_count FROM logs WHERE status = 'error' GROUP BY service ORDER BY error_count DESC LIMIT 10 ``` - Agents can select only necessary fields, limit row counts, and calculate aggregates without loading raw data. - SQL improved correctness and reduced costs; some evaluation scenarios became about 40% cheaper. - Supporting SQL at Datadog’s scale required significant infrastructure work because traditional relational databases were insufficient. ## Tools Are Not Free - Exposing every API endpoint as a separate tool increases tool-selection errors and consumes context through tool descriptions. - Flexible tools can support multiple related workflows through carefully designed schemas, reducing the total tool count. - Toolsets provide a core collection by default while allowing users to opt into specialized capabilities, though users must anticipate their needs. - Layered tools can first explain how to accomplish a task and then execute it, keeping specialized functionality out of the initial context. - Layering introduces additional tool calls and therefore increases latency. - Improving agent context management, including tool search and dynamically loaded skills, may reduce the need for aggressive tool minimization over time. The practical recommendation is to design MCP tools for how agents actually reason: minimize and control output size, provide query and aggregation capabilities instead of raw retrieval alone, and expose a focused set of flexible tools rather than mirroring every API endpoint.

Read original(opens in new tab)
figma2 min readCurated summary

What’s new in Figma: September 2021 | Figma Blog

Figma’s September 2021 updates focus on making remote collaboration feel more natural and interactive. New audio, cursor chat, and high-fives let teams communicate and react without leaving Figma or FigJam. The release also adds workflow improvements for importing data, exporting visuals, editing text, and pasting assets more precisely. ## Audio Collaboration in Figma and FigJam - Users can start audio conversations directly inside a file. - Audio supports quick questions, spontaneous collaboration, working sessions, and presentations. - Figma planned to introduce beta live captions for audio in the desktop app. ## Cursor Chat and High-Fives - Cursor chat lets collaborators ask questions or send encouragement without interrupting a speaker. - FigJam high-fives provide a lightweight way to celebrate progress or conclude a meeting. - These features are designed to restore the informal reactions and social cues often missing from remote work. ## Spreadsheet Import and Export - Spreadsheet cells can be copied into FigJam and converted into sticky notes. - Selected sticky notes can be exported as a CSV file. - This is especially useful for user research and organizing feedback. ## Exporting FigJam Diagrams - Users can export selected objects or an entire FigJam file. - Available formats include PNG, PDF, and JPG. - Exported diagrams can be reused in presentations, emails, and other documents. ## Text and Layout Improvements - Line spacing for bulleted and numbered lists can be adjusted through the type details panel. - FigJam text boxes, sticky notes, and shapes can contain multiple text sizes within the same object. ## More Precise Pasting - **Paste here** places copied content at a chosen location using the right-click menu. - **Paste to replace** swaps a selected object with copied content using `Shift` plus `⌘ + V` or `Ctrl + V`. - **Multi-paste** places the same copied object in the same position across multiple selected frames or groups. Together, these updates make Figma and FigJam better suited to collaborative remote work while reducing friction in common design and workshop tasks.

Read original(opens in new tab)